Class CfnDBInstance.DBInstanceStatusInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBInstance.DBInstanceStatusInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBInstance.DBInstanceStatusInfoProperty>
- Enclosing interface:
CfnDBInstance.DBInstanceStatusInfoProperty
@Stability(Stable)
public static final class CfnDBInstance.DBInstanceStatusInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBInstance.DBInstanceStatusInfoProperty>
A builder for
CfnDBInstance.DBInstanceStatusInfoProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getMessage()
Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getNormal()
normal
(IResolvable normal) Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getNormal()
Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getStatus()
statusType
(String statusType) Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getStatusType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
message
@Stability(Stable) public CfnDBInstance.DBInstanceStatusInfoProperty.Builder message(String message) Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getMessage()
- Parameters:
message
- Details of the error if there is an error for the instance. If the instance isn't in an error state, this value is blank.- Returns:
this
-
normal
Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getNormal()
- Parameters:
normal
- Indicates whether the instance is operating normally (TRUE) or is in an error state (FALSE).- Returns:
this
-
normal
@Stability(Stable) public CfnDBInstance.DBInstanceStatusInfoProperty.Builder normal(IResolvable normal) Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getNormal()
- Parameters:
normal
- Indicates whether the instance is operating normally (TRUE) or is in an error state (FALSE).- Returns:
this
-
status
Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getStatus()
- Parameters:
status
- The status of the DB instance. For a StatusType of read replica, the values can be replicating, replication stop point set, replication stop point reached, error, stopped, or terminated.- Returns:
this
-
statusType
@Stability(Stable) public CfnDBInstance.DBInstanceStatusInfoProperty.Builder statusType(String statusType) Sets the value ofCfnDBInstance.DBInstanceStatusInfoProperty.getStatusType()
- Parameters:
statusType
- This value is currently "read replication.".- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBInstance.DBInstanceStatusInfoProperty>
- Returns:
- a new instance of
CfnDBInstance.DBInstanceStatusInfoProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-