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 Modifier and Type Method Description Principal.Builderid(String id)The ID of the resource.Principal.Builderroles(Collection<PermissionInfo> roles)The permission information for the resource.Principal.Builderroles(Consumer<PermissionInfo.Builder>... roles)The permission information for the resource.Principal.Builderroles(PermissionInfo... roles)The permission information for the resource.Principal.Buildertype(String type)The type of resource.Principal.Buildertype(PrincipalType type)The type of resource.-
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
-
id
Principal.Builder id(String id)
The ID of the resource.
- Parameters:
id- The ID of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Principal.Builder type(String type)
The type of resource.
- Parameters:
type- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PrincipalType,PrincipalType
-
type
Principal.Builder type(PrincipalType type)
The type of resource.
- Parameters:
type- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PrincipalType,PrincipalType
-
roles
Principal.Builder roles(Collection<PermissionInfo> roles)
The permission information for the resource.
- Parameters:
roles- The permission information for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
Principal.Builder roles(PermissionInfo... roles)
The permission information for the resource.
- Parameters:
roles- The permission information for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roles
Principal.Builder roles(Consumer<PermissionInfo.Builder>... roles)
The permission information for the resource.
This is a convenience method that creates an instance of thePermissionInfo.Builderavoiding the need to create one manually viaPermissionInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#roles(List.) - Parameters:
roles- a consumer that will call methods onPermissionInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#roles(java.util.Collection)
-
-