@Generated(value="software.amazon.awssdk:codegen") public final class ReplicationRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReplicationRule.Builder,ReplicationRule>
Specifies which Amazon S3 objects to replicate and where to store the replicas.
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 and its configurations including enabling the S3
Replication Time Control (S3 RTC).
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ExistingObjectReplication |
existingObjectReplication()
|
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 key name 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()
Specifies whether the rule is enabled.
|
String |
statusAsString()
Specifies whether the rule is enabled.
|
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 Replication in the Amazon Simple Storage Service 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 Replication in the Amazon Simple Storage Service Developer Guide.
public String prefix()
An object key name prefix that identifies the object or objects to which the rule applies. The maximum prefix length is 1,024 characters. To include all objects in a bucket, specify an empty string.
public ReplicationRuleFilter filter()
public ReplicationRuleStatus status()
Specifies whether the rule is enabled.
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()
Specifies whether the rule is enabled.
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 a customer master key (CMK) stored in AWS Key Management Service (SSE-KMS).
public ExistingObjectReplication existingObjectReplication()
public Destination destination()
A container for information about the replication destination and its configurations including enabling the S3 Replication Time Control (S3 RTC).
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 boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2020. All rights reserved.