public static interface Principal.Builder extends CopyableBuilder<Principal.Builder,Principal>
Modifier and Type | Method and Description |
---|---|
Principal.Builder |
id(String id)
The ID of the resource.
|
Principal.Builder |
roles(Collection<PermissionInfo> roles)
The permission information for the resource.
|
Principal.Builder |
roles(Consumer<PermissionInfo.Builder>... roles)
The permission information for the resource.
|
Principal.Builder |
roles(PermissionInfo... roles)
The permission information for the resource.
|
Principal.Builder |
type(PrincipalType type)
The type of resource.
|
Principal.Builder |
type(String type)
The type of resource.
|
copy
applyMutation, build
Principal.Builder id(String id)
The ID of the resource.
id
- The ID of the resource.Principal.Builder type(String type)
The type of resource.
type
- The type of resource.PrincipalType
,
PrincipalType
Principal.Builder type(PrincipalType type)
The type of resource.
type
- The type of resource.PrincipalType
,
PrincipalType
Principal.Builder roles(Collection<PermissionInfo> roles)
The permission information for the resource.
roles
- The permission information for the resource.Principal.Builder roles(PermissionInfo... roles)
The permission information for the resource.
roles
- The permission information for the resource.Principal.Builder roles(Consumer<PermissionInfo.Builder>... roles)
The permission information for the resource.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #roles(List)
.roles
- a consumer that will call methods on List.Builder
#roles(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.