public GetPolicyResult withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
The policy attached to the private CA as a JSON document.
</p>

@param policy
       The policy attached to the private CA as a JSON document.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-acmpca/src/main/java/com/amazonaws/services/acmpca/model/GetPolicyResult.java