Class ChargebackPlan.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public ChargebackPlan.Builder compartmentId​(String compartmentId)
        The OCID of the compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • planName

        public ChargebackPlan.Builder planName​(String planName)
        Name for the OPSI Chargeback plan.
        Parameters:
        planName - the value to set
        Returns:
        this builder
      • planDescription

        public ChargebackPlan.Builder planDescription​(String planDescription)
        Description of OPSI Chargeback Plan.
        Parameters:
        planDescription - the value to set
        Returns:
        this builder
      • planType

        public ChargebackPlan.Builder planType​(String planType)
        Chargeback Plan type of the chargeback entity.

        For an Exadata it can be WEIGHTED_ALLOCATION, EQUAL_ALLOCATION, UNUSED_ALLOCATION.

        Parameters:
        planType - the value to set
        Returns:
        this builder
      • planCategory

        public ChargebackPlan.Builder planCategory​(ChargebackPlanCategory planCategory)
        Chargeback Plan category of the chargeback entity.

        It can be OOB, or CUSTOM.

        Parameters:
        planCategory - the value to set
        Returns:
        this builder
      • isCustomizable

        public ChargebackPlan.Builder isCustomizable​(Boolean isCustomizable)
        Indicates whether the chargeback plan can be customized.
        Parameters:
        isCustomizable - the value to set
        Returns:
        this builder
      • timeCreated

        public ChargebackPlan.Builder timeCreated​(Date timeCreated)
        The date and time the chargeback plan was created, in the format defined by RFC3339.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public ChargebackPlan.Builder timeUpdated​(Date timeUpdated)
        The time chargeback plan was updated.

        An RFC3339 formatted datetime string

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

        public ChargebackPlan.Builder lifecycleState​(LifecycleState lifecycleState)
        Chargeback Plan lifecycle states
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public ChargebackPlan.Builder lifecycleDetails​(String lifecycleDetails)
        A message describing the current state in more detail.

        For example, can be used to provide actionable information for a resource in Failed state.

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

        public ChargebackPlan.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

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

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

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

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

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