Package com.oracle.bmc.self.model
Class PartnerSubscription.Builder
- java.lang.Object
-
- com.oracle.bmc.self.model.PartnerSubscription.Builder
-
- Enclosing class:
- PartnerSubscription
public static class PartnerSubscription.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartnerSubscription.BuilderadditionalDetails(List<ExtendedMetadata> additionalDetails)Additional details that are specific for this subscription such as activation details.PartnerSubscriptionbuild()PartnerSubscription.Buildercopy(PartnerSubscription model)PartnerSubscription.BuilderdisplayName(String displayName)The subscription name.PartnerSubscription.BuilderisAutoRenew(Boolean isAutoRenew)Whether subscription should be auto-renewed at the end of cycle.PartnerSubscription.BuilderlifecycleDetails(LifecycleDetailsEnum lifecycleDetails)A message that describes the current state of the Subscription in more detail.PartnerSubscription.BuilderlifecycleState(LifecycleStateEnum lifecycleState)The current state of the Subscription.PartnerSubscription.BuilderpricingPlan(PricingPlan pricingPlan)PartnerSubscription.BuilderproductId(String productId)The unique OCID of the product, effectively functioning as the listing ID.PartnerSubscription.BuildersourceType(SourceType sourceType)The type of seller in SELF Service.PartnerSubscription.BuildersubscriptionId(String subscriptionId)The unique identifier of the Subscription.PartnerSubscription.BuildertimeCreated(Date timeCreated)The date and time the Subscription was created, in the format defined by RFC 3339.PartnerSubscription.BuildertimeEnded(Date timeEnded)The date and time the Subscription was ended, in the format defined by RFC 3339.PartnerSubscription.BuildertimeStarted(Date timeStarted)The date and time the Subscription was started, in the format defined by RFC 3339.PartnerSubscription.BuildertimeUpdated(Date timeUpdated)The date and time the Subscription was updated, in the format defined by RFC 3339.
-
-
-
Method Detail
-
subscriptionId
public PartnerSubscription.Builder subscriptionId(String subscriptionId)
The unique identifier of the Subscription.- Parameters:
subscriptionId- the value to set- Returns:
- this builder
-
displayName
public PartnerSubscription.Builder displayName(String displayName)
The subscription name.Must be unique within the compartment. This value can be updated.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
pricingPlan
public PartnerSubscription.Builder pricingPlan(PricingPlan pricingPlan)
-
sourceType
public PartnerSubscription.Builder sourceType(SourceType sourceType)
The type of seller in SELF Service.- Parameters:
sourceType- the value to set- Returns:
- this builder
-
productId
public PartnerSubscription.Builder productId(String productId)
The unique OCID of the product, effectively functioning as the listing ID.- Parameters:
productId- the value to set- Returns:
- this builder
-
isAutoRenew
public PartnerSubscription.Builder isAutoRenew(Boolean isAutoRenew)
Whether subscription should be auto-renewed at the end of cycle.- Parameters:
isAutoRenew- the value to set- Returns:
- this builder
-
additionalDetails
public PartnerSubscription.Builder additionalDetails(List<ExtendedMetadata> additionalDetails)
Additional details that are specific for this subscription such as activation details.- Parameters:
additionalDetails- the value to set- Returns:
- this builder
-
lifecycleState
public PartnerSubscription.Builder lifecycleState(LifecycleStateEnum lifecycleState)
The current state of the Subscription.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public PartnerSubscription.Builder lifecycleDetails(LifecycleDetailsEnum lifecycleDetails)
A message that describes the current state of the Subscription in more detail.For example, can be used to provide actionable information for a resource in the Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
timeStarted
public PartnerSubscription.Builder timeStarted(Date timeStarted)
The date and time the Subscription was started, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeStarted- the value to set- Returns:
- this builder
-
timeEnded
public PartnerSubscription.Builder timeEnded(Date timeEnded)
The date and time the Subscription was ended, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeEnded- the value to set- Returns:
- this builder
-
timeCreated
public PartnerSubscription.Builder timeCreated(Date timeCreated)
The date and time the Subscription was created, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public PartnerSubscription.Builder timeUpdated(Date timeUpdated)
The date and time the Subscription was updated, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
build
public PartnerSubscription build()
-
copy
public PartnerSubscription.Builder copy(PartnerSubscription model)
-
-