public PutResourcePolicyRequest withPolicy(String policy) {
        setPolicy(policy);
        return this;
    }
<p>
Details of the resource policy. It must include the identity of the principal and the actions allowed on this
resource. This is formatted as a JSON string.
</p>

@param policy
       Details of the resource policy. It must include the identity of the principal and the actions allowed on
       this resource. This is formatted as a JSON string.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/model/PutResourcePolicyRequest.java