Interface Principal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Principal.Builder,
,Principal> SdkBuilder<Principal.Builder,
,Principal> SdkPojo
- Enclosing class:
Principal
@Mutable
@NotThreadSafe
public static interface Principal.Builder
extends SdkPojo, CopyableBuilder<Principal.Builder,Principal>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Principal.Builder
group
(Consumer<PrincipalGroup.Builder> group) The group associated with the principal.group
(PrincipalGroup group) The group associated with the principal.default Principal.Builder
user
(Consumer<PrincipalUser.Builder> user) The user associated with the principal.user
(PrincipalUser user) The user associated with the principal.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
-
user
The user associated with the principal.
- Parameters:
user
- The user associated with the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
user
The user associated with the principal.
This is a convenience method that creates an instance of thePrincipalUser.Builder
avoiding the need to create one manually viaPrincipalUser.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touser(PrincipalUser)
.- Parameters:
user
- a consumer that will call methods onPrincipalUser.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
group
The group associated with the principal.
- Parameters:
group
- The group associated with the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
group
The group associated with the principal.
This is a convenience method that creates an instance of thePrincipalGroup.Builder
avoiding the need to create one manually viaPrincipalGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroup(PrincipalGroup)
.- Parameters:
group
- a consumer that will call methods onPrincipalGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-