@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CommitmentsListItem extends AbstractOpenApiSchema
| Modifier and Type | Class and Description |
|---|---|
static class |
CommitmentsListItem.CommitmentsListItemDeserializer |
static class |
CommitmentsListItem.CommitmentsListItemSerializer |
| Modifier and Type | Field and Description |
|---|---|
static Map<String,jakarta.ws.rs.core.GenericType> |
schemas |
boolean |
unparsed |
| Modifier and Type | Method and Description |
|---|---|
Object |
getActualInstance()
Get the actual instance, which can be the following: CommitmentsAwsEC2RICommitment,
CommitmentsAwsRDSRICommitment, CommitmentsAwsElasticacheRICommitment,
CommitmentsAwsSPCommitment, CommitmentsAzureVMRICommitment, CommitmentsAzureComputeSPCommitment
|
CommitmentsAwsEC2RICommitment |
getCommitmentsAwsEC2RICommitment()
Get the actual instance of `CommitmentsAwsEC2RICommitment`.
|
CommitmentsAwsElasticacheRICommitment |
getCommitmentsAwsElasticacheRICommitment()
Get the actual instance of `CommitmentsAwsElasticacheRICommitment`.
|
CommitmentsAwsRDSRICommitment |
getCommitmentsAwsRDSRICommitment()
Get the actual instance of `CommitmentsAwsRDSRICommitment`.
|
CommitmentsAwsSPCommitment |
getCommitmentsAwsSPCommitment()
Get the actual instance of `CommitmentsAwsSPCommitment`.
|
CommitmentsAzureComputeSPCommitment |
getCommitmentsAzureComputeSPCommitment()
Get the actual instance of `CommitmentsAzureComputeSPCommitment`.
|
CommitmentsAzureVMRICommitment |
getCommitmentsAzureVMRICommitment()
Get the actual instance of `CommitmentsAzureVMRICommitment`.
|
Map<String,jakarta.ws.rs.core.GenericType> |
getSchemas()
Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
|
void |
setActualInstance(Object instance)
Set the instance that matches the oneOf child schema, check the instance parameter is valid
against the oneOf child schemas: CommitmentsAwsEC2RICommitment, CommitmentsAwsRDSRICommitment,
CommitmentsAwsElasticacheRICommitment, CommitmentsAwsSPCommitment,
CommitmentsAzureVMRICommitment, CommitmentsAzureComputeSPCommitment
|
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toStringpublic CommitmentsListItem()
public CommitmentsListItem(CommitmentsAwsEC2RICommitment o)
public CommitmentsListItem(CommitmentsAwsRDSRICommitment o)
public CommitmentsListItem(CommitmentsAwsElasticacheRICommitment o)
public CommitmentsListItem(CommitmentsAwsSPCommitment o)
public CommitmentsListItem(CommitmentsAzureVMRICommitment o)
public CommitmentsListItem(CommitmentsAzureComputeSPCommitment 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 CommitmentsAwsEC2RICommitment getCommitmentsAwsEC2RICommitment() throws ClassCastException
ClassCastException - if the instance is not `CommitmentsAwsEC2RICommitment`public CommitmentsAwsRDSRICommitment getCommitmentsAwsRDSRICommitment() throws ClassCastException
ClassCastException - if the instance is not `CommitmentsAwsRDSRICommitment`public CommitmentsAwsElasticacheRICommitment getCommitmentsAwsElasticacheRICommitment() throws ClassCastException
ClassCastException - if the instance is not `CommitmentsAwsElasticacheRICommitment`public CommitmentsAwsSPCommitment getCommitmentsAwsSPCommitment() throws ClassCastException
ClassCastException - if the instance is not `CommitmentsAwsSPCommitment`public CommitmentsAzureVMRICommitment getCommitmentsAzureVMRICommitment() throws ClassCastException
ClassCastException - if the instance is not `CommitmentsAzureVMRICommitment`public CommitmentsAzureComputeSPCommitment getCommitmentsAzureComputeSPCommitment() throws ClassCastException
ClassCastException - if the instance is not `CommitmentsAzureComputeSPCommitment`Copyright © 2026. All rights reserved.