Class CcdCommitment


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20240601")
    public final class CcdCommitment
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The created CCD commitment details.
    Note: Objects should always be created or deserialized using the CcdCommitment.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 the CcdCommitment.Builder, which maintain a set of all explicitly set fields called CcdCommitment.Builder.__explicitlySet__. The hashCode() and equals(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).
    • Method Detail

      • 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
      • 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:
        toString in class com.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:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel