Class DataSourceReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.kendra.DataSourceReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataSourceReference>
- Enclosing interface:
DataSourceReference
@Stability(Stable)
public static final class DataSourceReference.Builder
extends Object
implements software.amazon.jsii.Builder<DataSourceReference>
A builder for
DataSourceReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataSourceArn(String dataSourceArn) Sets the value ofDataSourceReference.getDataSourceArn()dataSourceId(String dataSourceId) Sets the value ofDataSourceReference.getDataSourceId()Sets the value ofDataSourceReference.getIndexId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataSourceArn
Sets the value ofDataSourceReference.getDataSourceArn()- Parameters:
dataSourceArn- The ARN of the DataSource resource. This parameter is required.- Returns:
this
-
dataSourceId
Sets the value ofDataSourceReference.getDataSourceId()- Parameters:
dataSourceId- The Id of the DataSource resource. This parameter is required.- Returns:
this
-
indexId
Sets the value ofDataSourceReference.getIndexId()- Parameters:
indexId- The IndexId of the DataSource resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataSourceReference>- Returns:
- a new instance of
DataSourceReference - Throws:
NullPointerException- if any required attribute was not provided
-