Interface AuditEventPerformedBy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AuditEventPerformedBy.Builder,
,AuditEventPerformedBy> SdkBuilder<AuditEventPerformedBy.Builder,
,AuditEventPerformedBy> SdkPojo
- Enclosing class:
AuditEventPerformedBy
@Mutable
@NotThreadSafe
public static interface AuditEventPerformedBy.Builder
extends SdkPojo, CopyableBuilder<AuditEventPerformedBy.Builder,AuditEventPerformedBy>
-
Method Summary
Modifier and TypeMethodDescriptioniamPrincipalArn
(String iamPrincipalArn) Unique identifier of an IAM role.default AuditEventPerformedBy.Builder
user
(Consumer<UserUnion.Builder> user) Sets the value of the User property for this object.Sets the value of the User property for this object.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, sdkFieldNameToField, sdkFields
-
Method Details
-
iamPrincipalArn
Unique identifier of an IAM role.
- Parameters:
iamPrincipalArn
- Unique identifier of an IAM role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
user
Sets the value of the User property for this object.- Parameters:
user
- The new value for the User property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
user
Sets the value of the User property for this object. This is a convenience method that creates an instance of theUserUnion.Builder
avoiding the need to create one manually viaUserUnion.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touser(UserUnion)
.- Parameters:
user
- a consumer that will call methods onUserUnion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-