Class CcdCommitmentSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • quantity

        public CcdCommitmentSummary.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
      • reclaimTerm

        public CcdCommitmentSummary.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 CcdCommitmentSummary.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
      • displayName

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

        The name will be unique across the subscription for which the CCD commitment has been created. Avoid entering confidential information.

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

        public CcdCommitmentSummary.Builder timeCcdCommitmentStarts​(Date timeCcdCommitmentStarts)
        The date and time, rounded down to an hour, that the CCD commitment will be effective.

        The format conforms to RFC 3339.

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

        public CcdCommitmentSummary.Builder timeCcdCommitmentEnds​(Date timeCcdCommitmentEnds)
        The date and time the CCD commitment ends, which is calculated from the timeCcdCommitmentStarts of the ccdCommitment, the term, and ccdOffer units.

        The format must conform to RFC 3339.

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

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

        public CcdCommitmentSummary.Builder compartmentId​(String compartmentId)
        The root compartment ID associated with the CCD offer the customer has signed up for.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • fillerTenancyId

        public CcdCommitmentSummary.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 CcdCommitmentSummary.Builder fillerTenancyHomeRegion​(String fillerTenancyHomeRegion)
        The filler tenancy home region.
        Parameters:
        fillerTenancyHomeRegion - the value to set
        Returns:
        this builder
      • lifecycleState

        public CcdCommitmentSummary.Builder lifecycleState​(CcdCommitment.LifecycleState lifecycleState)
        The CCD commitment’s current state, which always defaults to Active.

        For a more accurate detailed state, refer to lifecycleDetails.

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

        public CcdCommitmentSummary.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 CcdCommitmentSummary.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 CcdCommitmentSummary.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 CcdCommitmentSummary.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 CcdCommitmentSummary.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 CcdCommitmentSummary.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 CcdCommitmentSummary.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 CcdCommitmentSummary.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 CcdCommitmentSummary.Builder lastUpdatedBy​(String lastUpdatedBy)
        Entity/User who lastly updated the ccdCommitment.
        Parameters:
        lastUpdatedBy - the value to set
        Returns:
        this builder
      • createdBy

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

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