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
Modifier and TypeMethodDescriptionThe ID of the resource.roles(Collection<PermissionInfo> roles) The permission information for the resource.roles(Consumer<PermissionInfo.Builder>... roles) The permission information for the resource.roles(PermissionInfo... roles) The permission information for the resource.The type of resource.type(PrincipalType type) The type of resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields 
- 
Method Details
- 
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
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:
 
 - 
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:
 
 - 
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
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
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 toroles(List<PermissionInfo>).- 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:
 
 
 -