#[non_exhaustive]pub struct ReplicationSpecificationBuilder { /* private fields */ }
Expand description
A builder for ReplicationSpecification
.
Implementations§
source§impl ReplicationSpecificationBuilder
impl ReplicationSpecificationBuilder
sourcepub fn replication_strategy(self, input: Rs) -> Self
pub fn replication_strategy(self, input: Rs) -> Self
The replicationStrategy
of a keyspace, the required value is 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
The replicationStrategy
of a keyspace, the required value is SINGLE_REGION
or MULTI_REGION
.
sourcepub fn get_replication_strategy(&self) -> &Option<Rs>
pub fn get_replication_strategy(&self) -> &Option<Rs>
The replicationStrategy
of a keyspace, the required value is SINGLE_REGION
or MULTI_REGION
.
sourcepub fn region_list(self, input: impl Into<String>) -> Self
pub fn region_list(self, input: impl Into<String>) -> Self
Appends an item to region_list
.
To override the contents of this collection use set_region_list
.
The regionList
can contain up to six Amazon Web Services Regions where the keyspace is replicated in.
sourcepub fn set_region_list(self, input: Option<Vec<String>>) -> Self
pub fn set_region_list(self, input: Option<Vec<String>>) -> Self
The regionList
can contain up to six Amazon Web Services Regions where the keyspace is replicated in.
sourcepub fn get_region_list(&self) -> &Option<Vec<String>>
pub fn get_region_list(&self) -> &Option<Vec<String>>
The regionList
can contain up to six Amazon Web Services Regions where the keyspace is replicated in.
sourcepub fn build(self) -> Result<ReplicationSpecification, BuildError>
pub fn build(self) -> Result<ReplicationSpecification, BuildError>
Consumes the builder and constructs a ReplicationSpecification
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ReplicationSpecificationBuilder
impl Clone for ReplicationSpecificationBuilder
source§fn clone(&self) -> ReplicationSpecificationBuilder
fn clone(&self) -> ReplicationSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ReplicationSpecificationBuilder
impl Default for ReplicationSpecificationBuilder
source§fn default() -> ReplicationSpecificationBuilder
fn default() -> ReplicationSpecificationBuilder
source§impl PartialEq for ReplicationSpecificationBuilder
impl PartialEq for ReplicationSpecificationBuilder
source§fn eq(&self, other: &ReplicationSpecificationBuilder) -> bool
fn eq(&self, other: &ReplicationSpecificationBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReplicationSpecificationBuilder
Auto Trait Implementations§
impl Freeze for ReplicationSpecificationBuilder
impl RefUnwindSafe for ReplicationSpecificationBuilder
impl Send for ReplicationSpecificationBuilder
impl Sync for ReplicationSpecificationBuilder
impl Unpin for ReplicationSpecificationBuilder
impl UnwindSafe for ReplicationSpecificationBuilder
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