Class SubscriptionMapping.Builder
- java.lang.Object
-
- com.oracle.bmc.tenantmanagercontrolplane.model.SubscriptionMapping.Builder
-
- Enclosing class:
- SubscriptionMapping
public static class SubscriptionMapping.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionMappingbuild()SubscriptionMapping.BuildercompartmentId(String compartmentId)OCID of the compartment.SubscriptionMapping.Buildercopy(SubscriptionMapping model)SubscriptionMapping.Builderid(String id)OCID of the mapping between subscription and compartment identified by the tenancy.SubscriptionMapping.BuilderisExplicitlyAssigned(Boolean isExplicitlyAssigned)Denotes if the subscription is explicity assigned to the root compartment or tenancy.SubscriptionMapping.BuilderlifecycleState(SubscriptionMapping.LifecycleState lifecycleState)Lifecycle state of the subscriptionMapping.SubscriptionMapping.BuildersubscriptionId(String subscriptionId)OCID of the subscription.SubscriptionMapping.BuildertimeCreated(Date timeCreated)Date-time when subscription mapping was created.SubscriptionMapping.BuildertimeTerminated(Date timeTerminated)Date-time when subscription mapping was terminated.SubscriptionMapping.BuildertimeUpdated(Date timeUpdated)Date-time when subscription mapping was updated.
-
-
-
Method Detail
-
id
public SubscriptionMapping.Builder id(String id)
OCID of the mapping between subscription and compartment identified by the tenancy.- Parameters:
id- the value to set- Returns:
- this builder
-
subscriptionId
public SubscriptionMapping.Builder subscriptionId(String subscriptionId)
OCID of the subscription.- Parameters:
subscriptionId- the value to set- Returns:
- this builder
-
compartmentId
public SubscriptionMapping.Builder compartmentId(String compartmentId)
OCID of the compartment.Always a tenancy OCID.
- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
isExplicitlyAssigned
public SubscriptionMapping.Builder isExplicitlyAssigned(Boolean isExplicitlyAssigned)
Denotes if the subscription is explicity assigned to the root compartment or tenancy.- Parameters:
isExplicitlyAssigned- the value to set- Returns:
- this builder
-
lifecycleState
public SubscriptionMapping.Builder lifecycleState(SubscriptionMapping.LifecycleState lifecycleState)
Lifecycle state of the subscriptionMapping.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
timeTerminated
public SubscriptionMapping.Builder timeTerminated(Date timeTerminated)
Date-time when subscription mapping was terminated.- Parameters:
timeTerminated- the value to set- Returns:
- this builder
-
timeCreated
public SubscriptionMapping.Builder timeCreated(Date timeCreated)
Date-time when subscription mapping was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public SubscriptionMapping.Builder timeUpdated(Date timeUpdated)
Date-time when subscription mapping was updated.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
build
public SubscriptionMapping build()
-
copy
public SubscriptionMapping.Builder copy(SubscriptionMapping model)
-
-