Struct aws_sdk_timestreamwrite::operation::update_database::builders::UpdateDatabaseInputBuilder
source · #[non_exhaustive]pub struct UpdateDatabaseInputBuilder { /* private fields */ }
Expand description
A builder for UpdateDatabaseInput
.
Implementations§
source§impl UpdateDatabaseInputBuilder
impl UpdateDatabaseInputBuilder
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The name of the 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 database.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
The name of the database.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The identifier of the new KMS key (KmsKeyId
) to be used to encrypt the data stored in the database. If the KmsKeyId
currently registered with the database is the same as the KmsKeyId
in the request, there will not be any update.
You can specify the KmsKeyId
using any of the following:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
-
Alias name:
alias/ExampleAlias
-
Alias ARN:
arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The identifier of the new KMS key (KmsKeyId
) to be used to encrypt the data stored in the database. If the KmsKeyId
currently registered with the database is the same as the KmsKeyId
in the request, there will not be any update.
You can specify the KmsKeyId
using any of the following:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
-
Alias name:
alias/ExampleAlias
-
Alias ARN:
arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The identifier of the new KMS key (KmsKeyId
) to be used to encrypt the data stored in the database. If the KmsKeyId
currently registered with the database is the same as the KmsKeyId
in the request, there will not be any update.
You can specify the KmsKeyId
using any of the following:
-
Key ID:
1234abcd-12ab-34cd-56ef-1234567890ab
-
Key ARN:
arn:aws:kms:us-east-1:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
-
Alias name:
alias/ExampleAlias
-
Alias ARN:
arn:aws:kms:us-east-1:111122223333:alias/ExampleAlias
sourcepub fn build(self) -> Result<UpdateDatabaseInput, BuildError>
pub fn build(self) -> Result<UpdateDatabaseInput, BuildError>
Consumes the builder and constructs a UpdateDatabaseInput
.
source§impl UpdateDatabaseInputBuilder
impl UpdateDatabaseInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateDatabaseOutput, SdkError<UpdateDatabaseError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateDatabaseOutput, SdkError<UpdateDatabaseError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateDatabaseInputBuilder
impl Clone for UpdateDatabaseInputBuilder
source§fn clone(&self) -> UpdateDatabaseInputBuilder
fn clone(&self) -> UpdateDatabaseInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateDatabaseInputBuilder
impl Debug for UpdateDatabaseInputBuilder
source§impl Default for UpdateDatabaseInputBuilder
impl Default for UpdateDatabaseInputBuilder
source§fn default() -> UpdateDatabaseInputBuilder
fn default() -> UpdateDatabaseInputBuilder
source§impl PartialEq<UpdateDatabaseInputBuilder> for UpdateDatabaseInputBuilder
impl PartialEq<UpdateDatabaseInputBuilder> for UpdateDatabaseInputBuilder
source§fn eq(&self, other: &UpdateDatabaseInputBuilder) -> bool
fn eq(&self, other: &UpdateDatabaseInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.