Interface AccountPolicy.Builder

    • Method Detail

      • policyName

        AccountPolicy.Builder policyName​(String policyName)

        The name of the account policy.

        Parameters:
        policyName - The name of the account policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyDocument

        AccountPolicy.Builder policyDocument​(String policyDocument)

        The policy document for this account policy.

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

        Parameters:
        policyDocument - The policy document for this account policy.

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

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastUpdatedTime

        AccountPolicy.Builder lastUpdatedTime​(Long lastUpdatedTime)

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

        Parameters:
        lastUpdatedTime - The date and time that this policy was most recently updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyType

        AccountPolicy.Builder policyType​(String policyType)

        The type of policy for this account policy.

        Parameters:
        policyType - The type of policy for this account policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PolicyType, PolicyType
      • policyType

        AccountPolicy.Builder policyType​(PolicyType policyType)

        The type of policy for this account policy.

        Parameters:
        policyType - The type of policy for this account policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PolicyType, PolicyType
      • scope

        AccountPolicy.Builder scope​(String scope)

        The scope of the account policy.

        Parameters:
        scope - The scope of the account policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Scope, Scope
      • scope

        AccountPolicy.Builder scope​(Scope scope)

        The scope of the account policy.

        Parameters:
        scope - The scope of the account policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Scope, Scope
      • selectionCriteria

        AccountPolicy.Builder selectionCriteria​(String selectionCriteria)

        The log group selection criteria for this subscription filter policy.

        Parameters:
        selectionCriteria - The log group selection criteria for this subscription filter policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • accountId

        AccountPolicy.Builder accountId​(String accountId)

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

        Parameters:
        accountId - The Amazon Web Services account ID that the policy applies to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.