Interface EventParameters.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EventParameters.Builder,EventParameters>,SdkBuilder<EventParameters.Builder,EventParameters>,SdkPojo
- Enclosing class:
- EventParameters
public static interface EventParameters.Builder extends SdkPojo, CopyableBuilder<EventParameters.Builder,EventParameters>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EventParameters.BuilderdescriptionRegex(String descriptionRegex)The snapshot description that can trigger the policy.EventParameters.BuildereventType(String eventType)The type of event.EventParameters.BuildereventType(EventTypeValues eventType)The type of event.EventParameters.BuildersnapshotOwner(String... snapshotOwner)The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account.EventParameters.BuildersnapshotOwner(Collection<String> snapshotOwner)The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
eventType
EventParameters.Builder eventType(String eventType)
The type of event. Currently, only snapshot sharing events are supported.
- Parameters:
eventType- The type of event. Currently, only snapshot sharing events are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventTypeValues,EventTypeValues
-
eventType
EventParameters.Builder eventType(EventTypeValues eventType)
The type of event. Currently, only snapshot sharing events are supported.
- Parameters:
eventType- The type of event. Currently, only snapshot sharing events are supported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EventTypeValues,EventTypeValues
-
snapshotOwner
EventParameters.Builder snapshotOwner(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotOwner
EventParameters.Builder snapshotOwner(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
descriptionRegex
EventParameters.Builder descriptionRegex(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 policypolicy-1234567890abcdef0are shared with your account.- Parameters:
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 policypolicy-1234567890abcdef0are shared with your account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-