@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplicationRule extends Object implements Serializable, Cloneable, StructuredPojo
An array of objects representing the replication destinations for a replication configuration. A replication configuration may contain only one replication rule but the rule may contain one or more replication destinations.
Constructor and Description |
---|
ReplicationRule() |
Modifier and Type | Method and Description |
---|---|
ReplicationRule |
clone() |
boolean |
equals(Object obj) |
List<ReplicationDestination> |
getDestinations()
An array of objects representing the details of a replication destination.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDestinations(Collection<ReplicationDestination> destinations)
An array of objects representing the details of a replication destination.
|
String |
toString()
Returns a string representation of this object.
|
ReplicationRule |
withDestinations(Collection<ReplicationDestination> destinations)
An array of objects representing the details of a replication destination.
|
ReplicationRule |
withDestinations(ReplicationDestination... destinations)
An array of objects representing the details of a replication destination.
|
public List<ReplicationDestination> getDestinations()
An array of objects representing the details of a replication destination.
public void setDestinations(Collection<ReplicationDestination> destinations)
An array of objects representing the details of a replication destination.
destinations
- An array of objects representing the details of a replication destination.public ReplicationRule withDestinations(ReplicationDestination... destinations)
An array of objects representing the details of a replication destination.
NOTE: This method appends the values to the existing list (if any). Use
setDestinations(java.util.Collection)
or withDestinations(java.util.Collection)
if you want to
override the existing values.
destinations
- An array of objects representing the details of a replication destination.public ReplicationRule withDestinations(Collection<ReplicationDestination> destinations)
An array of objects representing the details of a replication destination.
destinations
- An array of objects representing the details of a replication destination.public String toString()
toString
in class Object
Object.toString()
public ReplicationRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.