@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CrossRegionCopyAction extends Object implements Serializable, Cloneable, StructuredPojo
[Event-based policies only] Specifies a cross-Region copy action for event-based policies.
To specify a cross-Region copy rule for snapshot and AMI policies, use CrossRegionCopyRule.
Constructor and Description |
---|
CrossRegionCopyAction() |
Modifier and Type | Method and Description |
---|---|
CrossRegionCopyAction |
clone() |
boolean |
equals(Object obj) |
EncryptionConfiguration |
getEncryptionConfiguration()
The encryption settings for the copied snapshot.
|
CrossRegionCopyRetainRule |
getRetainRule() |
String |
getTarget()
The target Region.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
The encryption settings for the copied snapshot.
|
void |
setRetainRule(CrossRegionCopyRetainRule retainRule) |
void |
setTarget(String target)
The target Region.
|
String |
toString()
Returns a string representation of this object.
|
CrossRegionCopyAction |
withEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
The encryption settings for the copied snapshot.
|
CrossRegionCopyAction |
withRetainRule(CrossRegionCopyRetainRule retainRule) |
CrossRegionCopyAction |
withTarget(String target)
The target Region.
|
public void setTarget(String target)
The target Region.
target
- The target Region.public String getTarget()
The target Region.
public CrossRegionCopyAction withTarget(String target)
The target Region.
target
- The target Region.public void setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
The encryption settings for the copied snapshot.
encryptionConfiguration
- The encryption settings for the copied snapshot.public EncryptionConfiguration getEncryptionConfiguration()
The encryption settings for the copied snapshot.
public CrossRegionCopyAction withEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration)
The encryption settings for the copied snapshot.
encryptionConfiguration
- The encryption settings for the copied snapshot.public void setRetainRule(CrossRegionCopyRetainRule retainRule)
retainRule
- public CrossRegionCopyRetainRule getRetainRule()
public CrossRegionCopyAction withRetainRule(CrossRegionCopyRetainRule retainRule)
retainRule
- public String toString()
toString
in class Object
Object.toString()
public CrossRegionCopyAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.