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