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 |
compartmentId(String compartmentId)
OCID of the compartment.
|
AssignedSubscription.Builder |
copy(AssignedSubscription o) |
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 |
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 |
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 |
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 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 o)
Copyright © 2016–2022. All rights reserved.