public static class Subscription.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Subscription |
build() |
Subscription.Builder |
classicSubscriptionId(String classicSubscriptionId)
Classic subscription ID.
|
Subscription.Builder |
cloudAmountCurrency(String cloudAmountCurrency)
The currency code for the customer associated with the subscription.
|
Subscription.Builder |
compartmentId(String compartmentId)
OCID of the compartment.
|
Subscription.Builder |
copy(Subscription model) |
Subscription.Builder |
csiNumber(String csiNumber)
Customer service identifier for the customer associated with the subscription.
|
Subscription.Builder |
customerCountryCode(String customerCountryCode)
The country code for the customer associated with the subscription.
|
Subscription.Builder |
endDate(Date endDate)
Subscription end time.
|
Subscription.Builder |
id(String id)
OCID of the subscription details for the particular root compartment or tenancy.
|
Subscription.Builder |
isClassicSubscription(Boolean isClassicSubscription)
Denotes if the subscription is from classic systems or not.
|
Subscription.Builder |
isGovernmentSubscription(Boolean isGovernmentSubscription)
Denotes if the subscription is a government subscription or not.
|
Subscription.Builder |
lifecycleState(SubscriptionLifecycleState lifecycleState)
Lifecycle state of the subscription.
|
Subscription.Builder |
paymentModel(String paymentModel)
The pay model of the subscription, such as ‘Pay as you go’ or ‘Monthly’.
|
Subscription.Builder |
programType(String programType)
Denotes any program that is associated with the subscription.
|
Subscription.Builder |
promotion(List<Promotion> promotion)
List of promotions related to the subscription.
|
Subscription.Builder |
purchaseEntitlementId(String purchaseEntitlementId)
Purchase entitlement id associated with the subscription.
|
Subscription.Builder |
regionAssignment(String regionAssignment)
Region for the subscription.
|
Subscription.Builder |
serviceName(String serviceName)
The type of subscription, such as ‘CLOUDCM’, ‘SAAS’, ‘ERP’, or ‘CRM’.
|
Subscription.Builder |
skus(List<SubscriptionSku> skus)
List of SKUs linked to this subscription.
|
Subscription.Builder |
startDate(Date startDate)
Subscription start time.
|
Subscription.Builder |
subscriptionTier(String subscriptionTier)
Tier for the subscription, such as if it is a free promotion subscription or a paid
subscription.
|
Subscription.Builder |
timeCreated(Date timeCreated)
Date-time when subscription is created.
|
Subscription.Builder |
timeUpdated(Date timeUpdated)
Date-time when subscription is updated.
|
public Subscription.Builder id(String id)
OCID of the subscription details for the particular root compartment or tenancy.
id
- the value to setpublic Subscription.Builder classicSubscriptionId(String classicSubscriptionId)
Classic subscription ID.
classicSubscriptionId
- the value to setpublic Subscription.Builder compartmentId(String compartmentId)
OCID of the compartment. Always a tenancy OCID.
compartmentId
- the value to setpublic Subscription.Builder serviceName(String serviceName)
The type of subscription, such as ‘CLOUDCM’, ‘SAAS’, ‘ERP’, or ‘CRM’.
serviceName
- the value to setpublic Subscription.Builder isClassicSubscription(Boolean isClassicSubscription)
Denotes if the subscription is from classic systems or not.
isClassicSubscription
- the value to setpublic Subscription.Builder paymentModel(String paymentModel)
The pay model of the subscription, such as ‘Pay as you go’ or ‘Monthly’.
paymentModel
- the value to setpublic Subscription.Builder regionAssignment(String regionAssignment)
Region for the subscription.
regionAssignment
- the value to setpublic Subscription.Builder lifecycleState(SubscriptionLifecycleState lifecycleState)
Lifecycle state of the subscription.
lifecycleState
- the value to setpublic Subscription.Builder skus(List<SubscriptionSku> skus)
List of SKUs linked to this subscription.
skus
- the value to setpublic Subscription.Builder programType(String programType)
Denotes any program that is associated with the subscription.
programType
- the value to setpublic Subscription.Builder customerCountryCode(String customerCountryCode)
The country code for the customer associated with the subscription.
customerCountryCode
- the value to setpublic Subscription.Builder cloudAmountCurrency(String cloudAmountCurrency)
The currency code for the customer associated with the subscription.
cloudAmountCurrency
- the value to setpublic Subscription.Builder csiNumber(String csiNumber)
Customer service identifier for the customer associated with the subscription.
csiNumber
- the value to setpublic Subscription.Builder subscriptionTier(String subscriptionTier)
Tier for the subscription, such as if it is a free promotion subscription or a paid subscription.
subscriptionTier
- the value to setpublic Subscription.Builder isGovernmentSubscription(Boolean isGovernmentSubscription)
Denotes if the subscription is a government subscription or not.
isGovernmentSubscription
- the value to setpublic Subscription.Builder promotion(List<Promotion> promotion)
List of promotions related to the subscription.
promotion
- the value to setpublic Subscription.Builder purchaseEntitlementId(String purchaseEntitlementId)
Purchase entitlement id associated with the subscription.
purchaseEntitlementId
- the value to setpublic Subscription.Builder startDate(Date startDate)
Subscription start time.
startDate
- the value to setpublic Subscription.Builder endDate(Date endDate)
Subscription end time.
endDate
- the value to setpublic Subscription.Builder timeUpdated(Date timeUpdated)
Date-time when subscription is updated.
timeUpdated
- the value to setpublic Subscription.Builder timeCreated(Date timeCreated)
Date-time when subscription is created.
timeCreated
- the value to setpublic Subscription build()
public Subscription.Builder copy(Subscription model)
Copyright © 2016–2023. All rights reserved.