Class CfnSqlHaStandbyDetectedInstanceProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSqlHaStandbyDetectedInstanceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSqlHaStandbyDetectedInstanceProps>
- Enclosing interface:
CfnSqlHaStandbyDetectedInstanceProps
@Stability(Stable)
public static final class CfnSqlHaStandbyDetectedInstanceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSqlHaStandbyDetectedInstanceProps>
A builder for
CfnSqlHaStandbyDetectedInstanceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.instanceId(String instanceId) Sets the value ofCfnSqlHaStandbyDetectedInstanceProps.getInstanceId()sqlServerCredentials(String sqlServerCredentials) Sets the value ofCfnSqlHaStandbyDetectedInstanceProps.getSqlServerCredentials()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceId
@Stability(Stable) public CfnSqlHaStandbyDetectedInstanceProps.Builder instanceId(String instanceId) Sets the value ofCfnSqlHaStandbyDetectedInstanceProps.getInstanceId()- Parameters:
instanceId- The ID of the EC2 instance to enable for SQL Server high availability standby detection. This parameter is required.- Returns:
this
-
sqlServerCredentials
@Stability(Stable) public CfnSqlHaStandbyDetectedInstanceProps.Builder sqlServerCredentials(String sqlServerCredentials) Sets the value ofCfnSqlHaStandbyDetectedInstanceProps.getSqlServerCredentials()- Parameters:
sqlServerCredentials- The ARN of the AWS Secrets Manager secret containing SQL Server access credentials to the EC2 instance. If not specified, AWS Systems Manager agent will use default local user credentials.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSqlHaStandbyDetectedInstanceProps>- Returns:
- a new instance of
CfnSqlHaStandbyDetectedInstanceProps - Throws:
NullPointerException- if any required attribute was not provided
-