Struct aws_sdk_mq::types::DataReplicationMetadataOutput
source · #[non_exhaustive]pub struct DataReplicationMetadataOutput {
pub data_replication_counterpart: Option<DataReplicationCounterpart>,
pub data_replication_role: Option<String>,
}
Expand description
The replication details of the data replication-enabled broker. Only returned if dataReplicationMode or pendingDataReplicationMode is set to CRDR.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.data_replication_counterpart: 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.
data_replication_role: 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.
Implementations§
source§impl DataReplicationMetadataOutput
impl DataReplicationMetadataOutput
sourcepub fn data_replication_counterpart(
&self
) -> Option<&DataReplicationCounterpart>
pub fn 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) -> Option<&str>
pub fn data_replication_role(&self) -> Option<&str>
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
source§impl DataReplicationMetadataOutput
impl DataReplicationMetadataOutput
sourcepub fn builder() -> DataReplicationMetadataOutputBuilder
pub fn builder() -> DataReplicationMetadataOutputBuilder
Creates a new builder-style object to manufacture DataReplicationMetadataOutput
.
Trait Implementations§
source§impl Clone for DataReplicationMetadataOutput
impl Clone for DataReplicationMetadataOutput
source§fn clone(&self) -> DataReplicationMetadataOutput
fn clone(&self) -> DataReplicationMetadataOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<DataReplicationMetadataOutput> for DataReplicationMetadataOutput
impl PartialEq<DataReplicationMetadataOutput> for DataReplicationMetadataOutput
source§fn eq(&self, other: &DataReplicationMetadataOutput) -> bool
fn eq(&self, other: &DataReplicationMetadataOutput) -> bool
self
and other
values to be equal, and is used
by ==
.