Class DescribeResourcePoliciesRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<DescribeResourcePoliciesRequest.Builder,DescribeResourcePoliciesRequest>

@Generated("software.amazon.awssdk:codegen") public final class DescribeResourcePoliciesRequest extends CloudWatchLogsRequest implements ToCopyableBuilder<DescribeResourcePoliciesRequest.Builder,DescribeResourcePoliciesRequest>
  • Method Details

    • nextToken

      public final String nextToken()
      Returns the value of the NextToken property for this object.
      Returns:
      The value of the NextToken property for this object.
    • limit

      public final Integer limit()

      The maximum number of resource policies to be displayed with one call of this API.

      Returns:
      The maximum number of resource policies to be displayed with one call of this API.
    • resourceArn

      public final String resourceArn()

      The ARN of the CloudWatch Logs resource for which to query the resource policy.

      Returns:
      The ARN of the CloudWatch Logs resource for which to query the resource policy.
    • policyScope

      public final PolicyScope policyScope()

      Specifies the scope of the resource policy. Valid values are ACCOUNT or RESOURCE. When not specified, defaults to ACCOUNT.

      If the service returns an enum value that is not available in the current SDK version, policyScope will return PolicyScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from policyScopeAsString().

      Returns:
      Specifies the scope of the resource policy. Valid values are ACCOUNT or RESOURCE. When not specified, defaults to ACCOUNT.
      See Also:
    • policyScopeAsString

      public final String policyScopeAsString()

      Specifies the scope of the resource policy. Valid values are ACCOUNT or RESOURCE. When not specified, defaults to ACCOUNT.

      If the service returns an enum value that is not available in the current SDK version, policyScope will return PolicyScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from policyScopeAsString().

      Returns:
      Specifies the scope of the resource policy. Valid values are ACCOUNT or RESOURCE. When not specified, defaults to ACCOUNT.
      See Also:
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<DescribeResourcePoliciesRequest.Builder,DescribeResourcePoliciesRequest>
      Specified by:
      toBuilder in class CloudWatchLogsRequest
    • builder

      public static DescribeResourcePoliciesRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends DescribeResourcePoliciesRequest.Builder> serializableBuilderClass()
    • hashCode

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

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo