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

@param maxRetries
       The maximum number of retry attempts.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/GrpcRetryPolicy.java