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