Class ClassicAssignedSubscription.Builder
- java.lang.Object
-
- com.oracle.bmc.tenantmanagercontrolplane.model.ClassicAssignedSubscription.Builder
-
- Enclosing class:
- ClassicAssignedSubscription
public static class ClassicAssignedSubscription.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
id
public ClassicAssignedSubscription.Builder id(String id)
-
compartmentId
public ClassicAssignedSubscription.Builder compartmentId(String compartmentId)
-
serviceName
public ClassicAssignedSubscription.Builder serviceName(String serviceName)
-
timeCreated
public ClassicAssignedSubscription.Builder timeCreated(Date timeCreated)
-
timeUpdated
public ClassicAssignedSubscription.Builder timeUpdated(Date timeUpdated)
-
freeformTags
public ClassicAssignedSubscription.Builder freeformTags(Map<String,String> freeformTags)
-
definedTags
public ClassicAssignedSubscription.Builder definedTags(Map<String,Map<String,Object>> definedTags)
-
lifecycleState
public ClassicAssignedSubscription.Builder lifecycleState(ClassicSubscriptionLifecycleState lifecycleState)
Lifecycle state of the subscription.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
classicSubscriptionId
public ClassicAssignedSubscription.Builder classicSubscriptionId(String classicSubscriptionId)
Subscription ID.- Parameters:
classicSubscriptionId
- the value to set- Returns:
- this builder
-
isClassicSubscription
public ClassicAssignedSubscription.Builder isClassicSubscription(Boolean isClassicSubscription)
Specifies whether or not the subscription is legacy.- Parameters:
isClassicSubscription
- the value to set- Returns:
- this builder
-
regionAssignment
public ClassicAssignedSubscription.Builder regionAssignment(String regionAssignment)
Region for the subscription.- Parameters:
regionAssignment
- the value to set- Returns:
- this builder
-
skus
public ClassicAssignedSubscription.Builder skus(List<SubscriptionSku> skus)
List of SKUs linked to the subscription.- Parameters:
skus
- the value to set- Returns:
- this builder
-
orderIds
public ClassicAssignedSubscription.Builder orderIds(List<String> orderIds)
List of subscription order OCIDs that contributed to this subscription.- Parameters:
orderIds
- the value to set- Returns:
- this builder
-
programType
public ClassicAssignedSubscription.Builder programType(String programType)
Specifies any program that is associated with the subscription.- Parameters:
programType
- the value to set- Returns:
- this builder
-
customerCountryCode
public ClassicAssignedSubscription.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 ClassicAssignedSubscription.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 ClassicAssignedSubscription.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 ClassicAssignedSubscription.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 ClassicAssignedSubscription.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 ClassicAssignedSubscription.Builder promotion(List<Promotion> promotion)
List of promotions related to the subscription.- Parameters:
promotion
- the value to set- Returns:
- this builder
-
purchaseEntitlementId
public ClassicAssignedSubscription.Builder purchaseEntitlementId(String purchaseEntitlementId)
Purchase entitlement ID associated with the subscription.- Parameters:
purchaseEntitlementId
- the value to set- Returns:
- this builder
-
startDate
public ClassicAssignedSubscription.Builder startDate(Date startDate)
Subscription start time.- Parameters:
startDate
- the value to set- Returns:
- this builder
-
endDate
public ClassicAssignedSubscription.Builder endDate(Date endDate)
Subscription end time.- Parameters:
endDate
- the value to set- Returns:
- this builder
-
managedBy
public ClassicAssignedSubscription.Builder managedBy(ClassicSubscriptionManagedBy managedBy)
Service or component which is used to provision and manage the subscription.- Parameters:
managedBy
- the value to set- Returns:
- this builder
-
build
public ClassicAssignedSubscription build()
-
copy
public ClassicAssignedSubscription.Builder copy(ClassicAssignedSubscription model)
-
-