@Generated(value="software.amazon.awssdk:codegen") public final class ReplicationRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReplicationRule.Builder,ReplicationRule>
A container for information about a specific replication rule.
Modifier and Type | Class and Description |
---|---|
static interface |
ReplicationRule.Builder |
Modifier and Type | Method and Description |
---|---|
static ReplicationRule.Builder |
builder() |
DeleteMarkerReplication |
deleteMarkerReplication()
Returns the value of the DeleteMarkerReplication property for this object.
|
Destination |
destination()
A container for information about the replication destination.
|
boolean |
equals(Object obj) |
ReplicationRuleFilter |
filter()
Returns the value of the Filter property for this object.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
A unique identifier for the rule.
|
String |
prefix()
An object keyname prefix that identifies the object or objects to which the rule applies.
|
Integer |
priority()
The priority associated with the rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ReplicationRule.Builder> |
serializableBuilderClass() |
SourceSelectionCriteria |
sourceSelectionCriteria()
A container that describes additional filters for identifying the source objects that you want to replicate.
|
ReplicationRuleStatus |
status()
If status isn't enabled, the rule is ignored.
|
String |
statusAsString()
If status isn't enabled, the rule is ignored.
|
ReplicationRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String id()
A unique identifier for the rule. The maximum value is 255 characters.
public Integer priority()
The priority associated with the rule. If you specify multiple rules in a replication configuration, Amazon S3 prioritizes the rules to prevent conflicts when filtering. If two or more rules identify the same object based on a specified filter, the rule with higher priority takes precedence. For example:
Same object quality prefix based filter criteria If prefixes you specified in multiple rules overlap
Same object qualify tag based filter criteria specified in multiple rules
For more information, see Cross-Region Replication (CRR) in the Amazon S3 Developer Guide.
Same object quality prefix based filter criteria If prefixes you specified in multiple rules overlap
Same object qualify tag based filter criteria specified in multiple rules
For more information, see Cross-Region Replication (CRR) in the Amazon S3 Developer Guide.
public String prefix()
An object keyname prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters.
public ReplicationRuleFilter filter()
public ReplicationRuleStatus status()
If status isn't enabled, the rule is ignored.
If the service returns an enum value that is not available in the current SDK version, status
will
return ReplicationRuleStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from statusAsString()
.
ReplicationRuleStatus
public String statusAsString()
If status isn't enabled, the rule is ignored.
If the service returns an enum value that is not available in the current SDK version, status
will
return ReplicationRuleStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from statusAsString()
.
ReplicationRuleStatus
public SourceSelectionCriteria sourceSelectionCriteria()
A container that describes additional filters for identifying the source objects that you want to replicate. You can choose to enable or disable the replication of these objects. Currently, Amazon S3 supports only the filter that you can specify for objects created with server-side encryption using an AWS KMS-Managed Key (SSE-KMS).
If you want Amazon S3 to replicate objects created with server-side encryption using AWS KMS-Managed Keys.
If you want Amazon S3 to replicate objects created with server-side encryption using AWS KMS-Managed Keys.
public Destination destination()
A container for information about the replication destination.
public DeleteMarkerReplication deleteMarkerReplication()
public ReplicationRule.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<ReplicationRule.Builder,ReplicationRule>
public static ReplicationRule.Builder builder()
public static Class<? extends ReplicationRule.Builder> serializableBuilderClass()
public String toString()
Copyright © 2019. All rights reserved.