@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EventParameters extends Object implements Serializable, Cloneable, StructuredPojo
[Event-based policies only] Specifies an event that activates an event-based policy.
Constructor and Description |
---|
EventParameters() |
Modifier and Type | Method and Description |
---|---|
EventParameters |
clone() |
boolean |
equals(Object obj) |
String |
getDescriptionRegex()
The snapshot description that can trigger the policy.
|
String |
getEventType()
The type of event.
|
List<String> |
getSnapshotOwner()
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescriptionRegex(String descriptionRegex)
The snapshot description that can trigger the policy.
|
void |
setEventType(String eventType)
The type of event.
|
void |
setSnapshotOwner(Collection<String> snapshotOwner)
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account.
|
String |
toString()
Returns a string representation of this object.
|
EventParameters |
withDescriptionRegex(String descriptionRegex)
The snapshot description that can trigger the policy.
|
EventParameters |
withEventType(EventTypeValues eventType)
The type of event.
|
EventParameters |
withEventType(String eventType)
The type of event.
|
EventParameters |
withSnapshotOwner(Collection<String> snapshotOwner)
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account.
|
EventParameters |
withSnapshotOwner(String... snapshotOwner)
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account.
|
public void setEventType(String eventType)
The type of event. Currently, only snapshot sharing events are supported.
eventType
- The type of event. Currently, only snapshot sharing events are supported.EventTypeValues
public String getEventType()
The type of event. Currently, only snapshot sharing events are supported.
EventTypeValues
public EventParameters withEventType(String eventType)
The type of event. Currently, only snapshot sharing events are supported.
eventType
- The type of event. Currently, only snapshot sharing events are supported.EventTypeValues
public EventParameters withEventType(EventTypeValues eventType)
The type of event. Currently, only snapshot sharing events are supported.
eventType
- The type of event. Currently, only snapshot sharing events are supported.EventTypeValues
public List<String> getSnapshotOwner()
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.
public void setSnapshotOwner(Collection<String> snapshotOwner)
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.
snapshotOwner
- The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your
account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with
your account.public EventParameters withSnapshotOwner(String... snapshotOwner)
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.
NOTE: This method appends the values to the existing list (if any). Use
setSnapshotOwner(java.util.Collection)
or withSnapshotOwner(java.util.Collection)
if you want
to override the existing values.
snapshotOwner
- The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your
account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with
your account.public EventParameters withSnapshotOwner(Collection<String> snapshotOwner)
The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.
snapshotOwner
- The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your
account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with
your account.public void setDescriptionRegex(String descriptionRegex)
The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$
configures the policy to
run only if snapshots created by policy policy-1234567890abcdef0
are shared with your account.
descriptionRegex
- The snapshot description that can trigger the policy. The description pattern is specified using a regular
expression. The policy runs only if a snapshot with a description that matches the specified pattern is
shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$
configures the
policy to run only if snapshots created by policy policy-1234567890abcdef0
are shared with
your account.
public String getDescriptionRegex()
The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$
configures the policy to
run only if snapshots created by policy policy-1234567890abcdef0
are shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$
configures the
policy to run only if snapshots created by policy policy-1234567890abcdef0
are shared with
your account.
public EventParameters withDescriptionRegex(String descriptionRegex)
The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$
configures the policy to
run only if snapshots created by policy policy-1234567890abcdef0
are shared with your account.
descriptionRegex
- The snapshot description that can trigger the policy. The description pattern is specified using a regular
expression. The policy runs only if a snapshot with a description that matches the specified pattern is
shared with your account.
For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$
configures the
policy to run only if snapshots created by policy policy-1234567890abcdef0
are shared with
your account.
public String toString()
toString
in class Object
Object.toString()
public EventParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.