public LambdaAction withInvocationType(InvocationType invocationType) {
        this.invocationType = invocationType.toString();
        return this;
    }
<p>
The invocation type of the Amazon Web Services Lambda function. An invocation type of
<code>RequestResponse</code> means that the execution of the function immediately results in a response, and a
value of <code>Event</code> means that the function is invoked asynchronously. The default value is
<code>Event</code>. For information about Amazon Web Services Lambda invocation types, see the <a
href="https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html">Amazon Web Services Lambda Developer
Guide</a>.
</p>
<important>
<p>
There is a 30-second timeout on <code>RequestResponse</code> invocations. You should use <code>Event</code>
invocation in most cases. Use <code>RequestResponse</code> only to make a mail flow decision, such as whether to
stop the receipt rule or the receipt rule set.
</p>
</important>

@param invocationType
       The invocation type of the Amazon Web Services Lambda function. An invocation type of
       <code>RequestResponse</code> means that the execution of the function immediately results in a response,
       and a value of <code>Event</code> means that the function is invoked asynchronously. The default value is
       <code>Event</code>. For information about Amazon Web Services Lambda invocation types, see the <a
       href="https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html">Amazon Web Services Lambda Developer
       Guide</a>.</p> <important>
       <p>
       There is a 30-second timeout on <code>RequestResponse</code> invocations. You should use
       <code>Event</code> invocation in most cases. Use <code>RequestResponse</code> only to make a mail flow
       decision, such as whether to stop the receipt rule or the receipt rule set.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see InvocationType
aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/model/LambdaAction.java