Interface AddDataSourceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<AddDataSourceRequest.Builder,,AddDataSourceRequest> OpenSearchRequest.Builder,SdkBuilder<AddDataSourceRequest.Builder,,AddDataSourceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AddDataSourceRequest
public static interface AddDataSourceRequest.Builder
extends OpenSearchRequest.Builder, SdkPojo, CopyableBuilder<AddDataSourceRequest.Builder,AddDataSourceRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AddDataSourceRequest.BuilderdataSourceType(Consumer<DataSourceType.Builder> dataSourceType) The type of data source.dataSourceType(DataSourceType dataSourceType) The type of data source.description(String description) A description of the data source.domainName(String domainName) The name of the domain to add the data source to.A name for the data source.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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, sdkFields
-
Method Details
-
domainName
The name of the domain to add the data source to.
- Parameters:
domainName- The name of the domain to add the data source to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A name for the data source.
- Parameters:
name- A name for the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceType
The type of data source.
- Parameters:
dataSourceType- The type of data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataSourceType
default AddDataSourceRequest.Builder dataSourceType(Consumer<DataSourceType.Builder> dataSourceType) The type of data source.
This is a convenience method that creates an instance of theDataSourceType.Builderavoiding the need to create one manually viaDataSourceType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataSourceType(DataSourceType).- Parameters:
dataSourceType- a consumer that will call methods onDataSourceType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A description of the data source.
- Parameters:
description- A description of the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AddDataSourceRequest.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
AddDataSourceRequest.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.
-