public void setMaxRetries(Long maxRetries) {
        this.maxRetries = maxRetries;
    }
<p>
The maximum number of retry attempts.
</p>

@param maxRetries
       The maximum number of retry attempts.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/HttpRetryPolicy.java