public FunctionEventInvokeConfig withMaximumRetryAttempts(Integer maximumRetryAttempts) {
        setMaximumRetryAttempts(maximumRetryAttempts);
        return this;
    }
<p>
The maximum number of times to retry when the function returns an error.
</p>

@param maximumRetryAttempts
       The maximum number of times to retry when the function returns an error.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/FunctionEventInvokeConfig.java