@Generated(value="software.amazon.awssdk:codegen") public final class PolicyFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyFilter.Builder,PolicyFilter>
Contains information about a filter to refine policies returned in a query.
This data type is used as a response parameter for the ListPolicies operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PolicyFilter.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PolicyFilter.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
policyTemplateId()
Filters the output to only template-linked policies that were instantiated from the specified policy template.
|
PolicyType |
policyType()
Filters the output to only policies of the specified type.
|
String |
policyTypeAsString()
Filters the output to only policies of the specified type.
|
EntityReference |
principal()
Filters the output to only policies that reference the specified principal.
|
EntityReference |
resource()
Filters the output to only policies that reference the specified resource.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PolicyFilter.Builder> |
serializableBuilderClass() |
PolicyFilter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final EntityReference principal()
Filters the output to only policies that reference the specified principal.
public final EntityReference resource()
Filters the output to only policies that reference the specified resource.
public final PolicyType policyType()
Filters the output to only policies of the specified type.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypepublic final String policyTypeAsString()
Filters the output to only policies of the specified type.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypepublic final String policyTemplateId()
Filters the output to only template-linked policies that were instantiated from the specified policy template.
public PolicyFilter.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PolicyFilter.Builder,PolicyFilter>public static PolicyFilter.Builder builder()
public static Class<? extends PolicyFilter.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.