@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Action extends Object implements Serializable, Cloneable, StructuredPojo
[Event-based policies only] Specifies an action for an event-based policy.
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
Action |
clone() |
boolean |
equals(Object obj) |
List<CrossRegionCopyAction> |
getCrossRegionCopy()
The rule for copying shared snapshots across Regions.
|
String |
getName()
A descriptive name for the action.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCrossRegionCopy(Collection<CrossRegionCopyAction> crossRegionCopy)
The rule for copying shared snapshots across Regions.
|
void |
setName(String name)
A descriptive name for the action.
|
String |
toString()
Returns a string representation of this object.
|
Action |
withCrossRegionCopy(Collection<CrossRegionCopyAction> crossRegionCopy)
The rule for copying shared snapshots across Regions.
|
Action |
withCrossRegionCopy(CrossRegionCopyAction... crossRegionCopy)
The rule for copying shared snapshots across Regions.
|
Action |
withName(String name)
A descriptive name for the action.
|
public void setName(String name)
A descriptive name for the action.
name
- A descriptive name for the action.public String getName()
A descriptive name for the action.
public Action withName(String name)
A descriptive name for the action.
name
- A descriptive name for the action.public List<CrossRegionCopyAction> getCrossRegionCopy()
The rule for copying shared snapshots across Regions.
public void setCrossRegionCopy(Collection<CrossRegionCopyAction> crossRegionCopy)
The rule for copying shared snapshots across Regions.
crossRegionCopy
- The rule for copying shared snapshots across Regions.public Action withCrossRegionCopy(CrossRegionCopyAction... crossRegionCopy)
The rule for copying shared snapshots across Regions.
NOTE: This method appends the values to the existing list (if any). Use
setCrossRegionCopy(java.util.Collection)
or withCrossRegionCopy(java.util.Collection)
if you
want to override the existing values.
crossRegionCopy
- The rule for copying shared snapshots across Regions.public Action withCrossRegionCopy(Collection<CrossRegionCopyAction> crossRegionCopy)
The rule for copying shared snapshots across Regions.
crossRegionCopy
- The rule for copying shared snapshots across Regions.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.