Interface AttachDataSourceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AttachDataSourceRequest.Builder,,AttachDataSourceRequest> OpenSearchRequest.Builder,SdkBuilder<AttachDataSourceRequest.Builder,,AttachDataSourceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AttachDataSourceRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive identifier to ensure idempotency of the request.dataSourceArn(String dataSourceArn) Sets the value of the DataSourceArn property for this object.The unique identifier or name of the OpenSearch application to attach the data source to.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default AttachDataSourceRequest.BuilderworkspaceConfiguration(Consumer<WorkspaceConfigurationInput.Builder> workspaceConfiguration) Configuration for creating a new workspace during the attachment.workspaceConfiguration(WorkspaceConfigurationInput workspaceConfiguration) Configuration for creating a new workspace during the attachment.workspaceId(String workspaceId) The identifier of an existing workspace to update with the new data source.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opensearch.model.OpenSearchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The unique identifier or name of the OpenSearch application to attach the data source to. This is the same identifier used with
UpdateApplication,GetApplication, andDeleteApplication.- Parameters:
id- The unique identifier or name of the OpenSearch application to attach the data source to. This is the same identifier used withUpdateApplication,GetApplication, andDeleteApplication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceArn
Sets the value of the DataSourceArn property for this object.- Parameters:
dataSourceArn- The new value for the DataSourceArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceId
The identifier of an existing workspace to update with the new data source. Mutually exclusive with
workspaceConfiguration.- Parameters:
workspaceId- The identifier of an existing workspace to update with the new data source. Mutually exclusive withworkspaceConfiguration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceConfiguration
AttachDataSourceRequest.Builder workspaceConfiguration(WorkspaceConfigurationInput workspaceConfiguration) Configuration for creating a new workspace during the attachment. If specified, a workspace is created and linked to the data source after the attachment completes. Mutually exclusive with
workspaceId.- Parameters:
workspaceConfiguration- Configuration for creating a new workspace during the attachment. If specified, a workspace is created and linked to the data source after the attachment completes. Mutually exclusive withworkspaceId.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workspaceConfiguration
default AttachDataSourceRequest.Builder workspaceConfiguration(Consumer<WorkspaceConfigurationInput.Builder> workspaceConfiguration) Configuration for creating a new workspace during the attachment. If specified, a workspace is created and linked to the data source after the attachment completes. Mutually exclusive with
This is a convenience method that creates an instance of theworkspaceId.WorkspaceConfigurationInput.Builderavoiding the need to create one manually viaWorkspaceConfigurationInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toworkspaceConfiguration(WorkspaceConfigurationInput).- Parameters:
workspaceConfiguration- a consumer that will call methods onWorkspaceConfigurationInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier to ensure idempotency of the request. If you retry a request with the same client token and the same parameters, the retry succeeds without performing any further actions.
- Parameters:
clientToken- A unique, case-sensitive identifier to ensure idempotency of the request. If you retry a request with the same client token and the same parameters, the retry succeeds without performing any further actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AttachDataSourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AttachDataSourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-