#[non_exhaustive]pub struct CreateKeyspaceInputBuilder { /* private fields */ }
Expand description
A builder for CreateKeyspaceInput
.
Implementations§
source§impl CreateKeyspaceInputBuilder
impl CreateKeyspaceInputBuilder
sourcepub fn keyspace_name(self, input: impl Into<String>) -> Self
pub fn keyspace_name(self, input: impl Into<String>) -> Self
The name of the keyspace to be created.
This field is required.sourcepub fn set_keyspace_name(self, input: Option<String>) -> Self
pub fn set_keyspace_name(self, input: Option<String>) -> Self
The name of the keyspace to be created.
sourcepub fn get_keyspace_name(&self) -> &Option<String>
pub fn get_keyspace_name(&self) -> &Option<String>
The name of the keyspace to be created.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A list of key-value pair tags to be attached to the keyspace.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
A list of key-value pair tags to be attached to the keyspace.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
A list of key-value pair tags to be attached to the keyspace.
For more information, see Adding tags and labels to Amazon Keyspaces resources in the Amazon Keyspaces Developer Guide.
sourcepub fn replication_specification(self, input: ReplicationSpecification) -> Self
pub fn replication_specification(self, input: ReplicationSpecification) -> Self
The replication specification of the keyspace includes:
-
replicationStrategy
- the required value isSINGLE_REGION
orMULTI_REGION
. -
regionList
- if thereplicationStrategy
isMULTI_REGION
, theregionList
requires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in. The maximum number of supported replication Regions including the current Region is six.
sourcepub fn set_replication_specification(
self,
input: Option<ReplicationSpecification>
) -> Self
pub fn set_replication_specification( self, input: Option<ReplicationSpecification> ) -> Self
The replication specification of the keyspace includes:
-
replicationStrategy
- the required value isSINGLE_REGION
orMULTI_REGION
. -
regionList
- if thereplicationStrategy
isMULTI_REGION
, theregionList
requires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in. The maximum number of supported replication Regions including the current Region is six.
sourcepub fn get_replication_specification(&self) -> &Option<ReplicationSpecification>
pub fn get_replication_specification(&self) -> &Option<ReplicationSpecification>
The replication specification of the keyspace includes:
-
replicationStrategy
- the required value isSINGLE_REGION
orMULTI_REGION
. -
regionList
- if thereplicationStrategy
isMULTI_REGION
, theregionList
requires the current Region and at least one additional Amazon Web Services Region where the keyspace is going to be replicated in. The maximum number of supported replication Regions including the current Region is six.
sourcepub fn build(self) -> Result<CreateKeyspaceInput, BuildError>
pub fn build(self) -> Result<CreateKeyspaceInput, BuildError>
Consumes the builder and constructs a CreateKeyspaceInput
.
source§impl CreateKeyspaceInputBuilder
impl CreateKeyspaceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateKeyspaceOutput, SdkError<CreateKeyspaceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateKeyspaceOutput, SdkError<CreateKeyspaceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateKeyspaceInputBuilder
impl Clone for CreateKeyspaceInputBuilder
source§fn clone(&self) -> CreateKeyspaceInputBuilder
fn clone(&self) -> CreateKeyspaceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateKeyspaceInputBuilder
impl Debug for CreateKeyspaceInputBuilder
source§impl Default for CreateKeyspaceInputBuilder
impl Default for CreateKeyspaceInputBuilder
source§fn default() -> CreateKeyspaceInputBuilder
fn default() -> CreateKeyspaceInputBuilder
source§impl PartialEq for CreateKeyspaceInputBuilder
impl PartialEq for CreateKeyspaceInputBuilder
source§fn eq(&self, other: &CreateKeyspaceInputBuilder) -> bool
fn eq(&self, other: &CreateKeyspaceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateKeyspaceInputBuilder
Auto Trait Implementations§
impl Freeze for CreateKeyspaceInputBuilder
impl RefUnwindSafe for CreateKeyspaceInputBuilder
impl Send for CreateKeyspaceInputBuilder
impl Sync for CreateKeyspaceInputBuilder
impl Unpin for CreateKeyspaceInputBuilder
impl UnwindSafe for CreateKeyspaceInputBuilder
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> 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