Struct aws_sdk_keyspaces::types::builders::KeyspaceSummaryBuilder
source · #[non_exhaustive]pub struct KeyspaceSummaryBuilder { /* private fields */ }
Expand description
A builder for KeyspaceSummary
.
Implementations§
source§impl KeyspaceSummaryBuilder
impl KeyspaceSummaryBuilder
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.
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.
sourcepub fn get_keyspace_name(&self) -> &Option<String>
pub fn get_keyspace_name(&self) -> &Option<String>
The name of the keyspace.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).
This field is required.sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The unique identifier of the keyspace in the format of an Amazon Resource Name (ARN).
sourcepub fn replication_strategy(self, input: Rs) -> Self
pub fn replication_strategy(self, input: Rs) -> Self
This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available values are SINGLE_REGION
or MULTI_REGION
.
sourcepub fn set_replication_strategy(self, input: Option<Rs>) -> Self
pub fn set_replication_strategy(self, input: Option<Rs>) -> Self
This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available values are SINGLE_REGION
or MULTI_REGION
.
sourcepub fn get_replication_strategy(&self) -> &Option<Rs>
pub fn get_replication_strategy(&self) -> &Option<Rs>
This property specifies if a keyspace is a single Region keyspace or a multi-Region keyspace. The available values are SINGLE_REGION
or MULTI_REGION
.
sourcepub fn replication_regions(self, input: impl Into<String>) -> Self
pub fn replication_regions(self, input: impl Into<String>) -> Self
Appends an item to replication_regions
.
To override the contents of this collection use set_replication_regions
.
If the replicationStrategy
of the keyspace is MULTI_REGION
, a list of replication Regions is returned.
sourcepub fn set_replication_regions(self, input: Option<Vec<String>>) -> Self
pub fn set_replication_regions(self, input: Option<Vec<String>>) -> Self
If the replicationStrategy
of the keyspace is MULTI_REGION
, a list of replication Regions is returned.
sourcepub fn get_replication_regions(&self) -> &Option<Vec<String>>
pub fn get_replication_regions(&self) -> &Option<Vec<String>>
If the replicationStrategy
of the keyspace is MULTI_REGION
, a list of replication Regions is returned.
sourcepub fn build(self) -> Result<KeyspaceSummary, BuildError>
pub fn build(self) -> Result<KeyspaceSummary, BuildError>
Consumes the builder and constructs a KeyspaceSummary
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KeyspaceSummaryBuilder
impl Clone for KeyspaceSummaryBuilder
source§fn clone(&self) -> KeyspaceSummaryBuilder
fn clone(&self) -> KeyspaceSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeyspaceSummaryBuilder
impl Debug for KeyspaceSummaryBuilder
source§impl Default for KeyspaceSummaryBuilder
impl Default for KeyspaceSummaryBuilder
source§fn default() -> KeyspaceSummaryBuilder
fn default() -> KeyspaceSummaryBuilder
source§impl PartialEq for KeyspaceSummaryBuilder
impl PartialEq for KeyspaceSummaryBuilder
impl StructuralPartialEq for KeyspaceSummaryBuilder
Auto Trait Implementations§
impl Freeze for KeyspaceSummaryBuilder
impl RefUnwindSafe for KeyspaceSummaryBuilder
impl Send for KeyspaceSummaryBuilder
impl Sync for KeyspaceSummaryBuilder
impl Unpin for KeyspaceSummaryBuilder
impl UnwindSafe for KeyspaceSummaryBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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