Interface Principal.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Principal.Builder,,Principal> SdkBuilder<Principal.Builder,,Principal> SdkPojo
- Enclosing class:
Principal
public static interface Principal.Builder
extends SdkPojo, CopyableBuilder<Principal.Builder,Principal>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Principal.Buildergroup(Consumer<PrincipalGroup.Builder> group) The group associated with the principal.group(PrincipalGroup group) The group associated with the principal.default Principal.Builderuser(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaPrincipalUser.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaPrincipalGroup.builder().When the
Consumercompletes,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:
-