Class CcdCommitment.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public CcdCommitment.Builder id​(String id)
        The CCD commitment resource OCID.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • quantity

        public CcdCommitment.Builder quantity​(Long quantity)
        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.

        Parameters:
        quantity - the value to set
        Returns:
        this builder
      • displayName

        public CcdCommitment.Builder displayName​(String displayName)
        The CCD commitment name.

        Ensure the name is unique for a given subscription ID. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • offerId

        public CcdCommitment.Builder offerId​(String offerId)
        The CCD offer OCID.
        Parameters:
        offerId - the value to set
        Returns:
        this builder
      • sourceType

        public CcdCommitment.Builder sourceType​(CcdOffer.SourceType sourceType)
        The commercial workflow of the associated CCD offer.
        Parameters:
        sourceType - the value to set
        Returns:
        this builder
      • reclaimTerm

        public CcdCommitment.Builder reclaimTerm​(Long reclaimTerm)
        The reclaim term copied from the offer when the commitment is created.

        The value is measured in reclaimTermUnit.

        Parameters:
        reclaimTerm - the value to set
        Returns:
        this builder
      • reclaimTermUnit

        public CcdCommitment.Builder reclaimTermUnit​(CcdOffer.ReclaimTermUnit reclaimTermUnit)
        The unit used to measure reclaimTerm, copied from the offer when the commitment is created.
        Parameters:
        reclaimTermUnit - the value to set
        Returns:
        this builder
      • timeCcdCommitmentStarts

        public CcdCommitment.Builder timeCcdCommitmentStarts​(Date timeCcdCommitmentStarts)
        The date and time the CCD commitment will be effective.The format is defined by RFC 3339.
        Parameters:
        timeCcdCommitmentStarts - the value to set
        Returns:
        this builder
      • timeCcdCommitmentEnds

        public CcdCommitment.Builder timeCcdCommitmentEnds​(Date timeCcdCommitmentEnds)
        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.

        Parameters:
        timeCcdCommitmentEnds - the value to set
        Returns:
        this builder
      • subscriptionId

        public CcdCommitment.Builder subscriptionId​(String subscriptionId)
        The subscription ID the CCD offer is applicable to.
        Parameters:
        subscriptionId - the value to set
        Returns:
        this builder
      • compartmentId

        public CcdCommitment.Builder compartmentId​(String compartmentId)
        The root compartment ID.

        The CCD Commitment is associated with the tenancy root compartment ID.

        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • fillerTenancyId

        public CcdCommitment.Builder fillerTenancyId​(String fillerTenancyId)
        The tenancy OCID that you want to apply filler usage to.
        Parameters:
        fillerTenancyId - the value to set
        Returns:
        this builder
      • fillerTenancyHomeRegion

        public CcdCommitment.Builder fillerTenancyHomeRegion​(String fillerTenancyHomeRegion)
        The filler tenancy home region.
        Parameters:
        fillerTenancyHomeRegion - the value to set
        Returns:
        this builder
      • secondarySkus

        public CcdCommitment.Builder secondarySkus​(List<SecondarySkus> secondarySkus)
        Secondary SKUs associated with the main SKU.
        Parameters:
        secondarySkus - the value to set
        Returns:
        this builder
      • lifecycleState

        public CcdCommitment.Builder lifecycleState​(CcdCommitment.LifecycleState lifecycleState)
        This state always defaults to Active.

        For a detailed and exact state, check the lifecycleDetails state.

        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public CcdCommitment.Builder lifecycleDetails​(CcdCommitment.LifecycleDetails lifecycleDetails)
        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.

        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • skuQuantityPriceModel

        public CcdCommitment.Builder skuQuantityPriceModel​(List<CommittedSkuQuantityPriceModel> skuQuantityPriceModel)
        The list of SKUs associated with the commitment and their prices in all currency codes.
        Parameters:
        skuQuantityPriceModel - the value to set
        Returns:
        this builder
      • timeCreated

        public CcdCommitment.Builder timeCreated​(Date timeCreated)
        Date and time the CCD was created.

        The format is defined by RFC 3339. Example: 2022-01-25T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public CcdCommitment.Builder timeUpdated​(Date timeUpdated)
        Date and time the CCD was updated lastly.

        The format is defined by RFC 3339. Example: 2025-01-25T21:10:29.600Z

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • timeTerminated

        public CcdCommitment.Builder timeTerminated​(Date timeTerminated)
        Date and time the CCD was terminated.

        The format is defined by RFC 3339. Example: 2022-01-25T21:10:29.600Z

        Parameters:
        timeTerminated - the value to set
        Returns:
        this builder
      • freeformTags

        public CcdCommitment.Builder freeformTags​(Map<String,​String> freeformTags)
        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"}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public CcdCommitment.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

        Example: {"Operations": {"CostCenter": "42"}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • systemTags

        public CcdCommitment.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        System tags for this resource.

        Each key is predefined and scoped to a namespace.

        Example: {"orcl-cloud": {"free-tier-retained": "true"}}

        Parameters:
        systemTags - the value to set
        Returns:
        this builder
      • lastUpdatedBy

        public CcdCommitment.Builder lastUpdatedBy​(String lastUpdatedBy)
        Entity/User who lastly updated the ccdCommitment.
        Parameters:
        lastUpdatedBy - the value to set
        Returns:
        this builder
      • createdBy

        public CcdCommitment.Builder createdBy​(String createdBy)
        The entity that created the CCD commitment.
        Parameters:
        createdBy - the value to set
        Returns:
        this builder
      • approvedBy

        public CcdCommitment.Builder approvedBy​(String approvedBy)
        Entity/User who approved the ccdCommitment.
        Parameters:
        approvedBy - the value to set
        Returns:
        this builder