public PutResourcePolicyRequest withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
Details of the resource policy.
</p>

@param policy
       Details of the resource policy.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssmincidents/src/main/java/com/amazonaws/services/ssmincidents/model/PutResourcePolicyRequest.java