Class DataSourceReference.Builder
java.lang.Object
software.amazon.awscdk.services.qbusiness.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 TypeMethodDescriptionapplicationId
(String applicationId) Sets the value ofDataSourceReference.getApplicationId()
build()
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
-
applicationId
Sets the value ofDataSourceReference.getApplicationId()
- Parameters:
applicationId
- The ApplicationId of the DataSource resource. This parameter is required.- Returns:
this
-
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 DataSourceId 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:
build
in interfacesoftware.amazon.jsii.Builder<DataSourceReference>
- Returns:
- a new instance of
DataSourceReference
- Throws:
NullPointerException
- if any required attribute was not provided
-