public CreateRestApiRequest withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
A stringified JSON policy document that applies to this RestApi regardless of the caller and Method
configuration.
</p>

@param policy
       A stringified JSON policy document that applies to this RestApi regardless of the caller and Method
       configuration.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/CreateRestApiRequest.java