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.
This field is required.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
impl StructuralPartialEq for UpdateDatabaseInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateDatabaseInputBuilder
impl RefUnwindSafe for UpdateDatabaseInputBuilder
impl Send for UpdateDatabaseInputBuilder
impl Sync for UpdateDatabaseInputBuilder
impl Unpin for UpdateDatabaseInputBuilder
impl UnwindSafe for UpdateDatabaseInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more