Class CfnAppPropsMixin.DataSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.opsworks.CfnAppPropsMixin.DataSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppPropsMixin.DataSourceProperty>
- Enclosing interface:
CfnAppPropsMixin.DataSourceProperty
@Stability(Stable)
public static final class CfnAppPropsMixin.DataSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAppPropsMixin.DataSourceProperty>
A builder for
CfnAppPropsMixin.DataSourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnAppPropsMixin.DataSourceProperty.getArn()build()Builds the configured instance.databaseName(String databaseName) Sets the value ofCfnAppPropsMixin.DataSourceProperty.getDatabaseName()Sets the value ofCfnAppPropsMixin.DataSourceProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
arn
Sets the value ofCfnAppPropsMixin.DataSourceProperty.getArn()- Parameters:
arn- The data source's ARN.- Returns:
this
-
databaseName
@Stability(Stable) public CfnAppPropsMixin.DataSourceProperty.Builder databaseName(String databaseName) Sets the value ofCfnAppPropsMixin.DataSourceProperty.getDatabaseName()- Parameters:
databaseName- The database name.- Returns:
this
-
type
Sets the value ofCfnAppPropsMixin.DataSourceProperty.getType()- Parameters:
type- The data source's type,AutoSelectOpsworksMysqlInstance,OpsworksMysqlInstance,RdsDbInstance, orNone.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAppPropsMixin.DataSourceProperty>- Returns:
- a new instance of
CfnAppPropsMixin.DataSourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-