Class CcdCommitment
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.ccdoffers.model.CcdCommitment
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20240601") public final class CcdCommitment extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe created CCD commitment details.
Note: Objects should always be created or deserialized using theCcdCommitment.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theCcdCommitment.Builder, which maintain a set of all explicitly set fields calledCcdCommitment.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCcdCommitment.Builderstatic classCcdCommitment.LifecycleDetailsThe CCD commitment’s current state.static classCcdCommitment.LifecycleStateThis state always defaults to Active.
-
Constructor Summary
Constructors Constructor Description CcdCommitment(String id, Long quantity, String displayName, String offerId, CcdOffer.SourceType sourceType, Long reclaimTerm, CcdOffer.ReclaimTermUnit reclaimTermUnit, Date timeCcdCommitmentStarts, Date timeCcdCommitmentEnds, String subscriptionId, String compartmentId, String fillerTenancyId, String fillerTenancyHomeRegion, UsageEligibility usageEligibility, List<SecondarySkus> secondarySkus, CcdCommitment.LifecycleState lifecycleState, CcdCommitment.LifecycleDetails lifecycleDetails, List<CommittedSkuQuantityPriceModel> skuQuantityPriceModel, Date timeCreated, Date timeUpdated, Date timeTerminated, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags, String lastUpdatedBy, String createdBy, String approvedBy)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CcdCommitment.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetApprovedBy()Entity/User who approved the ccdCommitment.StringgetCompartmentId()The root compartment ID.StringgetCreatedBy()The entity that created the CCD commitment.Map<String,Map<String,Object>>getDefinedTags()Defined tags for this resource.StringgetDisplayName()The CCD commitment name.StringgetFillerTenancyHomeRegion()The filler tenancy home region.StringgetFillerTenancyId()The tenancy OCID that you want to apply filler usage to.Map<String,String>getFreeformTags()Free-form tags for this resource.StringgetId()The CCD commitment resource OCID.StringgetLastUpdatedBy()Entity/User who lastly updated the ccdCommitment.CcdCommitment.LifecycleDetailsgetLifecycleDetails()The CCD commitment’s current state.CcdCommitment.LifecycleStategetLifecycleState()This state always defaults to Active.StringgetOfferId()The CCD offer OCID.LonggetQuantity()The hourly quantity that the customer is committing to a CCD offer’s main SKU.LonggetReclaimTerm()The reclaim term copied from the offer when the commitment is created.CcdOffer.ReclaimTermUnitgetReclaimTermUnit()The unit used to measure reclaimTerm, copied from the offer when the commitment is created.List<SecondarySkus>getSecondarySkus()Secondary SKUs associated with the main SKU.List<CommittedSkuQuantityPriceModel>getSkuQuantityPriceModel()The list of SKUs associated with the commitment and their prices in all currency codes.CcdOffer.SourceTypegetSourceType()The commercial workflow of the associated CCD offer.StringgetSubscriptionId()The subscription ID the CCD offer is applicable to.Map<String,Map<String,Object>>getSystemTags()System tags for this resource.DategetTimeCcdCommitmentEnds()The date and time the CCD commitment will be deactivated.DategetTimeCcdCommitmentStarts()The date and time the CCD commitment will be effective.The format is defined by RFC 3339.DategetTimeCreated()Date and time the CCD was created.DategetTimeTerminated()Date and time the CCD was terminated.DategetTimeUpdated()Date and time the CCD was updated lastly.UsageEligibilitygetUsageEligibility()inthashCode()CcdCommitment.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
CcdCommitment
@Deprecated @ConstructorProperties({"id","quantity","displayName","offerId","sourceType","reclaimTerm","reclaimTermUnit","timeCcdCommitmentStarts","timeCcdCommitmentEnds","subscriptionId","compartmentId","fillerTenancyId","fillerTenancyHomeRegion","usageEligibility","secondarySkus","lifecycleState","lifecycleDetails","skuQuantityPriceModel","timeCreated","timeUpdated","timeTerminated","freeformTags","definedTags","systemTags","lastUpdatedBy","createdBy","approvedBy"}) public CcdCommitment(String id, Long quantity, String displayName, String offerId, CcdOffer.SourceType sourceType, Long reclaimTerm, CcdOffer.ReclaimTermUnit reclaimTermUnit, Date timeCcdCommitmentStarts, Date timeCcdCommitmentEnds, String subscriptionId, String compartmentId, String fillerTenancyId, String fillerTenancyHomeRegion, UsageEligibility usageEligibility, List<SecondarySkus> secondarySkus, CcdCommitment.LifecycleState lifecycleState, CcdCommitment.LifecycleDetails lifecycleDetails, List<CommittedSkuQuantityPriceModel> skuQuantityPriceModel, Date timeCreated, Date timeUpdated, Date timeTerminated, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags, String lastUpdatedBy, String createdBy, String approvedBy)
Deprecated.
-
-
Method Detail
-
builder
public static CcdCommitment.Builder builder()
Create a new builder.
-
toBuilder
public CcdCommitment.Builder toBuilder()
-
getId
public String getId()
The CCD commitment resource OCID.- Returns:
- the value
-
getQuantity
public Long getQuantity()
The hourly quantity that the customer is committing to a CCD offer’s main SKU.For example, if the quantity is 1000, then you are committing to a 1000 usage quantity value per hour.
- Returns:
- the value
-
getDisplayName
public String getDisplayName()
The CCD commitment name.Ensure the name is unique for a given subscription ID. Avoid entering confidential information.
- Returns:
- the value
-
getOfferId
public String getOfferId()
The CCD offer OCID.- Returns:
- the value
-
getSourceType
public CcdOffer.SourceType getSourceType()
The commercial workflow of the associated CCD offer.- Returns:
- the value
-
getReclaimTerm
public Long getReclaimTerm()
The reclaim term copied from the offer when the commitment is created.The value is measured in reclaimTermUnit.
- Returns:
- the value
-
getReclaimTermUnit
public CcdOffer.ReclaimTermUnit getReclaimTermUnit()
The unit used to measure reclaimTerm, copied from the offer when the commitment is created.- Returns:
- the value
-
getTimeCcdCommitmentStarts
public Date getTimeCcdCommitmentStarts()
The date and time the CCD commitment will be effective.The format is defined by RFC 3339.- Returns:
- the value
-
getTimeCcdCommitmentEnds
public Date getTimeCcdCommitmentEnds()
The date and time the CCD commitment will be deactivated.The date and time is calculated based on timeCcdCommitmentStarts, the term, and units of the CCD offer. For example: 2025-06-01T03:00:00. The format is defined by RFC 3339.
- Returns:
- the value
-
getSubscriptionId
public String getSubscriptionId()
The subscription ID the CCD offer is applicable to.- Returns:
- the value
-
getCompartmentId
public String getCompartmentId()
The root compartment ID.The CCD Commitment is associated with the tenancy root compartment ID.
- Returns:
- the value
-
getFillerTenancyId
public String getFillerTenancyId()
The tenancy OCID that you want to apply filler usage to.- Returns:
- the value
-
getFillerTenancyHomeRegion
public String getFillerTenancyHomeRegion()
The filler tenancy home region.- Returns:
- the value
-
getUsageEligibility
public UsageEligibility getUsageEligibility()
-
getSecondarySkus
public List<SecondarySkus> getSecondarySkus()
Secondary SKUs associated with the main SKU.- Returns:
- the value
-
getLifecycleState
public CcdCommitment.LifecycleState getLifecycleState()
This state always defaults to Active.For a detailed and exact state, check the lifecycleDetails state.
- Returns:
- the value
-
getLifecycleDetails
public CcdCommitment.LifecycleDetails getLifecycleDetails()
The CCD commitment’s current state.A commitment that’s expected to get a dedicated capacity will be in the Awaiting Provisioning state unless the commitment is ended or canceled. Otherwise, the value is determined by timeCcdCommitmentStarts, timeCcdCommitmentEnds, and timeTerminated, with respect to the current time.
- Returns:
- the value
-
getSkuQuantityPriceModel
public List<CommittedSkuQuantityPriceModel> getSkuQuantityPriceModel()
The list of SKUs associated with the commitment and their prices in all currency codes.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
Date and time the CCD was created.The format is defined by RFC 3339. Example: 2022-01-25T21:10:29.600Z
- Returns:
- the value
-
getTimeUpdated
public Date getTimeUpdated()
Date and time the CCD was updated lastly.The format is defined by RFC 3339. Example: 2025-01-25T21:10:29.600Z
- Returns:
- the value
-
getTimeTerminated
public Date getTimeTerminated()
Date and time the CCD was terminated.The format is defined by RFC 3339. Example: 2022-01-25T21:10:29.600Z
- Returns:
- the value
-
getFreeformTags
public Map<String,String> getFreeformTags()
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Returns:
- the value
-
getDefinedTags
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Returns:
- the value
-
getSystemTags
public Map<String,Map<String,Object>> getSystemTags()
System tags for this resource.Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Returns:
- the value
-
getLastUpdatedBy
public String getLastUpdatedBy()
Entity/User who lastly updated the ccdCommitment.- Returns:
- the value
-
getCreatedBy
public String getCreatedBy()
The entity that created the CCD commitment.- Returns:
- the value
-
getApprovedBy
public String getApprovedBy()
Entity/User who approved the ccdCommitment.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-