Files
acs-public-rest-api/src/gen/java/com/inteligr8/alfresco/acs/model/Constraint.java

155 lines
3.4 KiB
Java

package com.inteligr8.alfresco.acs.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Map;
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
public class Constraint {
@ApiModelProperty(required = true, value = "")
private String id = null;
@ApiModelProperty(value = "the type of the constraint")
/**
* the type of the constraint
**/
private String type = null;
@ApiModelProperty(value = "the human-readable constraint title")
/**
* the human-readable constraint title
**/
private String title = null;
@ApiModelProperty(value = "the human-readable constraint description")
/**
* the human-readable constraint description
**/
private String description = null;
@ApiModelProperty(value = "")
private Map<String, Object> parameters = null;
/**
* Get id
* @return id
**/
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Constraint id(String id) {
this.id = id;
return this;
}
/**
* the type of the constraint
* @return type
**/
@JsonProperty("type")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Constraint type(String type) {
this.type = type;
return this;
}
/**
* the human-readable constraint title
* @return title
**/
@JsonProperty("title")
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Constraint title(String title) {
this.title = title;
return this;
}
/**
* the human-readable constraint description
* @return description
**/
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Constraint description(String description) {
this.description = description;
return this;
}
/**
* Get parameters
* @return parameters
**/
@JsonProperty("parameters")
public Map<String, Object> getParameters() {
return parameters;
}
public void setParameters(Map<String, Object> parameters) {
this.parameters = parameters;
}
public Constraint parameters(Map<String, Object> parameters) {
this.parameters = parameters;
return this;
}
public Constraint putParametersItem(String key, Object parametersItem) {
this.parameters.put(key, parametersItem);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Constraint {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" title: ").append(toIndentedString(title)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private static String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}