Interface PermissionOutput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PermissionOutput.Builder,
,PermissionOutput> SdkBuilder<PermissionOutput.Builder,
,PermissionOutput> SdkPojo
- Enclosing class:
PermissionOutput
@Mutable
@NotThreadSafe
public static interface PermissionOutput.Builder
extends SdkPojo, CopyableBuilder<PermissionOutput.Builder,PermissionOutput>
-
Method Summary
Modifier and TypeMethodDescriptionThe action associated with the permission.action
(PermissionOutputActionEnum action) The action associated with the permission.default PermissionOutput.Builder
principal
(Consumer<PrincipalOutput.Builder> principal) The principal user to which the permission applies.principal
(PrincipalOutput principal) The principal user to which the permission applies.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, sdkFieldNameToField, sdkFields
-
Method Details
-
action
The action associated with the permission.
- Parameters:
action
- The action associated with the permission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
The action associated with the permission.
- Parameters:
action
- The action associated with the permission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
principal
The principal user to which the permission applies.
- Parameters:
principal
- The principal user to which the permission applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The principal user to which the permission applies.
This is a convenience method that creates an instance of thePrincipalOutput.Builder
avoiding the need to create one manually viaPrincipalOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipal(PrincipalOutput)
.- Parameters:
principal
- a consumer that will call methods onPrincipalOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-