Class AddPolicyStatementRequest

    • Method Detail

      • hasAction

        public final boolean hasAction()
        For responses, this returns true if the service returned a value for the Action property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • action

        public final List<String> action()

        The action that the principal can use on the resource.

        For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasAction() method.

        Returns:
        The action that the principal can use on the resource.

        For example, entityresolution:GetIdMappingJob, entityresolution:GetMatchingJob.

      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.

        Returns:
        The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.
      • condition

        public final String condition()

        A set of condition keys that you can use in key policies.

        Returns:
        A set of condition keys that you can use in key policies.
      • effect

        public final StatementEffect effect()

        Determines whether the permissions specified in the policy are to be allowed (Allow) or denied ( Deny).

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

        Returns:
        Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny).
        See Also:
        StatementEffect
      • effectAsString

        public final String effectAsString()

        Determines whether the permissions specified in the policy are to be allowed (Allow) or denied ( Deny).

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

        Returns:
        Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny).
        See Also:
        StatementEffect
      • hasPrincipal

        public final boolean hasPrincipal()
        For responses, this returns true if the service returned a value for the Principal property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • principal

        public final List<String> principal()

        The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasPrincipal() method.

        Returns:
        The Amazon Web Services service or Amazon Web Services account that can access the resource defined as ARN.
      • statementId

        public final String statementId()

        A statement identifier that differentiates the statement from others in the same policy.

        Returns:
        A statement identifier that differentiates the statement from others in the same policy.
      • 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