Struct aws_sdk_timestreamwrite::operation::create_database::builders::CreateDatabaseInputBuilder
source · #[non_exhaustive]pub struct CreateDatabaseInputBuilder { /* private fields */ }
Expand description
A builder for CreateDatabaseInput
.
Implementations§
source§impl CreateDatabaseInputBuilder
impl CreateDatabaseInputBuilder
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The name of the Timestream database.
sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
The name of the Timestream database.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
The name of the Timestream database.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
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.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
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.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of key-value pairs to label the table.
A list of key-value pairs to label the table.
A list of key-value pairs to label the table.
sourcepub fn build(self) -> Result<CreateDatabaseInput, BuildError>
pub fn build(self) -> Result<CreateDatabaseInput, BuildError>
Consumes the builder and constructs a CreateDatabaseInput
.
source§impl CreateDatabaseInputBuilder
impl CreateDatabaseInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDatabaseOutput, SdkError<CreateDatabaseError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDatabaseOutput, SdkError<CreateDatabaseError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDatabaseInputBuilder
impl Clone for CreateDatabaseInputBuilder
source§fn clone(&self) -> CreateDatabaseInputBuilder
fn clone(&self) -> CreateDatabaseInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateDatabaseInputBuilder
impl Debug for CreateDatabaseInputBuilder
source§impl Default for CreateDatabaseInputBuilder
impl Default for CreateDatabaseInputBuilder
source§fn default() -> CreateDatabaseInputBuilder
fn default() -> CreateDatabaseInputBuilder
source§impl PartialEq<CreateDatabaseInputBuilder> for CreateDatabaseInputBuilder
impl PartialEq<CreateDatabaseInputBuilder> for CreateDatabaseInputBuilder
source§fn eq(&self, other: &CreateDatabaseInputBuilder) -> bool
fn eq(&self, other: &CreateDatabaseInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.