public PutPolicyResult withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
The resource-based policy.
</p>

@param policy
       The resource-based policy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-entityresolution/src/main/java/com/amazonaws/services/entityresolution/model/PutPolicyResult.java