public UpdateEndpointRequest withDesiredModelArn(String desiredModelArn) {
        setDesiredModelArn(desiredModelArn);
        return this;
    }
<p>
The ARN of the new model to use when updating an existing endpoint.
</p>

@param desiredModelArn
       The ARN of the new model to use when updating an existing endpoint.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/UpdateEndpointRequest.java