@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 and repository filters for a replication configuration.
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 destination for a replication rule.
|
List<RepositoryFilter> |
getRepositoryFilters()
An array of objects representing the filters for a replication rule.
|
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 destination for a replication rule.
|
void |
setRepositoryFilters(Collection<RepositoryFilter> repositoryFilters)
An array of objects representing the filters for a replication rule.
|
String |
toString()
Returns a string representation of this object.
|
ReplicationRule |
withDestinations(Collection<ReplicationDestination> destinations)
An array of objects representing the destination for a replication rule.
|
ReplicationRule |
withDestinations(ReplicationDestination... destinations)
An array of objects representing the destination for a replication rule.
|
ReplicationRule |
withRepositoryFilters(Collection<RepositoryFilter> repositoryFilters)
An array of objects representing the filters for a replication rule.
|
ReplicationRule |
withRepositoryFilters(RepositoryFilter... repositoryFilters)
An array of objects representing the filters for a replication rule.
|
public List<ReplicationDestination> getDestinations()
An array of objects representing the destination for a replication rule.
public void setDestinations(Collection<ReplicationDestination> destinations)
An array of objects representing the destination for a replication rule.
destinations
- An array of objects representing the destination for a replication rule.public ReplicationRule withDestinations(ReplicationDestination... destinations)
An array of objects representing the destination for a replication rule.
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 destination for a replication rule.public ReplicationRule withDestinations(Collection<ReplicationDestination> destinations)
An array of objects representing the destination for a replication rule.
destinations
- An array of objects representing the destination for a replication rule.public List<RepositoryFilter> getRepositoryFilters()
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
public void setRepositoryFilters(Collection<RepositoryFilter> repositoryFilters)
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
repositoryFilters
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a
replication rule provides a method for controlling which repositories in a private registry are
replicated.public ReplicationRule withRepositoryFilters(RepositoryFilter... repositoryFilters)
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
NOTE: This method appends the values to the existing list (if any). Use
setRepositoryFilters(java.util.Collection)
or withRepositoryFilters(java.util.Collection)
if
you want to override the existing values.
repositoryFilters
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a
replication rule provides a method for controlling which repositories in a private registry are
replicated.public ReplicationRule withRepositoryFilters(Collection<RepositoryFilter> repositoryFilters)
An array of objects representing the filters for a replication rule. Specifying a repository filter for a replication rule provides a method for controlling which repositories in a private registry are replicated.
repositoryFilters
- An array of objects representing the filters for a replication rule. Specifying a repository filter for a
replication rule provides a method for controlling which repositories in a private registry are
replicated.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.