Class PolicyFilter
- java.lang.Object
-
- software.amazon.awssdk.services.verifiedpermissions.model.PolicyFilter
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicyFilter.Builder,PolicyFilter>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicyFilter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyFilter.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpolicyTemplateId()Filters the output to only template-linked policies that were instantiated from the specified policy template.PolicyTypepolicyType()Filters the output to only policies of the specified type.StringpolicyTypeAsString()Filters the output to only policies of the specified type.EntityReferenceprincipal()Filters the output to only policies that reference the specified principal.EntityReferenceresource()Filters the output to only policies that reference the specified resource.List<SdkField<?>>sdkFields()static Class<? extends PolicyFilter.Builder>serializableBuilderClass()PolicyFilter.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
principal
public final EntityReference principal()
Filters the output to only policies that reference the specified principal.
- Returns:
- Filters the output to only policies that reference the specified principal.
-
resource
public final EntityReference resource()
Filters the output to only policies that reference the specified resource.
- Returns:
- Filters the output to only policies that reference the specified resource.
-
policyType
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,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- Filters the output to only policies of the specified type.
- See Also:
PolicyType
-
policyTypeAsString
public 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,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- Filters the output to only policies of the specified type.
- See Also:
PolicyType
-
policyTemplateId
public final String policyTemplateId()
Filters the output to only template-linked policies that were instantiated from the specified policy template.
- Returns:
- Filters the output to only template-linked policies that were instantiated from the specified policy template.
-
toBuilder
public PolicyFilter.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicyFilter.Builder,PolicyFilter>
-
builder
public static PolicyFilter.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicyFilter.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-