Class CreateCcdCommitmentDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • quantity

        public CreateCcdCommitmentDetails.Builder quantity​(Long quantity)
        The hourly quantity that the customer is committing to a CCD offer’s main SKU.

        For FLEX offers, this quantity must equal the CCD offer’s minQuantity and maxQuantity when both are provided. 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 CreateCcdCommitmentDetails.Builder displayName​(String displayName)
        The CCD commitment name.

        Ensure the name is unique across subscription IDs. Avoid entering confidential information.

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

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

        public CreateCcdCommitmentDetails.Builder compartmentId​(String compartmentId)
        The compartment OCID where you want to create the CCD commitment.

        Must be the root compartment OCID of a parent tenancy (if part of an organization), or a standalone tenancy to which the subscription is associated.

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

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

        public CreateCcdCommitmentDetails.Builder secondarySkus​(List<SecondarySkus> secondarySkus)
        The bundled SKUs selected for this commitment.

        Supply quantity only for components whose offer quantity rule is CUSTOMER_SELECTED.

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

        public CreateCcdCommitmentDetails.Builder timeCcdCommitmentStarts​(Date timeCcdCommitmentStarts)
        The inclusive date and time when the CCD commitment will be effective.

        The date and time must be rounded up to the exact hour, and must be in the future. The format is defined by RFC 3339. For example, if you want to commit to a CCD on 2025-06-01 12:00:00, you should create a request any time before 2025-06-01 12:00:00. You can only create CCD for a Scheduled or Current CCD offer.

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

        public CreateCcdCommitmentDetails.Builder timeCcdCommitmentEnds​(Date timeCcdCommitmentEnds)
        The exclusive time the CCD commitment ends.

        The time gets computed using timeCcdCommitmentStarts from the ccdCommitment, and the minimum commitment term associated with CcdOffer. The default value is set as null at the time of CCD commitment creation.

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

        public CreateCcdCommitmentDetails.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 CreateCcdCommitmentDetails.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