@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataReplicationMetadataOutput extends Object implements Serializable, Cloneable, StructuredPojo
The replication details of the data replication-enabled broker. Only returned if dataReplicationMode or pendingDataReplicationMode is set to CRDR.
Constructor and Description |
---|
DataReplicationMetadataOutput() |
Modifier and Type | Method and Description |
---|---|
DataReplicationMetadataOutput |
clone() |
boolean |
equals(Object obj) |
DataReplicationCounterpart |
getDataReplicationCounterpart()
Describes the replica/primary broker.
|
String |
getDataReplicationRole()
Defines the role of this broker in a data replication pair.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDataReplicationCounterpart(DataReplicationCounterpart dataReplicationCounterpart)
Describes the replica/primary broker.
|
void |
setDataReplicationRole(String dataReplicationRole)
Defines the role of this broker in a data replication pair.
|
String |
toString()
Returns a string representation of this object.
|
DataReplicationMetadataOutput |
withDataReplicationCounterpart(DataReplicationCounterpart dataReplicationCounterpart)
Describes the replica/primary broker.
|
DataReplicationMetadataOutput |
withDataReplicationRole(String dataReplicationRole)
Defines the role of this broker in a data replication pair.
|
public void setDataReplicationCounterpart(DataReplicationCounterpart 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.
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.public DataReplicationCounterpart getDataReplicationCounterpart()
Describes the replica/primary broker. Only returned if this broker is currently set as a primary or replica in the broker's dataReplicationRole property.
public DataReplicationMetadataOutput withDataReplicationCounterpart(DataReplicationCounterpart 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.
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.public void setDataReplicationRole(String dataReplicationRole)
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
dataReplicationRole
- Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary,
this role is interchanged.public String getDataReplicationRole()
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
public DataReplicationMetadataOutput withDataReplicationRole(String dataReplicationRole)
Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary, this role is interchanged.
dataReplicationRole
- Defines the role of this broker in a data replication pair. When a replica broker is promoted to primary,
this role is interchanged.public String toString()
toString
in class Object
Object.toString()
public DataReplicationMetadataOutput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.