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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AllowedPrincipal.Builder
principal(String principal)
The Amazon Resource Name (ARN) of the principal.AllowedPrincipal.Builder
principalType(String principalType)
The type of principal.AllowedPrincipal.Builder
principalType(PrincipalType principalType)
The type of principal.AllowedPrincipal.Builder
serviceId(String serviceId)
The ID of the service.AllowedPrincipal.Builder
servicePermissionId(String servicePermissionId)
The ID of the service permission.AllowedPrincipal.Builder
tags(Collection<Tag> tags)
The tags.AllowedPrincipal.Builder
tags(Consumer<Tag.Builder>... tags)
The tags.AllowedPrincipal.Builder
tags(Tag... 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 Detail
-
principalType
AllowedPrincipal.Builder principalType(String 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
,PrincipalType
-
principalType
AllowedPrincipal.Builder principalType(PrincipalType 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
,PrincipalType
-
principal
AllowedPrincipal.Builder principal(String 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
AllowedPrincipal.Builder servicePermissionId(String 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
AllowedPrincipal.Builder tags(Collection<Tag> tags)
The tags.
- Parameters:
tags
- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
AllowedPrincipal.Builder tags(Tag... tags)
The tags.
- Parameters:
tags
- The tags.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
AllowedPrincipal.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
serviceId
AllowedPrincipal.Builder serviceId(String 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.
-
-