Package com.oracle.bmc.opsi.model
Class ChargebackPlan.Builder
- java.lang.Object
-
- com.oracle.bmc.opsi.model.ChargebackPlan.Builder
-
- Enclosing class:
- ChargebackPlan
public static class ChargebackPlan.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChargebackPlanbuild()ChargebackPlan.BuildercompartmentId(String compartmentId)The OCID of the compartment.ChargebackPlan.Buildercopy(ChargebackPlan model)ChargebackPlan.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ChargebackPlan.BuilderentitySource(ChargebackPlanEntitySource entitySource)Source of the chargeback plan.ChargebackPlan.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ChargebackPlan.Builderid(String id)OCID of OPSI Chargeback plan resource.ChargebackPlan.BuilderisCustomizable(Boolean isCustomizable)Indicates whether the chargeback plan can be customized.ChargebackPlan.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.ChargebackPlan.BuilderlifecycleState(LifecycleState lifecycleState)Chargeback Plan lifecycle statesChargebackPlan.BuilderplanCategory(ChargebackPlanCategory planCategory)Chargeback Plan category of the chargeback entity.ChargebackPlan.BuilderplanCustomItems(List<CreatePlanCustomItemDetails> planCustomItems)List of chargeback plan customizations.ChargebackPlan.BuilderplanDescription(String planDescription)Description of OPSI Chargeback Plan.ChargebackPlan.BuilderplanName(String planName)Name for the OPSI Chargeback plan.ChargebackPlan.BuilderplanType(String planType)Chargeback Plan type of the chargeback entity.ChargebackPlan.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.ChargebackPlan.BuildertimeCreated(Date timeCreated)The date and time the chargeback plan was created, in the format defined by RFC3339.ChargebackPlan.BuildertimeUpdated(Date timeUpdated)The time chargeback plan was updated.
-
-
-
Method Detail
-
id
public ChargebackPlan.Builder id(String id)
OCID of OPSI Chargeback plan resource.- Parameters:
id- the value to set- Returns:
- this builder
-
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
-
entitySource
public ChargebackPlan.Builder entitySource(ChargebackPlanEntitySource entitySource)
Source of the chargeback plan.- Parameters:
entitySource- 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
-
planCustomItems
public ChargebackPlan.Builder planCustomItems(List<CreatePlanCustomItemDetails> planCustomItems)
List of chargeback plan customizations.- Parameters:
planCustomItems- the value to set- Returns:
- this builder
-
build
public ChargebackPlan build()
-
copy
public ChargebackPlan.Builder copy(ChargebackPlan model)
-
-