Interface CreateDatabaseRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateDatabaseRequest.Builder,
,CreateDatabaseRequest> SdkBuilder<CreateDatabaseRequest.Builder,
,CreateDatabaseRequest> SdkPojo
,SdkRequest.Builder
,TimestreamWriteRequest.Builder
- Enclosing class:
CreateDatabaseRequest
public static interface CreateDatabaseRequest.Builder
extends TimestreamWriteRequest.Builder, SdkPojo, CopyableBuilder<CreateDatabaseRequest.Builder,CreateDatabaseRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondatabaseName
(String databaseName) The name of the Timestream database.The KMS key for the database.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) A list of key-value pairs to label the table.tags
(Consumer<Tag.Builder>... tags) A list of key-value pairs to label the table.A list of key-value pairs to label the table.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
Methods inherited from interface software.amazon.awssdk.services.timestreamwrite.model.TimestreamWriteRequest.Builder
build
-
Method Details
-
databaseName
The name of the Timestream database.
- Parameters:
databaseName
- The name of the Timestream database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kmsKeyId
The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. For more information, see Amazon Web Services managed keys.
- Parameters:
kmsKeyId
- The KMS key for the database. If the KMS key is not specified, the database will be encrypted with a Timestream managed KMS key located in your account. For more information, see Amazon Web Services managed keys.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to label the table.
- Parameters:
tags
- A list of key-value pairs to label the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to label the table.
- Parameters:
tags
- A list of key-value pairs to label the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to label the table.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateDatabaseRequest.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
CreateDatabaseRequest.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.
-