Interface PolicyFilter.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PolicyFilter.Builder,
,PolicyFilter> SdkBuilder<PolicyFilter.Builder,
,PolicyFilter> SdkPojo
- Enclosing class:
PolicyFilter
-
Method Summary
Modifier and TypeMethodDescriptionpolicyTemplateId
(String policyTemplateId) Filters the output to only template-linked policies that were instantiated from the specified policy template.policyType
(String policyType) Filters the output to only policies of the specified type.policyType
(PolicyType policyType) Filters the output to only policies of the specified type.default PolicyFilter.Builder
principal
(Consumer<EntityReference.Builder> principal) Filters the output to only policies that reference the specified principal.principal
(EntityReference principal) Filters the output to only policies that reference the specified principal.default PolicyFilter.Builder
resource
(Consumer<EntityReference.Builder> resource) Filters the output to only policies that reference the specified resource.resource
(EntityReference resource) Filters the output to only policies that reference the specified resource.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
-
principal
Filters the output to only policies that reference the specified principal.
- Parameters:
principal
- Filters the output to only policies that reference the specified principal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
Filters the output to only policies that reference the specified principal.
This is a convenience method that creates an instance of theEntityReference.Builder
avoiding the need to create one manually viaEntityReference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipal(EntityReference)
.- Parameters:
principal
- a consumer that will call methods onEntityReference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resource
Filters the output to only policies that reference the specified resource.
- Parameters:
resource
- Filters the output to only policies that reference the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
Filters the output to only policies that reference the specified resource.
This is a convenience method that creates an instance of theEntityReference.Builder
avoiding the need to create one manually viaEntityReference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresource(EntityReference)
.- Parameters:
resource
- a consumer that will call methods onEntityReference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyType
Filters the output to only policies of the specified type.
- Parameters:
policyType
- Filters the output to only policies of the specified type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyType
Filters the output to only policies of the specified type.
- Parameters:
policyType
- Filters the output to only policies of the specified type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyTemplateId
Filters the output to only template-linked policies that were instantiated from the specified policy template.
- Parameters:
policyTemplateId
- Filters the output to only template-linked policies that were instantiated from the specified policy template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-