Interface DeliverToMailboxAction.Builder

    • Method Detail

      • actionFailurePolicy

        DeliverToMailboxAction.Builder actionFailurePolicy​(String actionFailurePolicy)

        A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the mailbox ARN is no longer valid.

        Parameters:
        actionFailurePolicy - A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the mailbox ARN is no longer valid.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ActionFailurePolicy, ActionFailurePolicy
      • actionFailurePolicy

        DeliverToMailboxAction.Builder actionFailurePolicy​(ActionFailurePolicy actionFailurePolicy)

        A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the mailbox ARN is no longer valid.

        Parameters:
        actionFailurePolicy - A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the mailbox ARN is no longer valid.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ActionFailurePolicy, ActionFailurePolicy
      • mailboxArn

        DeliverToMailboxAction.Builder mailboxArn​(String mailboxArn)

        The Amazon Resource Name (ARN) of a WorkMail organization to deliver the email to.

        Parameters:
        mailboxArn - The Amazon Resource Name (ARN) of a WorkMail organization to deliver the email to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • roleArn

        DeliverToMailboxAction.Builder roleArn​(String roleArn)

        The Amazon Resource Name (ARN) of an IAM role to use to execute this action. The role must have access to the workmail:DeliverToMailbox API.

        Parameters:
        roleArn - The Amazon Resource Name (ARN) of an IAM role to use to execute this action. The role must have access to the workmail:DeliverToMailbox API.
        Returns:
        Returns a reference to this object so that method calls can be chained together.