public static interface Principal.Builder extends SdkPojo, 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.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildPrincipal.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,
PrincipalTypePrincipal.Builder type(PrincipalType type)
The type of resource.
type - The type of resource.PrincipalType,
PrincipalTypePrincipal.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 method that creates an instance of thePermissionInfo.Builder avoiding the need to create one
manually via PermissionInfo.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #roles(List.
roles - a consumer that will call methods on
PermissionInfo.Builder#roles(java.util.Collection) Copyright © 2023. All rights reserved.