Class CfnDataSourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.opensearch.CfnDataSourceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSourceProps>
- Enclosing interface:
CfnDataSourceProps
@Stability(Stable)
public static final class CfnDataSourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourceProps>
A builder for
CfnDataSourceProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataSourceType(IResolvable dataSourceType) Sets the value ofCfnDataSourceProps.getDataSourceType()dataSourceType(CfnDataSource.DataSourceTypeProperty dataSourceType) Sets the value ofCfnDataSourceProps.getDataSourceType()description(String description) Sets the value ofCfnDataSourceProps.getDescription()domainName(String domainName) Sets the value ofCfnDataSourceProps.getDomainName()Sets the value ofCfnDataSourceProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSourceType
Sets the value ofCfnDataSourceProps.getDataSourceType()- Parameters:
dataSourceType- The type of data source. This parameter is required.- Returns:
this
-
dataSourceType
@Stability(Stable) public CfnDataSourceProps.Builder dataSourceType(CfnDataSource.DataSourceTypeProperty dataSourceType) Sets the value ofCfnDataSourceProps.getDataSourceType()- Parameters:
dataSourceType- The type of data source. This parameter is required.- Returns:
this
-
domainName
Sets the value ofCfnDataSourceProps.getDomainName()- Parameters:
domainName- The name of the OpenSearch Service domain. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnDataSourceProps.getName()- Parameters:
name- The name of the data source. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnDataSourceProps.getDescription()- Parameters:
description- A description of the data source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSourceProps>- Returns:
- a new instance of
CfnDataSourceProps - Throws:
NullPointerException- if any required attribute was not provided
-