Interface EntityReference.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EntityReference.Builder,
,EntityReference> SdkBuilder<EntityReference.Builder,
,EntityReference> SdkPojo
- Enclosing class:
EntityReference
@Mutable
@NotThreadSafe
public static interface EntityReference.Builder
extends SdkPojo, CopyableBuilder<EntityReference.Builder,EntityReference>
-
Method Summary
Modifier and TypeMethodDescriptiondefault EntityReference.Builder
identifier
(Consumer<EntityIdentifier.Builder> identifier) The identifier of the entity.identifier
(EntityIdentifier identifier) The identifier of the entity.unspecified
(Boolean unspecified) Used to indicate that a principal or resource is not specified.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
-
unspecified
Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.
- Parameters:
unspecified
- Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifier
The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.
- Parameters:
identifier
- The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identifier
The identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.
This is a convenience method that creates an instance of theEntityIdentifier.Builder
avoiding the need to create one manually viaEntityIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toidentifier(EntityIdentifier)
.- Parameters:
identifier
- a consumer that will call methods onEntityIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-