public PutResourcePolicyRequest withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
A policy you want to associate with a resource.
</p>

@param policy
       A policy you want to associate with a resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/PutResourcePolicyRequest.java