Class AccountPolicy

    • Method Detail

      • policyName

        public final String policyName()

        The name of the account policy.

        Returns:
        The name of the account policy.
      • policyDocument

        public final String policyDocument()

        The policy document for this account policy.

        The JSON specified in policyDocument can be up to 30,720 characters.

        Returns:
        The policy document for this account policy.

        The JSON specified in policyDocument can be up to 30,720 characters.

      • lastUpdatedTime

        public final Long lastUpdatedTime()

        The date and time that this policy was most recently updated.

        Returns:
        The date and time that this policy was most recently updated.
      • policyType

        public final PolicyType policyType()

        The type of policy for this account policy.

        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:
        The type of policy for this account policy.
        See Also:
        PolicyType
      • policyTypeAsString

        public final String policyTypeAsString()

        The type of policy for this account policy.

        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:
        The type of policy for this account policy.
        See Also:
        PolicyType
      • scope

        public final Scope scope()

        The scope of the account policy.

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

        Returns:
        The scope of the account policy.
        See Also:
        Scope
      • scopeAsString

        public final String scopeAsString()

        The scope of the account policy.

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

        Returns:
        The scope of the account policy.
        See Also:
        Scope
      • selectionCriteria

        public final String selectionCriteria()

        The log group selection criteria that is used for this policy.

        Returns:
        The log group selection criteria that is used for this policy.
      • accountId

        public final String accountId()

        The Amazon Web Services account ID that the policy applies to.

        Returns:
        The Amazon Web Services account ID that the policy applies to.
      • 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)