public Api withVersion(String version) {
        setVersion(version);
        return this;
    }
<p>
A version identifier for the API.
</p>

@param version
       A version identifier for the API.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-apigatewayv2/src/main/java/com/amazonaws/services/apigatewayv2/model/Api.java