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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Principal.Buildergroup(Consumer<PrincipalGroup.Builder> group)The group associated with the principal.Principal.Buildergroup(PrincipalGroup group)The group associated with the principal.default Principal.Builderuser(Consumer<PrincipalUser.Builder> user)The user associated with the principal.Principal.Builderuser(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, sdkFields
-
-
-
-
Method Detail
-
user
Principal.Builder user(PrincipalUser 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
default Principal.Builder user(Consumer<PrincipalUser.Builder> 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:
user(PrincipalUser)
-
group
Principal.Builder group(PrincipalGroup 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
default Principal.Builder group(Consumer<PrincipalGroup.Builder> 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:
group(PrincipalGroup)
-
-