Class CfnApplication.DataSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CfnApplication.DataSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.DataSourceProperty>
- Enclosing interface:
CfnApplication.DataSourceProperty
@Stability(Stable)
public static final class CfnApplication.DataSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.DataSourceProperty>
A builder for
CfnApplication.DataSourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.dataSourceArn
(String dataSourceArn) Sets the value ofCfnApplication.DataSourceProperty.getDataSourceArn()
dataSourceDescription
(String dataSourceDescription) Sets the value ofCfnApplication.DataSourceProperty.getDataSourceDescription()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSourceArn
@Stability(Stable) public CfnApplication.DataSourceProperty.Builder dataSourceArn(String dataSourceArn) Sets the value ofCfnApplication.DataSourceProperty.getDataSourceArn()
- Parameters:
dataSourceArn
- Amazon Resource Name (ARN) format. This parameter is required.- Returns:
this
-
dataSourceDescription
@Stability(Stable) public CfnApplication.DataSourceProperty.Builder dataSourceDescription(String dataSourceDescription) Sets the value ofCfnApplication.DataSourceProperty.getDataSourceDescription()
- Parameters:
dataSourceDescription
- Detailed description of a data source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.DataSourceProperty>
- Returns:
- a new instance of
CfnApplication.DataSourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-