public void setPolicy(String policy) {
        this.policy = policy;
    }
<p>
The resource-based policy document attached to the resource, which can be a table or stream, in JSON format.
</p>

@param policy
       The resource-based policy document attached to the resource, which can be a table or stream, in JSON
       format.
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/GetResourcePolicyResult.java