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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-