@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ReplicaModifications extends Object implements Serializable, Cloneable
A filter that you can use to specify whether replica modification sync is enabled. S3 on Outposts replica modification sync can help you keep object metadata synchronized between replicas and source objects. By default, S3 on Outposts replicates metadata from the source objects to the replicas only. When replica modification sync is enabled, S3 on Outposts replicates metadata changes made to the replica copies back to the source object, making the replication bidirectional.
To replicate object metadata modifications on replicas, you can specify this element and set the Status
of this element to Enabled
.
You must enable replica modification sync on the source and destination buckets to replicate replica metadata changes between the source and the replicas.
Constructor and Description |
---|
ReplicaModifications() |
Modifier and Type | Method and Description |
---|---|
ReplicaModifications |
clone() |
boolean |
equals(Object obj) |
String |
getStatus()
Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.
|
int |
hashCode() |
void |
setStatus(String status)
Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.
|
String |
toString()
Returns a string representation of this object.
|
ReplicaModifications |
withStatus(ReplicaModificationsStatus status)
Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.
|
ReplicaModifications |
withStatus(String status)
Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.
|
public void setStatus(String status)
Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.
status
- Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.ReplicaModificationsStatus
public String getStatus()
Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.
ReplicaModificationsStatus
public ReplicaModifications withStatus(String status)
Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.
status
- Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.ReplicaModificationsStatus
public ReplicaModifications withStatus(ReplicaModificationsStatus status)
Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.
status
- Specifies whether S3 on Outposts replicates modifications to object metadata on replicas.ReplicaModificationsStatus
public String toString()
toString
in class Object
Object.toString()
public ReplicaModifications clone()