Class CcdCommitment.Builder
- java.lang.Object
-
- com.oracle.bmc.ccdoffers.model.CcdCommitment.Builder
-
- Enclosing class:
- CcdCommitment
public static class CcdCommitment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CcdCommitment.BuilderapprovedBy(String approvedBy)Entity/User who approved the ccdCommitment.CcdCommitmentbuild()CcdCommitment.BuildercompartmentId(String compartmentId)The root compartment ID.CcdCommitment.Buildercopy(CcdCommitment model)CcdCommitment.BuildercreatedBy(String createdBy)The entity that created the CCD commitment.CcdCommitment.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CcdCommitment.BuilderdisplayName(String displayName)The CCD commitment name.CcdCommitment.BuilderfillerTenancyHomeRegion(String fillerTenancyHomeRegion)The filler tenancy home region.CcdCommitment.BuilderfillerTenancyId(String fillerTenancyId)The tenancy OCID that you want to apply filler usage to.CcdCommitment.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CcdCommitment.Builderid(String id)The CCD commitment resource OCID.CcdCommitment.BuilderlastUpdatedBy(String lastUpdatedBy)Entity/User who lastly updated the ccdCommitment.CcdCommitment.BuilderlifecycleDetails(CcdCommitment.LifecycleDetails lifecycleDetails)The CCD commitment’s current state.CcdCommitment.BuilderlifecycleState(CcdCommitment.LifecycleState lifecycleState)This state always defaults to Active.CcdCommitment.BuilderofferId(String offerId)The CCD offer OCID.CcdCommitment.Builderquantity(Long quantity)The hourly quantity that the customer is committing to a CCD offer’s main SKU.CcdCommitment.BuilderreclaimTerm(Long reclaimTerm)The reclaim term copied from the offer when the commitment is created.CcdCommitment.BuilderreclaimTermUnit(CcdOffer.ReclaimTermUnit reclaimTermUnit)The unit used to measure reclaimTerm, copied from the offer when the commitment is created.CcdCommitment.BuildersecondarySkus(List<SecondarySkus> secondarySkus)Secondary SKUs associated with the main SKU.CcdCommitment.BuilderskuQuantityPriceModel(List<CommittedSkuQuantityPriceModel> skuQuantityPriceModel)The list of SKUs associated with the commitment and their prices in all currency codes.CcdCommitment.BuildersourceType(CcdOffer.SourceType sourceType)The commercial workflow of the associated CCD offer.CcdCommitment.BuildersubscriptionId(String subscriptionId)The subscription ID the CCD offer is applicable to.CcdCommitment.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.CcdCommitment.BuildertimeCcdCommitmentEnds(Date timeCcdCommitmentEnds)The date and time the CCD commitment will be deactivated.CcdCommitment.BuildertimeCcdCommitmentStarts(Date timeCcdCommitmentStarts)The date and time the CCD commitment will be effective.The format is defined by RFC 3339.CcdCommitment.BuildertimeCreated(Date timeCreated)Date and time the CCD was created.CcdCommitment.BuildertimeTerminated(Date timeTerminated)Date and time the CCD was terminated.CcdCommitment.BuildertimeUpdated(Date timeUpdated)Date and time the CCD was updated lastly.CcdCommitment.BuilderusageEligibility(UsageEligibility usageEligibility)
-
-
-
Method Detail
-
id
public CcdCommitment.Builder id(String id)
The CCD commitment resource OCID.- Parameters:
id- the value to set- Returns:
- this builder
-
quantity
public CcdCommitment.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
-
displayName
public CcdCommitment.Builder displayName(String displayName)
The CCD commitment name.Ensure the name is unique for a given subscription ID. Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
offerId
public CcdCommitment.Builder offerId(String offerId)
The CCD offer OCID.- Parameters:
offerId- the value to set- Returns:
- this builder
-
sourceType
public CcdCommitment.Builder sourceType(CcdOffer.SourceType sourceType)
The commercial workflow of the associated CCD offer.- Parameters:
sourceType- the value to set- Returns:
- this builder
-
reclaimTerm
public CcdCommitment.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 CcdCommitment.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
-
timeCcdCommitmentStarts
public CcdCommitment.Builder timeCcdCommitmentStarts(Date timeCcdCommitmentStarts)
The date and time the CCD commitment will be effective.The format is defined by RFC 3339.- Parameters:
timeCcdCommitmentStarts- the value to set- Returns:
- this builder
-
timeCcdCommitmentEnds
public CcdCommitment.Builder timeCcdCommitmentEnds(Date timeCcdCommitmentEnds)
The date and time the CCD commitment will be deactivated.The date and time is calculated based on timeCcdCommitmentStarts, the term, and units of the CCD offer. For example: 2025-06-01T03:00:00. The format is defined by RFC 3339.
- Parameters:
timeCcdCommitmentEnds- the value to set- Returns:
- this builder
-
subscriptionId
public CcdCommitment.Builder subscriptionId(String subscriptionId)
The subscription ID the CCD offer is applicable to.- Parameters:
subscriptionId- the value to set- Returns:
- this builder
-
compartmentId
public CcdCommitment.Builder compartmentId(String compartmentId)
The root compartment ID.The CCD Commitment is associated with the tenancy root compartment ID.
- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
fillerTenancyId
public CcdCommitment.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 CcdCommitment.Builder fillerTenancyHomeRegion(String fillerTenancyHomeRegion)
The filler tenancy home region.- Parameters:
fillerTenancyHomeRegion- the value to set- Returns:
- this builder
-
usageEligibility
public CcdCommitment.Builder usageEligibility(UsageEligibility usageEligibility)
-
secondarySkus
public CcdCommitment.Builder secondarySkus(List<SecondarySkus> secondarySkus)
Secondary SKUs associated with the main SKU.- Parameters:
secondarySkus- the value to set- Returns:
- this builder
-
lifecycleState
public CcdCommitment.Builder lifecycleState(CcdCommitment.LifecycleState lifecycleState)
This state always defaults to Active.For a detailed and exact state, check the lifecycleDetails state.
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public CcdCommitment.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 CcdCommitment.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 CcdCommitment.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 CcdCommitment.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 CcdCommitment.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 CcdCommitment.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 CcdCommitment.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 CcdCommitment.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 CcdCommitment.Builder lastUpdatedBy(String lastUpdatedBy)
Entity/User who lastly updated the ccdCommitment.- Parameters:
lastUpdatedBy- the value to set- Returns:
- this builder
-
createdBy
public CcdCommitment.Builder createdBy(String createdBy)
The entity that created the CCD commitment.- Parameters:
createdBy- the value to set- Returns:
- this builder
-
approvedBy
public CcdCommitment.Builder approvedBy(String approvedBy)
Entity/User who approved the ccdCommitment.- Parameters:
approvedBy- the value to set- Returns:
- this builder
-
build
public CcdCommitment build()
-
copy
public CcdCommitment.Builder copy(CcdCommitment model)
-
-