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.
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 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
impl StructuralPartialEq for CreateDatabaseInputBuilder
Auto Trait Implementations§
impl Freeze for CreateDatabaseInputBuilder
impl RefUnwindSafe for CreateDatabaseInputBuilder
impl Send for CreateDatabaseInputBuilder
impl Sync for CreateDatabaseInputBuilder
impl Unpin for CreateDatabaseInputBuilder
impl UnwindSafe for CreateDatabaseInputBuilder
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