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