Interface PolicyEvent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyEvent.Builder,,PolicyEvent> SdkBuilder<PolicyEvent.Builder,,PolicyEvent> SdkPojo
- Enclosing class:
PolicyEvent
@Mutable
@NotThreadSafe
public static interface PolicyEvent.Builder
extends SdkPojo, CopyableBuilder<PolicyEvent.Builder,PolicyEvent>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PolicyEvent.Builderactor(Consumer<EventActor.Builder> actor) Sets the value of the Actor property for this object.actor(EventActor actor) Sets the value of the Actor property for this object.default PolicyEvent.BuildereventDetails(Consumer<PolicyEventDetails.Builder> eventDetails) The details of the event.eventDetails(PolicyEventDetails eventDetails) The details of the event.The identifier of the event.The type of the event.eventType(PolicyEventType eventType) The type of the event.Sets the value of the PolicyArn property for this object.The time the event occurred.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
eventId
The identifier of the event.
- Parameters:
eventId- The identifier of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timestamp
The time the event occurred.
- Parameters:
timestamp- The time the event occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventType
The type of the event.
- Parameters:
eventType- The type of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventType
The type of the event.
- Parameters:
eventType- The type of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyArn
Sets the value of the PolicyArn property for this object.- Parameters:
policyArn- The new value for the PolicyArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actor
Sets the value of the Actor property for this object.- Parameters:
actor- The new value for the Actor property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actor
Sets the value of the Actor property for this object. This is a convenience method that creates an instance of theEventActor.Builderavoiding the need to create one manually viaEventActor.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toactor(EventActor).- Parameters:
actor- a consumer that will call methods onEventActor.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eventDetails
The details of the event.
- Parameters:
eventDetails- The details of the event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventDetails
The details of the event.
This is a convenience method that creates an instance of thePolicyEventDetails.Builderavoiding the need to create one manually viaPolicyEventDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeventDetails(PolicyEventDetails).- Parameters:
eventDetails- a consumer that will call methods onPolicyEventDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-