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