CopyableBuilder<Principal.Builder,Principal>, SdkBuilder<Principal.Builder,Principal>public static interface Principal.Builder extends CopyableBuilder<Principal.Builder,Principal>
| Modifier and Type | Method | 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(PermissionInfo... roles) |
The permission information for the resource.
|
Principal.Builder |
type(String type) |
The type of resource.
|
Principal.Builder |
type(PrincipalType type) |
The type of resource.
|
copyapply, 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.PrincipalTypePrincipal.Builder type(PrincipalType type)
The type of resource.
type - The type of resource.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.
NOTE: This method appends the values to the existing list (if any). Use
#setRoles(java.util.Collection) or #withRoles(java.util.Collection) if you want to override
the existing values.
roles - The permission information for the resource.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.