public HttpRoute withRetryPolicy(HttpRetryPolicy retryPolicy) {
        setRetryPolicy(retryPolicy);
        return this;
    }
<p>
An object that represents a retry policy.
</p>

@param retryPolicy
       An object that represents a retry policy.
@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/HttpRoute.java