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 ClassicSubscriptionbuild()ClassicSubscription.BuilderclassicSubscriptionId(String classicSubscriptionId)Classic subscription ID.ClassicSubscription.BuildercloudAmountCurrency(String cloudAmountCurrency)The currency code for the customer associated with the subscription.ClassicSubscription.BuildercompartmentId(String compartmentId)ClassicSubscription.Buildercopy(ClassicSubscription model)ClassicSubscription.BuildercsiNumber(String csiNumber)Customer service identifier for the customer associated with the subscription.ClassicSubscription.BuildercustomerCountryCode(String customerCountryCode)The country code for the customer associated with the subscription.ClassicSubscription.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)ClassicSubscription.BuilderendDate(Date endDate)Subscription end time.ClassicSubscription.BuilderfreeformTags(Map<String,String> freeformTags)ClassicSubscription.Builderid(String id)ClassicSubscription.BuilderisClassicSubscription(Boolean isClassicSubscription)Specifies whether or not the subscription is from classic systems.ClassicSubscription.BuilderisGovernmentSubscription(Boolean isGovernmentSubscription)Specifies whether or not the subscription is a government subscription.ClassicSubscription.BuilderlifecycleState(ClassicSubscriptionLifecycleState lifecycleState)Lifecycle state of the subscription.ClassicSubscription.BuilderpaymentModel(String paymentModel)The pay model of the subscription, such as ‘Pay as you go’ or ‘Monthly’.ClassicSubscription.BuilderprogramType(String programType)Specifies any program that is associated with the subscription.ClassicSubscription.Builderpromotion(List<Promotion> promotion)List of promotions related to the subscription.ClassicSubscription.BuilderpurchaseEntitlementId(String purchaseEntitlementId)Purchase entitlement ID associated with the subscription.ClassicSubscription.BuilderregionAssignment(String regionAssignment)Region for the subscription.ClassicSubscription.BuilderregionAssignments(List<String> regionAssignments)This list will contain up to 5 regions where the subscription has a physical presenceClassicSubscription.BuilderserviceName(String serviceName)ClassicSubscription.Builderskus(List<SubscriptionSku> skus)List of SKUs linked to this subscription.ClassicSubscription.BuilderstartDate(Date startDate)Subscription start time.ClassicSubscription.BuildersubscriptionTier(String subscriptionTier)Tier for the subscription, whether a free promotion subscription or a paid subscription.ClassicSubscription.BuildertimeCreated(Date timeCreated)ClassicSubscription.BuildertimeUpdated(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)
-
-