Class ClassicSubscription.Builder
- java.lang.Object
-
- com.oracle.bmc.tenantmanagercontrolplane.model.ClassicSubscription.Builder
-
- Enclosing class:
- ClassicSubscription
public static class ClassicSubscription.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassicSubscription
build()
ClassicSubscription.Builder
classicSubscriptionId(String classicSubscriptionId)
Classic subscription ID.ClassicSubscription.Builder
cloudAmountCurrency(String cloudAmountCurrency)
The currency code for the customer associated with the subscription.ClassicSubscription.Builder
compartmentId(String compartmentId)
ClassicSubscription.Builder
copy(ClassicSubscription model)
ClassicSubscription.Builder
csiNumber(String csiNumber)
Customer service identifier for the customer associated with the subscription.ClassicSubscription.Builder
customerCountryCode(String customerCountryCode)
The country code for the customer associated with the subscription.ClassicSubscription.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
ClassicSubscription.Builder
endDate(Date endDate)
Subscription end time.ClassicSubscription.Builder
freeformTags(Map<String,String> freeformTags)
ClassicSubscription.Builder
id(String id)
ClassicSubscription.Builder
isClassicSubscription(Boolean isClassicSubscription)
Specifies whether or not the subscription is from classic systems.ClassicSubscription.Builder
isGovernmentSubscription(Boolean isGovernmentSubscription)
Specifies whether or not the subscription is a government subscription.ClassicSubscription.Builder
lifecycleState(ClassicSubscriptionLifecycleState lifecycleState)
Lifecycle state of the subscription.ClassicSubscription.Builder
paymentModel(String paymentModel)
The pay model of the subscription, such as ‘Pay as you go’ or ‘Monthly’.ClassicSubscription.Builder
programType(String programType)
Specifies any program that is associated with the subscription.ClassicSubscription.Builder
promotion(List<Promotion> promotion)
List of promotions related to the subscription.ClassicSubscription.Builder
purchaseEntitlementId(String purchaseEntitlementId)
Purchase entitlement ID associated with the subscription.ClassicSubscription.Builder
regionAssignment(String regionAssignment)
Region for the subscription.ClassicSubscription.Builder
regionAssignments(List<String> regionAssignments)
This list will contain up to 5 regions where the subscription has a physical presenceClassicSubscription.Builder
serviceName(String serviceName)
ClassicSubscription.Builder
skus(List<SubscriptionSku> skus)
List of SKUs linked to this subscription.ClassicSubscription.Builder
startDate(Date startDate)
Subscription start time.ClassicSubscription.Builder
subscriptionTier(String subscriptionTier)
Tier for the subscription, whether a free promotion subscription or a paid subscription.ClassicSubscription.Builder
timeCreated(Date timeCreated)
ClassicSubscription.Builder
timeUpdated(Date timeUpdated)
-
-
-
Method Detail
-
id
public ClassicSubscription.Builder id(String id)
-
compartmentId
public ClassicSubscription.Builder compartmentId(String compartmentId)
-
serviceName
public ClassicSubscription.Builder serviceName(String serviceName)
-
timeCreated
public ClassicSubscription.Builder timeCreated(Date timeCreated)
-
timeUpdated
public ClassicSubscription.Builder timeUpdated(Date timeUpdated)
-
freeformTags
public ClassicSubscription.Builder freeformTags(Map<String,String> freeformTags)
-
definedTags
public ClassicSubscription.Builder definedTags(Map<String,Map<String,Object>> definedTags)
-
classicSubscriptionId
public ClassicSubscription.Builder classicSubscriptionId(String classicSubscriptionId)
Classic subscription ID.- Parameters:
classicSubscriptionId
- the value to set- Returns:
- this builder
-
isClassicSubscription
public ClassicSubscription.Builder isClassicSubscription(Boolean isClassicSubscription)
Specifies whether or not the subscription is from classic systems.- Parameters:
isClassicSubscription
- the value to set- Returns:
- this builder
-
paymentModel
public ClassicSubscription.Builder paymentModel(String paymentModel)
The pay model of the subscription, such as ‘Pay as you go’ or ‘Monthly’.- Parameters:
paymentModel
- the value to set- Returns:
- this builder
-
regionAssignment
public ClassicSubscription.Builder regionAssignment(String regionAssignment)
Region for the subscription.- Parameters:
regionAssignment
- the value to set- Returns:
- this builder
-
lifecycleState
public ClassicSubscription.Builder lifecycleState(ClassicSubscriptionLifecycleState lifecycleState)
Lifecycle state of the subscription.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
skus
public ClassicSubscription.Builder skus(List<SubscriptionSku> skus)
List of SKUs linked to this subscription.- Parameters:
skus
- the value to set- Returns:
- this builder
-
programType
public ClassicSubscription.Builder programType(String programType)
Specifies any program that is associated with the subscription.- Parameters:
programType
- the value to set- Returns:
- this builder
-
customerCountryCode
public ClassicSubscription.Builder customerCountryCode(String customerCountryCode)
The country code for the customer associated with the subscription.- Parameters:
customerCountryCode
- the value to set- Returns:
- this builder
-
cloudAmountCurrency
public ClassicSubscription.Builder cloudAmountCurrency(String cloudAmountCurrency)
The currency code for the customer associated with the subscription.- Parameters:
cloudAmountCurrency
- the value to set- Returns:
- this builder
-
csiNumber
public ClassicSubscription.Builder csiNumber(String csiNumber)
Customer service identifier for the customer associated with the subscription.- Parameters:
csiNumber
- the value to set- Returns:
- this builder
-
subscriptionTier
public ClassicSubscription.Builder subscriptionTier(String subscriptionTier)
Tier for the subscription, whether a free promotion subscription or a paid subscription.- Parameters:
subscriptionTier
- the value to set- Returns:
- this builder
-
isGovernmentSubscription
public ClassicSubscription.Builder isGovernmentSubscription(Boolean isGovernmentSubscription)
Specifies whether or not the subscription is a government subscription.- Parameters:
isGovernmentSubscription
- the value to set- Returns:
- this builder
-
promotion
public ClassicSubscription.Builder promotion(List<Promotion> promotion)
List of promotions related to the subscription.- Parameters:
promotion
- the value to set- Returns:
- this builder
-
purchaseEntitlementId
public ClassicSubscription.Builder purchaseEntitlementId(String purchaseEntitlementId)
Purchase entitlement ID associated with the subscription.- Parameters:
purchaseEntitlementId
- the value to set- Returns:
- this builder
-
startDate
public ClassicSubscription.Builder startDate(Date startDate)
Subscription start time.- Parameters:
startDate
- the value to set- Returns:
- this builder
-
endDate
public ClassicSubscription.Builder endDate(Date endDate)
Subscription end time.- Parameters:
endDate
- the value to set- Returns:
- this builder
-
regionAssignments
public ClassicSubscription.Builder regionAssignments(List<String> regionAssignments)
This list will contain up to 5 regions where the subscription has a physical presence- Parameters:
regionAssignments
- the value to set- Returns:
- this builder
-
build
public ClassicSubscription build()
-
copy
public ClassicSubscription.Builder copy(ClassicSubscription model)
-
-