public class PolicyType {
- @JsonProperty("policy_type_id")
- Integer policyTypeId;
-
@JsonProperty("name")
String name;
- @JsonProperty("description")
- String description;
-
- @JsonProperty("create_schema")
- String createSchema;
+ @JsonProperty("schema")
+ String schema;
- public PolicyType(Integer policyId, String name, String description, String createSchema) {
- this.policyTypeId = policyId;
+ public PolicyType(String name, String schema) {
this.name = name;
- this.description = description;
- this.createSchema = createSchema;
- }
-
- public Integer getPolicyTypeId() {
- return policyTypeId;
- }
-
- public void setPolicyTypeId(Integer policyTypeId) {
- this.policyTypeId = policyTypeId;
+ this.schema = schema;
}
public String getName() {
this.name = name;
}
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getCreateSchema() {
- return createSchema;
+ public String getSchema() {
+ return schema;
}
- public void setCreateSchema(String createSchema) {
- this.createSchema = createSchema;
+ public void setSchema(String schema) {
+ this.schema = schema;
}
@Override
public String toString() {
- return "[policy_type_id:" + policyTypeId + ", name:" + name + ", description:" + description + ", create_schema:" + createSchema + "]";
+ return "[name:" + name + ", schema:" + schema + "]";
}
}