/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.16.74 * User agent: apibuilder app.apibuilder.io/apicollective/apibuilder-spec/0.16.74/java_models */ package io.apibuilder.spec.v0.models; /** * Metadata about one of the types that is part of a union type */ public class UnionType { /** * The name of a type (a primitive, model name, or enum name) that makes up this union type */ private String type; private String description; private Deprecation deprecation; private java.util.List fields; private java.util.List attributes = new java.util.ArrayList(); /** * If true, indicates that this type should be used as the default when deserializing union types. This field is only used by union types that require a discriminator and sets the default value for that discriminator during deserialization. */ private boolean default_; /** * The discriminator value defines the string to use in the discriminator field to identify this type. If not specified, the discriminator value will default to the name of the type itself. */ private String discriminatorValue; public UnionType() {} }