Interface CreateDataSourceRequest.Builder
-
- All Superinterfaces:
AppSyncRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>,SdkBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateDataSourceRequest
public static interface CreateDataSourceRequest.Builder extends AppSyncRequest.Builder, SdkPojo, CopyableBuilder<CreateDataSourceRequest.Builder,CreateDataSourceRequest>
-
-
Method Summary
-
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 Detail
-
apiId
CreateDataSourceRequest.Builder apiId(String apiId)
The API ID for the GraphQL API for the
DataSource.- Parameters:
apiId- The API ID for the GraphQL API for theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateDataSourceRequest.Builder name(String name)
A user-supplied name for the
DataSource.- Parameters:
name- A user-supplied name for theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateDataSourceRequest.Builder description(String description)
A description of the
DataSource.- Parameters:
description- A description of theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
CreateDataSourceRequest.Builder type(String type)
The type of the
DataSource.- Parameters:
type- The type of theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DataSourceType,DataSourceType
-
type
CreateDataSourceRequest.Builder type(DataSourceType type)
The type of the
DataSource.- Parameters:
type- The type of theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DataSourceType,DataSourceType
-
serviceRoleArn
CreateDataSourceRequest.Builder serviceRoleArn(String serviceRoleArn)
The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
- Parameters:
serviceRoleArn- The Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dynamodbConfig
CreateDataSourceRequest.Builder dynamodbConfig(DynamodbDataSourceConfig dynamodbConfig)
Amazon DynamoDB settings.
- Parameters:
dynamodbConfig- Amazon DynamoDB settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dynamodbConfig
default CreateDataSourceRequest.Builder dynamodbConfig(Consumer<DynamodbDataSourceConfig.Builder> dynamodbConfig)
Amazon DynamoDB settings.
This is a convenience method that creates an instance of theDynamodbDataSourceConfig.Builderavoiding the need to create one manually viaDynamodbDataSourceConfig.builder().When the
Consumercompletes,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:
dynamodbConfig(DynamodbDataSourceConfig)
-
lambdaConfig
CreateDataSourceRequest.Builder lambdaConfig(LambdaDataSourceConfig lambdaConfig)
Lambda settings.
- Parameters:
lambdaConfig- Lambda settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lambdaConfig
default CreateDataSourceRequest.Builder lambdaConfig(Consumer<LambdaDataSourceConfig.Builder> lambdaConfig)
Lambda settings.
This is a convenience method that creates an instance of theLambdaDataSourceConfig.Builderavoiding the need to create one manually viaLambdaDataSourceConfig.builder().When the
Consumercompletes,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:
lambdaConfig(LambdaDataSourceConfig)
-
elasticsearchConfig
CreateDataSourceRequest.Builder elasticsearchConfig(ElasticsearchDataSourceConfig elasticsearchConfig)
Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
- Parameters:
elasticsearchConfig- Amazon OpenSearch Service settings.As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticsearchConfig
default CreateDataSourceRequest.Builder elasticsearchConfig(Consumer<ElasticsearchDataSourceConfig.Builder> elasticsearchConfig)
Amazon OpenSearch Service settings.
As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.
This is a convenience method that creates an instance of theElasticsearchDataSourceConfig.Builderavoiding the need to create one manually viaElasticsearchDataSourceConfig.builder().When the
Consumercompletes,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:
elasticsearchConfig(ElasticsearchDataSourceConfig)
-
openSearchServiceConfig
CreateDataSourceRequest.Builder openSearchServiceConfig(OpenSearchServiceDataSourceConfig openSearchServiceConfig)
Amazon OpenSearch Service settings.
- Parameters:
openSearchServiceConfig- Amazon OpenSearch Service settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
openSearchServiceConfig
default CreateDataSourceRequest.Builder openSearchServiceConfig(Consumer<OpenSearchServiceDataSourceConfig.Builder> openSearchServiceConfig)
Amazon OpenSearch Service settings.
This is a convenience method that creates an instance of theOpenSearchServiceDataSourceConfig.Builderavoiding the need to create one manually viaOpenSearchServiceDataSourceConfig.builder().When the
Consumercompletes,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:
openSearchServiceConfig(OpenSearchServiceDataSourceConfig)
-
httpConfig
CreateDataSourceRequest.Builder httpConfig(HttpDataSourceConfig httpConfig)
HTTP endpoint settings.
- Parameters:
httpConfig- HTTP endpoint settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpConfig
default CreateDataSourceRequest.Builder httpConfig(Consumer<HttpDataSourceConfig.Builder> httpConfig)
HTTP endpoint settings.
This is a convenience method that creates an instance of theHttpDataSourceConfig.Builderavoiding the need to create one manually viaHttpDataSourceConfig.builder().When the
Consumercompletes,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:
httpConfig(HttpDataSourceConfig)
-
relationalDatabaseConfig
CreateDataSourceRequest.Builder relationalDatabaseConfig(RelationalDatabaseDataSourceConfig relationalDatabaseConfig)
Relational database settings.
- Parameters:
relationalDatabaseConfig- Relational database settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relationalDatabaseConfig
default CreateDataSourceRequest.Builder relationalDatabaseConfig(Consumer<RelationalDatabaseDataSourceConfig.Builder> relationalDatabaseConfig)
Relational database settings.
This is a convenience method that creates an instance of theRelationalDatabaseDataSourceConfig.Builderavoiding the need to create one manually viaRelationalDatabaseDataSourceConfig.builder().When the
Consumercompletes,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:
relationalDatabaseConfig(RelationalDatabaseDataSourceConfig)
-
eventBridgeConfig
CreateDataSourceRequest.Builder eventBridgeConfig(EventBridgeDataSourceConfig eventBridgeConfig)
Amazon EventBridge settings.
- Parameters:
eventBridgeConfig- Amazon EventBridge settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventBridgeConfig
default CreateDataSourceRequest.Builder eventBridgeConfig(Consumer<EventBridgeDataSourceConfig.Builder> eventBridgeConfig)
Amazon EventBridge settings.
This is a convenience method that creates an instance of theEventBridgeDataSourceConfig.Builderavoiding the need to create one manually viaEventBridgeDataSourceConfig.builder().When the
Consumercompletes,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:
eventBridgeConfig(EventBridgeDataSourceConfig)
-
metricsConfig
CreateDataSourceRequest.Builder metricsConfig(String metricsConfig)
Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfigwon't be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.- Parameters:
metricsConfig- Enables or disables enhanced data source metrics for specified data sources. Note thatmetricsConfigwon't be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DataSourceLevelMetricsConfig,DataSourceLevelMetricsConfig
-
metricsConfig
CreateDataSourceRequest.Builder metricsConfig(DataSourceLevelMetricsConfig metricsConfig)
Enables or disables enhanced data source metrics for specified data sources. Note that
metricsConfigwon't be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.- Parameters:
metricsConfig- Enables or disables enhanced data source metrics for specified data sources. Note thatmetricsConfigwon't be used unless thedataSourceLevelMetricsBehaviorvalue is set toPER_DATA_SOURCE_METRICS. If thedataSourceLevelMetricsBehavioris set toFULL_REQUEST_DATA_SOURCE_METRICSinstead,metricsConfigwill be ignored. However, you can still set its value.metricsConfigcan beENABLEDorDISABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DataSourceLevelMetricsConfig,DataSourceLevelMetricsConfig
-
overrideConfiguration
CreateDataSourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateDataSourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-