Interface UpdateDataSourceRequest.Builder
- All Superinterfaces:
AppSyncRequest.Builder
,AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateDataSourceRequest.Builder,
,UpdateDataSourceRequest> SdkBuilder<UpdateDataSourceRequest.Builder,
,UpdateDataSourceRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateDataSourceRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe API ID.description
(String description) The new description for the data source.default UpdateDataSourceRequest.Builder
dynamodbConfig
(Consumer<DynamodbDataSourceConfig.Builder> dynamodbConfig) The new Amazon DynamoDB configuration.dynamodbConfig
(DynamodbDataSourceConfig dynamodbConfig) The new Amazon DynamoDB configuration.default UpdateDataSourceRequest.Builder
elasticsearchConfig
(Consumer<ElasticsearchDataSourceConfig.Builder> elasticsearchConfig) The new OpenSearch configuration.elasticsearchConfig
(ElasticsearchDataSourceConfig elasticsearchConfig) The new OpenSearch configuration.default UpdateDataSourceRequest.Builder
eventBridgeConfig
(Consumer<EventBridgeDataSourceConfig.Builder> eventBridgeConfig) The new Amazon EventBridge settings.eventBridgeConfig
(EventBridgeDataSourceConfig eventBridgeConfig) The new Amazon EventBridge settings.default UpdateDataSourceRequest.Builder
httpConfig
(Consumer<HttpDataSourceConfig.Builder> httpConfig) The new HTTP endpoint configuration.httpConfig
(HttpDataSourceConfig httpConfig) The new HTTP endpoint configuration.default UpdateDataSourceRequest.Builder
lambdaConfig
(Consumer<LambdaDataSourceConfig.Builder> lambdaConfig) The new Lambda configuration.lambdaConfig
(LambdaDataSourceConfig lambdaConfig) The new Lambda configuration.metricsConfig
(String metricsConfig) Enables or disables enhanced data source metrics for specified data sources.metricsConfig
(DataSourceLevelMetricsConfig metricsConfig) Enables or disables enhanced data source metrics for specified data sources.The new name for the data source.default UpdateDataSourceRequest.Builder
openSearchServiceConfig
(Consumer<OpenSearchServiceDataSourceConfig.Builder> openSearchServiceConfig) The new OpenSearch configuration.openSearchServiceConfig
(OpenSearchServiceDataSourceConfig openSearchServiceConfig) The new OpenSearch configuration.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default UpdateDataSourceRequest.Builder
relationalDatabaseConfig
(Consumer<RelationalDatabaseDataSourceConfig.Builder> relationalDatabaseConfig) The new relational database configuration.relationalDatabaseConfig
(RelationalDatabaseDataSourceConfig relationalDatabaseConfig) The new relational database configuration.serviceRoleArn
(String serviceRoleArn) The new service role Amazon Resource Name (ARN) for the data source.The new data source type.type
(DataSourceType type) The new data source type.Methods inherited from interface software.amazon.awssdk.services.appsync.model.AppSyncRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
apiId
The API ID.
- Parameters:
apiId
- The API ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The new name for the data source.
- Parameters:
name
- The new name for the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The new description for the data source.
- Parameters:
description
- The new description for the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The new data source type.
- Parameters:
type
- The new data source type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The new data source type.
- Parameters:
type
- The new data source type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceRoleArn
The new service role Amazon Resource Name (ARN) for the data source.
- Parameters:
serviceRoleArn
- The new service role Amazon Resource Name (ARN) for the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dynamodbConfig
The new Amazon DynamoDB configuration.
- Parameters:
dynamodbConfig
- The new Amazon DynamoDB configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dynamodbConfig
default UpdateDataSourceRequest.Builder dynamodbConfig(Consumer<DynamodbDataSourceConfig.Builder> dynamodbConfig) The new Amazon DynamoDB configuration.
This is a convenience method that creates an instance of theDynamodbDataSourceConfig.Builder
avoiding the need to create one manually viaDynamodbDataSourceConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todynamodbConfig(DynamodbDataSourceConfig)
.- Parameters:
dynamodbConfig
- a consumer that will call methods onDynamodbDataSourceConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lambdaConfig
The new Lambda configuration.
- Parameters:
lambdaConfig
- The new Lambda configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaConfig
default UpdateDataSourceRequest.Builder lambdaConfig(Consumer<LambdaDataSourceConfig.Builder> lambdaConfig) The new Lambda configuration.
This is a convenience method that creates an instance of theLambdaDataSourceConfig.Builder
avoiding the need to create one manually viaLambdaDataSourceConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolambdaConfig(LambdaDataSourceConfig)
.- Parameters:
lambdaConfig
- a consumer that will call methods onLambdaDataSourceConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
elasticsearchConfig
UpdateDataSourceRequest.Builder elasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig) The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
- Parameters:
elasticsearchConfig
- The new OpenSearch configuration.As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticsearchConfig
default UpdateDataSourceRequest.Builder elasticsearchConfig(Consumer<ElasticsearchDataSourceConfig.Builder> elasticsearchConfig) The new OpenSearch configuration.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.
This is a convenience method that creates an instance of theElasticsearchDataSourceConfig.Builder
avoiding the need to create one manually viaElasticsearchDataSourceConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toelasticsearchConfig(ElasticsearchDataSourceConfig)
.- Parameters:
elasticsearchConfig
- a consumer that will call methods onElasticsearchDataSourceConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
openSearchServiceConfig
UpdateDataSourceRequest.Builder openSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig) The new OpenSearch configuration.
- Parameters:
openSearchServiceConfig
- The new OpenSearch configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
openSearchServiceConfig
default UpdateDataSourceRequest.Builder openSearchServiceConfig(Consumer<OpenSearchServiceDataSourceConfig.Builder> openSearchServiceConfig) The new OpenSearch configuration.
This is a convenience method that creates an instance of theOpenSearchServiceDataSourceConfig.Builder
avoiding the need to create one manually viaOpenSearchServiceDataSourceConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toopenSearchServiceConfig(OpenSearchServiceDataSourceConfig)
.- Parameters:
openSearchServiceConfig
- a consumer that will call methods onOpenSearchServiceDataSourceConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
httpConfig
The new HTTP endpoint configuration.
- Parameters:
httpConfig
- The new HTTP endpoint configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpConfig
default UpdateDataSourceRequest.Builder httpConfig(Consumer<HttpDataSourceConfig.Builder> httpConfig) The new HTTP endpoint configuration.
This is a convenience method that creates an instance of theHttpDataSourceConfig.Builder
avoiding the need to create one manually viaHttpDataSourceConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohttpConfig(HttpDataSourceConfig)
.- Parameters:
httpConfig
- a consumer that will call methods onHttpDataSourceConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
relationalDatabaseConfig
UpdateDataSourceRequest.Builder relationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig) The new relational database configuration.
- Parameters:
relationalDatabaseConfig
- The new relational database configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relationalDatabaseConfig
default UpdateDataSourceRequest.Builder relationalDatabaseConfig(Consumer<RelationalDatabaseDataSourceConfig.Builder> relationalDatabaseConfig) The new relational database configuration.
This is a convenience method that creates an instance of theRelationalDatabaseDataSourceConfig.Builder
avoiding the need to create one manually viaRelationalDatabaseDataSourceConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torelationalDatabaseConfig(RelationalDatabaseDataSourceConfig)
.- Parameters:
relationalDatabaseConfig
- a consumer that will call methods onRelationalDatabaseDataSourceConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventBridgeConfig
The new Amazon EventBridge settings.
- Parameters:
eventBridgeConfig
- The new Amazon EventBridge settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBridgeConfig
default UpdateDataSourceRequest.Builder eventBridgeConfig(Consumer<EventBridgeDataSourceConfig.Builder> eventBridgeConfig) The new Amazon EventBridge settings.
This is a convenience method that creates an instance of theEventBridgeDataSourceConfig.Builder
avoiding the need to create one manually viaEventBridgeDataSourceConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toeventBridgeConfig(EventBridgeDataSourceConfig)
.- Parameters:
eventBridgeConfig
- a consumer that will call methods onEventBridgeDataSourceConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricsConfig
Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfig
won't be used unless thedataSourceLevelMetricsBehavior
value is set toPER_DATA_SOURCE_METRICS
. If thedataSourceLevelMetricsBehavior
is set toFULL_REQUEST_DATA_SOURCE_METRICS
instead,metricsConfig
will be ignored. However, you can still set its value.metricsConfig
can beENABLED
orDISABLED
.- Parameters:
metricsConfig
- Enables or disables enhanced data source metrics for specified data sources. Note thatmetricsConfig
won't be used unless thedataSourceLevelMetricsBehavior
value is set toPER_DATA_SOURCE_METRICS
. If thedataSourceLevelMetricsBehavior
is set toFULL_REQUEST_DATA_SOURCE_METRICS
instead,metricsConfig
will be ignored. However, you can still set its value.metricsConfig
can beENABLED
orDISABLED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricsConfig
Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfig
won't be used unless thedataSourceLevelMetricsBehavior
value is set toPER_DATA_SOURCE_METRICS
. If thedataSourceLevelMetricsBehavior
is set toFULL_REQUEST_DATA_SOURCE_METRICS
instead,metricsConfig
will be ignored. However, you can still set its value.metricsConfig
can beENABLED
orDISABLED
.- Parameters:
metricsConfig
- Enables or disables enhanced data source metrics for specified data sources. Note thatmetricsConfig
won't be used unless thedataSourceLevelMetricsBehavior
value is set toPER_DATA_SOURCE_METRICS
. If thedataSourceLevelMetricsBehavior
is set toFULL_REQUEST_DATA_SOURCE_METRICS
instead,metricsConfig
will be ignored. However, you can still set its value.metricsConfig
can beENABLED
orDISABLED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateDataSourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateDataSourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-