@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplicationDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about settings that define whether one or more objects in an S3 bucket are replicated to S3 buckets for other AWS accounts and, if so, which accounts.
Constructor and Description |
---|
ReplicationDetails() |
Modifier and Type | Method and Description |
---|---|
ReplicationDetails |
clone() |
boolean |
equals(Object obj) |
Boolean |
getReplicated()
Specifies whether the bucket is configured to replicate one or more objects to any destination.
|
Boolean |
getReplicatedExternally()
Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't part of
the Amazon Macie organization.
|
List<String> |
getReplicationAccounts()
An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or more
objects to.
|
int |
hashCode() |
Boolean |
isReplicated()
Specifies whether the bucket is configured to replicate one or more objects to any destination.
|
Boolean |
isReplicatedExternally()
Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't part of
the Amazon Macie organization.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setReplicated(Boolean replicated)
Specifies whether the bucket is configured to replicate one or more objects to any destination.
|
void |
setReplicatedExternally(Boolean replicatedExternally)
Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't part of
the Amazon Macie organization.
|
void |
setReplicationAccounts(Collection<String> replicationAccounts)
An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or more
objects to.
|
String |
toString()
Returns a string representation of this object.
|
ReplicationDetails |
withReplicated(Boolean replicated)
Specifies whether the bucket is configured to replicate one or more objects to any destination.
|
ReplicationDetails |
withReplicatedExternally(Boolean replicatedExternally)
Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't part of
the Amazon Macie organization.
|
ReplicationDetails |
withReplicationAccounts(Collection<String> replicationAccounts)
An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or more
objects to.
|
ReplicationDetails |
withReplicationAccounts(String... replicationAccounts)
An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or more
objects to.
|
public void setReplicated(Boolean replicated)
Specifies whether the bucket is configured to replicate one or more objects to any destination.
replicated
- Specifies whether the bucket is configured to replicate one or more objects to any destination.public Boolean getReplicated()
Specifies whether the bucket is configured to replicate one or more objects to any destination.
public ReplicationDetails withReplicated(Boolean replicated)
Specifies whether the bucket is configured to replicate one or more objects to any destination.
replicated
- Specifies whether the bucket is configured to replicate one or more objects to any destination.public Boolean isReplicated()
Specifies whether the bucket is configured to replicate one or more objects to any destination.
public void setReplicatedExternally(Boolean replicatedExternally)
Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't part of the Amazon Macie organization.
replicatedExternally
- Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't
part of the Amazon Macie organization.public Boolean getReplicatedExternally()
Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't part of the Amazon Macie organization.
public ReplicationDetails withReplicatedExternally(Boolean replicatedExternally)
Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't part of the Amazon Macie organization.
replicatedExternally
- Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't
part of the Amazon Macie organization.public Boolean isReplicatedExternally()
Specifies whether the bucket is configured to replicate one or more objects to an AWS account that isn't part of the Amazon Macie organization.
public List<String> getReplicationAccounts()
An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or more objects to.
public void setReplicationAccounts(Collection<String> replicationAccounts)
An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or more objects to.
replicationAccounts
- An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or
more objects to.public ReplicationDetails withReplicationAccounts(String... replicationAccounts)
An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or more objects to.
NOTE: This method appends the values to the existing list (if any). Use
setReplicationAccounts(java.util.Collection)
or withReplicationAccounts(java.util.Collection)
if you want to override the existing values.
replicationAccounts
- An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or
more objects to.public ReplicationDetails withReplicationAccounts(Collection<String> replicationAccounts)
An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or more objects to.
replicationAccounts
- An array of AWS account IDs, one for each AWS account that the bucket is configured to replicate one or
more objects to.public String toString()
toString
in class Object
Object.toString()
public ReplicationDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.