Class PolicyFilter

    • 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, policyType will return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from policyTypeAsString().

        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, policyType will return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from policyTypeAsString().

        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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)