Class CcdOfferSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.ccdoffers.model.CcdOfferSummary.Builder
-
- Enclosing class:
- CcdOfferSummary
public static class CcdOfferSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CcdOfferSummarybuild()CcdOfferSummary.BuilderbundleSkus(List<BundleSku> bundleSkus)The polymorphic bundled SKU definitions.CcdOfferSummary.BuildercompartmentId(String compartmentId)The root compartment OCID of the customer’s tenancy.CcdOfferSummary.Buildercopy(CcdOfferSummary model)CcdOfferSummary.BuildercreatedBy(String createdBy)Entity/User who created the ccdOffer.CcdOfferSummary.BuildercurrencyCode(String currencyCode)Currency code of listPrice associated with primary product/sku.CcdOfferSummary.BuildercustomerSegment(CcdOfferSummary.CustomerSegment customerSegment)The targeted customer segment.CcdOfferSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CcdOfferSummary.BuilderdiscountPct(String discountPct)The discount percentage applicable to the CCD offer, represented as a decimal string from 0 through 100 inclusive.CcdOfferSummary.BuilderdisplayName(String displayName)The CCD offer name.CcdOfferSummary.BuilderexternalPriceOfSku(List<SkuExternalPriceModel> externalPriceOfSku)The SKU list price in all currency codes.CcdOfferSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CcdOfferSummary.Builderid(String id)The CCD offer resource OCID.CcdOfferSummary.BuilderisFillerUsageEnable(Boolean isFillerUsageEnable)Enable or disable filler usage if the customer usage quantity is below the minimum quantity, and you want metering to fill in usages to meet the minimum quantity.CcdOfferSummary.BuilderlastUpdatedBy(String lastUpdatedBy)Entity/User who lastly updated the ccdOffer.CcdOfferSummary.BuilderlifecycleDetails(CcdOffer.LifecycleDetails lifecycleDetails)The CCD offer’s detailed current state.CcdOfferSummary.BuilderlifecycleState(CcdOffer.LifecycleState lifecycleState)The CCD offer’s current state.CcdOfferSummary.BuilderlistPrice(String listPrice)ListPrice of a sku.CcdOfferSummary.BuildermaxQuantity(Long maxQuantity)The maximum quantity of the primary SKU committed to the CCD offer.CcdOfferSummary.BuilderminQuantity(Long minQuantity)The minimum quantity of the primary SKU committed to the CCD offer.CcdOfferSummary.BuilderofferRestriction(OfferRestriction offerRestriction)CcdOfferSummary.BuilderorderDocumentNumber(String orderDocumentNumber)Sales order document number.CcdOfferSummary.BuilderreclaimTerm(Long reclaimTerm)The reclaim term for an offer, measured in reclaimTermUnit.CcdOfferSummary.BuilderreclaimTermUnit(CcdOffer.ReclaimTermUnit reclaimTermUnit)The unit used to measure reclaimTerm.CcdOfferSummary.BuilderreportingRegion(String reportingRegion)Defines where the filler usage is reportedCcdOfferSummary.Buildersku(String sku)The SKU part number (prefaced with “B”) the CCD is associated with.CcdOfferSummary.BuilderskuDisplayName(String skuDisplayName)The canonical SKU display name.CcdOfferSummary.BuilderskuMetric(String skuMetric)The canonical billing metric.CcdOfferSummary.BuildersourceType(CcdOffer.SourceType sourceType)The commercial workflow that created the CCD offer.CcdOfferSummary.BuildersubscriptionId(String subscriptionId)The subscription OCID for which the dedicated CCD offer has been created.CcdOfferSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.CcdOfferSummary.Builderterm(Integer term)The number of terms the offer is applicable to.CcdOfferSummary.BuildertimeCcdOfferEnds(Date timeCcdOfferEnds)The inclusive time when the CCD offer is no longer in effect.CcdOfferSummary.BuildertimeCcdOfferStarts(Date timeCcdOfferStarts)The inclusive date the CCD offer will be effective.CcdOfferSummary.BuildertimeCreated(Date timeCreated)Date and time the CCD was created.CcdOfferSummary.BuildertimeTerminated(Date timeTerminated)Date and time the CCD was terminated.CcdOfferSummary.BuildertimeUpdated(Date timeUpdated)Date and time the CCD was updated lastly.CcdOfferSummary.BuildertypeOfOffer(CcdOfferSummary.TypeOfOffer typeOfOffer)The created CCD offer type.CcdOfferSummary.Builderunit(CcdOfferSummary.Unit unit)The term units.
-
-
-
Method Detail
-
id
public CcdOfferSummary.Builder id(String id)
The CCD offer resource OCID.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public CcdOfferSummary.Builder displayName(String displayName)
The CCD offer name.Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
subscriptionId
public CcdOfferSummary.Builder subscriptionId(String subscriptionId)
The subscription OCID for which the dedicated CCD offer has been created.- Parameters:
subscriptionId- the value to set- Returns:
- this builder
-
compartmentId
public CcdOfferSummary.Builder compartmentId(String compartmentId)
The root compartment OCID of the customer’s tenancy.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
typeOfOffer
public CcdOfferSummary.Builder typeOfOffer(CcdOfferSummary.TypeOfOffer typeOfOffer)
The created CCD offer type.- Parameters:
typeOfOffer- the value to set- Returns:
- this builder
-
sourceType
public CcdOfferSummary.Builder sourceType(CcdOffer.SourceType sourceType)
The commercial workflow that created the CCD offer.- Parameters:
sourceType- the value to set- Returns:
- this builder
-
reclaimTerm
public CcdOfferSummary.Builder reclaimTerm(Long reclaimTerm)
The reclaim term for an offer, measured in reclaimTermUnit.- Parameters:
reclaimTerm- the value to set- Returns:
- this builder
-
reclaimTermUnit
public CcdOfferSummary.Builder reclaimTermUnit(CcdOffer.ReclaimTermUnit reclaimTermUnit)
The unit used to measure reclaimTerm.- Parameters:
reclaimTermUnit- the value to set- Returns:
- this builder
-
customerSegment
public CcdOfferSummary.Builder customerSegment(CcdOfferSummary.CustomerSegment customerSegment)
The targeted customer segment.- Parameters:
customerSegment- the value to set- Returns:
- this builder
-
isFillerUsageEnable
public CcdOfferSummary.Builder isFillerUsageEnable(Boolean isFillerUsageEnable)
Enable or disable filler usage if the customer usage quantity is below the minimum quantity, and you want metering to fill in usages to meet the minimum quantity.- Parameters:
isFillerUsageEnable- the value to set- Returns:
- this builder
-
lastUpdatedBy
public CcdOfferSummary.Builder lastUpdatedBy(String lastUpdatedBy)
Entity/User who lastly updated the ccdOffer.- Parameters:
lastUpdatedBy- the value to set- Returns:
- this builder
-
createdBy
public CcdOfferSummary.Builder createdBy(String createdBy)
Entity/User who created the ccdOffer.- Parameters:
createdBy- the value to set- Returns:
- this builder
-
orderDocumentNumber
public CcdOfferSummary.Builder orderDocumentNumber(String orderDocumentNumber)
Sales order document number.- Parameters:
orderDocumentNumber- the value to set- Returns:
- this builder
-
reportingRegion
public CcdOfferSummary.Builder reportingRegion(String reportingRegion)
Defines where the filler usage is reported- Parameters:
reportingRegion- the value to set- Returns:
- this builder
-
sku
public CcdOfferSummary.Builder sku(String sku)
The SKU part number (prefaced with “B”) the CCD is associated with.- Parameters:
sku- the value to set- Returns:
- this builder
-
skuDisplayName
public CcdOfferSummary.Builder skuDisplayName(String skuDisplayName)
The canonical SKU display name.- Parameters:
skuDisplayName- the value to set- Returns:
- this builder
-
skuMetric
public CcdOfferSummary.Builder skuMetric(String skuMetric)
The canonical billing metric.- Parameters:
skuMetric- the value to set- Returns:
- this builder
-
minQuantity
public CcdOfferSummary.Builder minQuantity(Long minQuantity)
The minimum quantity of the primary SKU committed to the CCD offer.For FLEX offers, minQuantity and maxQuantity must both be equal if maxQuantity provided.
- Parameters:
minQuantity- the value to set- Returns:
- this builder
-
maxQuantity
public CcdOfferSummary.Builder maxQuantity(Long maxQuantity)
The maximum quantity of the primary SKU committed to the CCD offer.For FLEX offers if provided, it must equal minQuantity.
- Parameters:
maxQuantity- the value to set- Returns:
- this builder
-
term
public CcdOfferSummary.Builder term(Integer term)
The number of terms the offer is applicable to.- Parameters:
term- the value to set- Returns:
- this builder
-
unit
public CcdOfferSummary.Builder unit(CcdOfferSummary.Unit unit)
The term units.- Parameters:
unit- the value to set- Returns:
- this builder
-
discountPct
public CcdOfferSummary.Builder discountPct(String discountPct)
The discount percentage applicable to the CCD offer, represented as a decimal string from 0 through 100 inclusive.- Parameters:
discountPct- the value to set- Returns:
- this builder
-
offerRestriction
public CcdOfferSummary.Builder offerRestriction(OfferRestriction offerRestriction)
-
bundleSkus
public CcdOfferSummary.Builder bundleSkus(List<BundleSku> bundleSkus)
The polymorphic bundled SKU definitions.Every bundled SKU in an offer must use the same quantityRule; don’t mix FIXED_RATIO and CUSTOMER_SELECTED bundled SKUs in one offer. An offer can contain at most five SKUs in total, including the primary SKU.
- Parameters:
bundleSkus- the value to set- Returns:
- this builder
-
externalPriceOfSku
public CcdOfferSummary.Builder externalPriceOfSku(List<SkuExternalPriceModel> externalPriceOfSku)
The SKU list price in all currency codes.- Parameters:
externalPriceOfSku- the value to set- Returns:
- this builder
-
lifecycleState
public CcdOfferSummary.Builder lifecycleState(CcdOffer.LifecycleState lifecycleState)
The CCD offer’s current state.This always defaults to Active. For the accurate resource state, refer to the lifecycleDetails property value.
- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public CcdOfferSummary.Builder lifecycleDetails(CcdOffer.LifecycleDetails lifecycleDetails)
The CCD offer’s detailed current state.The state value is determined by timeCcdOfferStarts, timeCcdOfferEnds, and timeTerminated with respect to the current time.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
timeCreated
public CcdOfferSummary.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 CcdOfferSummary.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 CcdOfferSummary.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 CcdOfferSummary.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 CcdOfferSummary.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 CcdOfferSummary.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
-
timeCcdOfferStarts
public CcdOfferSummary.Builder timeCcdOfferStarts(Date timeCcdOfferStarts)
The inclusive date the CCD offer will be effective.The format is defined by RFC 3339.
- Parameters:
timeCcdOfferStarts- the value to set- Returns:
- this builder
-
timeCcdOfferEnds
public CcdOfferSummary.Builder timeCcdOfferEnds(Date timeCcdOfferEnds)
The inclusive time when the CCD offer is no longer in effect.The format is defined by RFC 3339.
- Parameters:
timeCcdOfferEnds- the value to set- Returns:
- this builder
-
currencyCode
public CcdOfferSummary.Builder currencyCode(String currencyCode)
Currency code of listPrice associated with primary product/sku.This will be always null. Please refer externalPriceOfSku to know product/sku’s associated list price in its currency code.
- Parameters:
currencyCode- the value to set- Returns:
- this builder
-
listPrice
public CcdOfferSummary.Builder listPrice(String listPrice)
ListPrice of a sku.Please refer externalPriceOfSku to know product/sku’s associated list price in its currency code.
- Parameters:
listPrice- the value to set- Returns:
- this builder
-
build
public CcdOfferSummary build()
-
copy
public CcdOfferSummary.Builder copy(CcdOfferSummary model)
-
-