Interface AllowedPrincipal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AllowedPrincipal.Builder,
,AllowedPrincipal> SdkBuilder<AllowedPrincipal.Builder,
,AllowedPrincipal> SdkPojo
- Enclosing class:
AllowedPrincipal
public static interface AllowedPrincipal.Builder
extends SdkPojo, CopyableBuilder<AllowedPrincipal.Builder,AllowedPrincipal>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the principal.principalType
(String principalType) The type of principal.principalType
(PrincipalType principalType) The type of principal.The ID of the service.servicePermissionId
(String servicePermissionId) The ID of the service permission.tags
(Collection<Tag> tags) The tags.tags
(Consumer<Tag.Builder>... tags) The tags.The tags.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, sdkFields
-
Method Details
-
principalType
The type of principal.
- Parameters:
principalType
- The type of principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
principalType
The type of principal.
- Parameters:
principalType
- The type of principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
principal
The Amazon Resource Name (ARN) of the principal.
- Parameters:
principal
- The Amazon Resource Name (ARN) of the principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
servicePermissionId
The ID of the service permission.
- Parameters:
servicePermissionId
- The ID of the service permission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags.
- Parameters:
tags
- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags.
- Parameters:
tags
- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceId
The ID of the service.
- Parameters:
serviceId
- The ID of the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-