#[non_exhaustive]pub struct DataReplicationMetadataOutputBuilder { /* private fields */ }
Expand description
A builder for DataReplicationMetadataOutput
.
Implementations§
source§impl DataReplicationMetadataOutputBuilder
impl DataReplicationMetadataOutputBuilder
sourcepub fn data_replication_counterpart(
self,
input: DataReplicationCounterpart
) -> Self
pub fn data_replication_counterpart( self, input: DataReplicationCounterpart ) -> Self
Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.
sourcepub fn set_data_replication_counterpart(
self,
input: Option<DataReplicationCounterpart>
) -> Self
pub fn set_data_replication_counterpart( self, input: Option<DataReplicationCounterpart> ) -> Self
Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.
sourcepub fn get_data_replication_counterpart(
&self
) -> &Option<DataReplicationCounterpart>
pub fn get_data_replication_counterpart( &self ) -> &Option<DataReplicationCounterpart>
Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.
sourcepub fn data_replication_role(self, input: impl Into<String>) -> Self
pub fn data_replication_role(self, input: impl Into<String>) -> Self
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
This field is required.sourcepub fn set_data_replication_role(self, input: Option<String>) -> Self
pub fn set_data_replication_role(self, input: Option<String>) -> Self
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
sourcepub fn get_data_replication_role(&self) -> &Option<String>
pub fn get_data_replication_role(&self) -> &Option<String>
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
sourcepub fn build(self) -> DataReplicationMetadataOutput
pub fn build(self) -> DataReplicationMetadataOutput
Consumes the builder and constructs a DataReplicationMetadataOutput
.
Trait Implementations§
source§impl Clone for DataReplicationMetadataOutputBuilder
impl Clone for DataReplicationMetadataOutputBuilder
source§fn clone(&self) -> DataReplicationMetadataOutputBuilder
fn clone(&self) -> DataReplicationMetadataOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DataReplicationMetadataOutputBuilder
impl Default for DataReplicationMetadataOutputBuilder
source§fn default() -> DataReplicationMetadataOutputBuilder
fn default() -> DataReplicationMetadataOutputBuilder
source§impl PartialEq for DataReplicationMetadataOutputBuilder
impl PartialEq for DataReplicationMetadataOutputBuilder
source§fn eq(&self, other: &DataReplicationMetadataOutputBuilder) -> bool
fn eq(&self, other: &DataReplicationMetadataOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataReplicationMetadataOutputBuilder
Auto Trait Implementations§
impl Freeze for DataReplicationMetadataOutputBuilder
impl RefUnwindSafe for DataReplicationMetadataOutputBuilder
impl Send for DataReplicationMetadataOutputBuilder
impl Sync for DataReplicationMetadataOutputBuilder
impl Unpin for DataReplicationMetadataOutputBuilder
impl UnwindSafe for DataReplicationMetadataOutputBuilder
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