Package com.oracle.bmc.mysql.model
Class BlueGreenDeployment.Builder
- java.lang.Object
-
- com.oracle.bmc.mysql.model.BlueGreenDeployment.Builder
-
- Enclosing class:
- BlueGreenDeployment
public static class BlueGreenDeployment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlueGreenDeployment.BuilderactiveDbSystemId(String activeDbSystemId)The DB system OCID that currently owns the client-facing VIP and serves traffic.BlueGreenDeploymentbuild()BlueGreenDeployment.BuildercompartmentId(String compartmentId)The OCID of the compartment.BlueGreenDeployment.Buildercopy(BlueGreenDeployment model)BlueGreenDeployment.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.BlueGreenDeployment.BuilderdisplayName(String displayName)The display name of the blue/green deployment.BlueGreenDeployment.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.BlueGreenDeployment.Builderid(String id)The OCID of the blue/green deployment.BlueGreenDeployment.BuilderlifecycleDetails(String lifecycleDetails)Additional lifecycle details.BlueGreenDeployment.BuilderlifecycleState(BlueGreenDeployment.LifecycleState lifecycleState)The current lifecycle state.BlueGreenDeployment.BuilderreplicationChannelId(String replicationChannelId)Replication channel OCID.BlueGreenDeployment.BuildersourceDbSystemId(String sourceDbSystemId)Blue/original source DB system OCID for the deployment pair.BlueGreenDeployment.BuildersslMode(SslMode sslMode)SSL mode used for the replication channel created by the blue/green workflow.BlueGreenDeployment.BuilderswitchoverStatus(BlueGreenDeploymentSwitchoverStatus switchoverStatus)Stage of the most recent switchover workflow.BlueGreenDeployment.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.BlueGreenDeployment.BuildertargetDbSystemDetails(BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails)BlueGreenDeployment.BuildertargetDbSystemId(String targetDbSystemId)Green/target DB system OCID for the deployment pair.BlueGreenDeployment.BuildertimeCreated(Date timeCreated)The time the deployment was created.BlueGreenDeployment.BuildertimeUpdated(Date timeUpdated)The time the deployment was last updated.
-
-
-
Method Detail
-
targetDbSystemDetails
public BlueGreenDeployment.Builder targetDbSystemDetails(BlueGreenDeploymentTargetDbSystemDetails targetDbSystemDetails)
-
replicationChannelId
public BlueGreenDeployment.Builder replicationChannelId(String replicationChannelId)
Replication channel OCID.- Parameters:
replicationChannelId- the value to set- Returns:
- this builder
-
sslMode
public BlueGreenDeployment.Builder sslMode(SslMode sslMode)
SSL mode used for the replication channel created by the blue/green workflow.- Parameters:
sslMode- the value to set- Returns:
- this builder
-
id
public BlueGreenDeployment.Builder id(String id)
The OCID of the blue/green deployment.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public BlueGreenDeployment.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public BlueGreenDeployment.Builder displayName(String displayName)
The display name of the blue/green deployment.- Parameters:
displayName- the value to set- Returns:
- this builder
-
lifecycleState
public BlueGreenDeployment.Builder lifecycleState(BlueGreenDeployment.LifecycleState lifecycleState)
The current lifecycle state.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public BlueGreenDeployment.Builder lifecycleDetails(String lifecycleDetails)
Additional lifecycle details.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
sourceDbSystemId
public BlueGreenDeployment.Builder sourceDbSystemId(String sourceDbSystemId)
Blue/original source DB system OCID for the deployment pair.- Parameters:
sourceDbSystemId- the value to set- Returns:
- this builder
-
targetDbSystemId
public BlueGreenDeployment.Builder targetDbSystemId(String targetDbSystemId)
Green/target DB system OCID for the deployment pair.- Parameters:
targetDbSystemId- the value to set- Returns:
- this builder
-
activeDbSystemId
public BlueGreenDeployment.Builder activeDbSystemId(String activeDbSystemId)
The DB system OCID that currently owns the client-facing VIP and serves traffic.- Parameters:
activeDbSystemId- the value to set- Returns:
- this builder
-
switchoverStatus
public BlueGreenDeployment.Builder switchoverStatus(BlueGreenDeploymentSwitchoverStatus switchoverStatus)
Stage of the most recent switchover workflow.SWITCHOVER_FAILED indicates terminal switchover failure.
- Parameters:
switchoverStatus- the value to set- Returns:
- this builder
-
freeformTags
public BlueGreenDeployment.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public BlueGreenDeployment.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public BlueGreenDeployment.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
timeCreated
public BlueGreenDeployment.Builder timeCreated(Date timeCreated)
The time the deployment was created.- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public BlueGreenDeployment.Builder timeUpdated(Date timeUpdated)
The time the deployment was last updated.- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
build
public BlueGreenDeployment build()
-
copy
public BlueGreenDeployment.Builder copy(BlueGreenDeployment model)
-
-