@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CustomAttributeValuesUnion extends AbstractOpenApiSchema
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomAttributeValuesUnion.CustomAttributeValuesUnionDeserializer |
static class |
CustomAttributeValuesUnion.CustomAttributeValuesUnionSerializer |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,jakarta.ws.rs.core.GenericType> |
schemas |
boolean |
unparsed |
| Constructor and Description |
|---|
CustomAttributeValuesUnion() |
CustomAttributeValuesUnion(Double o) |
CustomAttributeValuesUnion(String o) |
| Modifier and Type | Method and Description |
|---|---|
static CustomAttributeValuesUnion |
fromDoubleList(List<Double> o) |
static CustomAttributeValuesUnion |
fromStringList(List<String> o) |
Object |
getActualInstance()
Get the actual instance, which can be the following: String, List<String>, Double,
List<Double>
|
Double |
getDouble()
Get the actual instance of `Double`.
|
List<Double> |
getDoubleList()
Get the actual instance of `List<Double>`.
|
Map<String,jakarta.ws.rs.core.GenericType> |
getSchemas()
Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
|
String |
getString()
Get the actual instance of `String`.
|
List<String> |
getStringList()
Get the actual instance of `List<String>`.
|
void |
setActualInstance(Object instance)
Set the instance that matches the oneOf child schema, check the instance parameter is valid
against the oneOf child schemas: String, List<String>, Double, List<Double>
|
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toStringpublic CustomAttributeValuesUnion()
public CustomAttributeValuesUnion(String o)
public CustomAttributeValuesUnion(Double o)
public static CustomAttributeValuesUnion fromStringList(List<String> o)
public static CustomAttributeValuesUnion fromDoubleList(List<Double> o)
public Map<String,jakarta.ws.rs.core.GenericType> getSchemas()
AbstractOpenApiSchemagetSchemas in class AbstractOpenApiSchemapublic void setActualInstance(Object instance)
It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf).
setActualInstance in class AbstractOpenApiSchemainstance - the actual instance of the schema/objectpublic Object getActualInstance()
getActualInstance in class AbstractOpenApiSchemapublic String getString() throws ClassCastException
ClassCastException - if the instance is not `String`public List<String> getStringList() throws ClassCastException
ClassCastException - if the instance is not `List<String>`public Double getDouble() throws ClassCastException
ClassCastException - if the instance is not `Double`public List<Double> getDoubleList() throws ClassCastException
ClassCastException - if the instance is not `List<Double>`Copyright © 2026. All rights reserved.