com.mypurecloud.sdk.model.EdgeLine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mypurecloud.sdk.model.Edge;
import com.mypurecloud.sdk.model.EdgeGroup;
import com.mypurecloud.sdk.model.Endpoint;
import com.mypurecloud.sdk.model.UriReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.io.Serializable;
/**
* EdgeLine
*/
public class EdgeLine implements Serializable {
private String id = null;
private String name = null;
private String description = null;
private Integer version = null;
private Date dateCreated = null;
private Date dateModified = null;
private String modifiedBy = null;
private String createdBy = null;
/**
* Gets or Sets state
*/
public enum StateEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
ACTIVE("active"),
INACTIVE("inactive"),
DELETED("deleted");
private String value;
StateEnum(String value) {
this.value = value;
}
@JsonCreator
public static StateEnum fromString(String key) {
if (key == null) return null;
for (StateEnum value : StateEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return StateEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private StateEnum state = null;
private String modifiedByApp = null;
private String createdByApp = null;
private UriReference schema = null;
private Map properties = new HashMap();
private Edge edge = null;
private EdgeGroup edgeGroup = null;
/**
* Gets or Sets lineType
*/
public enum LineTypeEnum {
OUTDATEDSDKVERSION("OutdatedSdkVersion"),
TIE("TIE"),
NETWORK("NETWORK"),
TRUNK("TRUNK"),
STATION("STATION");
private String value;
LineTypeEnum(String value) {
this.value = value;
}
@JsonCreator
public static LineTypeEnum fromString(String key) {
if (key == null) return null;
for (LineTypeEnum value : LineTypeEnum.values()) {
if (key.equalsIgnoreCase(value.toString())) {
return value;
}
}
return LineTypeEnum.values()[0];
}
@Override
@JsonValue
public String toString() {
return String.valueOf(value);
}
}
private LineTypeEnum lineType = null;
private Endpoint endpoint = null;
private String ipAddress = null;
private String logicalInterfaceId = null;
private String selfUri = null;
@ApiModelProperty(example = "null", value = "The globally unique identifier for the object.")
@JsonProperty("id")
public String getId() {
return id;
}
/**
* The name of the entity.
**/
public EdgeLine name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "The name of the entity.")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
**/
public EdgeLine description(String description) {
this.description = description;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
/**
**/
public EdgeLine version(Integer version) {
this.version = version;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("version")
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
/**
* Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
**/
public EdgeLine dateCreated(Date dateCreated) {
this.dateCreated = dateCreated;
return this;
}
@ApiModelProperty(example = "null", value = "Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
@JsonProperty("dateCreated")
public Date getDateCreated() {
return dateCreated;
}
public void setDateCreated(Date dateCreated) {
this.dateCreated = dateCreated;
}
/**
* Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
**/
public EdgeLine dateModified(Date dateModified) {
this.dateModified = dateModified;
return this;
}
@ApiModelProperty(example = "null", value = "Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
@JsonProperty("dateModified")
public Date getDateModified() {
return dateModified;
}
public void setDateModified(Date dateModified) {
this.dateModified = dateModified;
}
/**
**/
public EdgeLine modifiedBy(String modifiedBy) {
this.modifiedBy = modifiedBy;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("modifiedBy")
public String getModifiedBy() {
return modifiedBy;
}
public void setModifiedBy(String modifiedBy) {
this.modifiedBy = modifiedBy;
}
/**
**/
public EdgeLine createdBy(String createdBy) {
this.createdBy = createdBy;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("createdBy")
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
/**
**/
public EdgeLine state(StateEnum state) {
this.state = state;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("state")
public StateEnum getState() {
return state;
}
public void setState(StateEnum state) {
this.state = state;
}
/**
**/
public EdgeLine modifiedByApp(String modifiedByApp) {
this.modifiedByApp = modifiedByApp;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("modifiedByApp")
public String getModifiedByApp() {
return modifiedByApp;
}
public void setModifiedByApp(String modifiedByApp) {
this.modifiedByApp = modifiedByApp;
}
/**
**/
public EdgeLine createdByApp(String createdByApp) {
this.createdByApp = createdByApp;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("createdByApp")
public String getCreatedByApp() {
return createdByApp;
}
public void setCreatedByApp(String createdByApp) {
this.createdByApp = createdByApp;
}
/**
**/
public EdgeLine schema(UriReference schema) {
this.schema = schema;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("schema")
public UriReference getSchema() {
return schema;
}
public void setSchema(UriReference schema) {
this.schema = schema;
}
/**
**/
public EdgeLine properties(Map properties) {
this.properties = properties;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("properties")
public Map getProperties() {
return properties;
}
public void setProperties(Map properties) {
this.properties = properties;
}
/**
**/
public EdgeLine edge(Edge edge) {
this.edge = edge;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("edge")
public Edge getEdge() {
return edge;
}
public void setEdge(Edge edge) {
this.edge = edge;
}
/**
**/
public EdgeLine edgeGroup(EdgeGroup edgeGroup) {
this.edgeGroup = edgeGroup;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("edgeGroup")
public EdgeGroup getEdgeGroup() {
return edgeGroup;
}
public void setEdgeGroup(EdgeGroup edgeGroup) {
this.edgeGroup = edgeGroup;
}
/**
**/
public EdgeLine lineType(LineTypeEnum lineType) {
this.lineType = lineType;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("lineType")
public LineTypeEnum getLineType() {
return lineType;
}
public void setLineType(LineTypeEnum lineType) {
this.lineType = lineType;
}
/**
**/
public EdgeLine endpoint(Endpoint endpoint) {
this.endpoint = endpoint;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("endpoint")
public Endpoint getEndpoint() {
return endpoint;
}
public void setEndpoint(Endpoint endpoint) {
this.endpoint = endpoint;
}
/**
**/
public EdgeLine ipAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("ipAddress")
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
/**
**/
public EdgeLine logicalInterfaceId(String logicalInterfaceId) {
this.logicalInterfaceId = logicalInterfaceId;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("logicalInterfaceId")
public String getLogicalInterfaceId() {
return logicalInterfaceId;
}
public void setLogicalInterfaceId(String logicalInterfaceId) {
this.logicalInterfaceId = logicalInterfaceId;
}
@ApiModelProperty(example = "null", value = "The URI for this object")
@JsonProperty("selfUri")
public String getSelfUri() {
return selfUri;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EdgeLine edgeLine = (EdgeLine) o;
return Objects.equals(this.id, edgeLine.id) &&
Objects.equals(this.name, edgeLine.name) &&
Objects.equals(this.description, edgeLine.description) &&
Objects.equals(this.version, edgeLine.version) &&
Objects.equals(this.dateCreated, edgeLine.dateCreated) &&
Objects.equals(this.dateModified, edgeLine.dateModified) &&
Objects.equals(this.modifiedBy, edgeLine.modifiedBy) &&
Objects.equals(this.createdBy, edgeLine.createdBy) &&
Objects.equals(this.state, edgeLine.state) &&
Objects.equals(this.modifiedByApp, edgeLine.modifiedByApp) &&
Objects.equals(this.createdByApp, edgeLine.createdByApp) &&
Objects.equals(this.schema, edgeLine.schema) &&
Objects.equals(this.properties, edgeLine.properties) &&
Objects.equals(this.edge, edgeLine.edge) &&
Objects.equals(this.edgeGroup, edgeLine.edgeGroup) &&
Objects.equals(this.lineType, edgeLine.lineType) &&
Objects.equals(this.endpoint, edgeLine.endpoint) &&
Objects.equals(this.ipAddress, edgeLine.ipAddress) &&
Objects.equals(this.logicalInterfaceId, edgeLine.logicalInterfaceId) &&
Objects.equals(this.selfUri, edgeLine.selfUri);
}
@Override
public int hashCode() {
return Objects.hash(id, name, description, version, dateCreated, dateModified, modifiedBy, createdBy, state, modifiedByApp, createdByApp, schema, properties, edge, edgeGroup, lineType, endpoint, ipAddress, logicalInterfaceId, selfUri);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EdgeLine {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" dateCreated: ").append(toIndentedString(dateCreated)).append("\n");
sb.append(" dateModified: ").append(toIndentedString(dateModified)).append("\n");
sb.append(" modifiedBy: ").append(toIndentedString(modifiedBy)).append("\n");
sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
sb.append(" state: ").append(toIndentedString(state)).append("\n");
sb.append(" modifiedByApp: ").append(toIndentedString(modifiedByApp)).append("\n");
sb.append(" createdByApp: ").append(toIndentedString(createdByApp)).append("\n");
sb.append(" schema: ").append(toIndentedString(schema)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" edge: ").append(toIndentedString(edge)).append("\n");
sb.append(" edgeGroup: ").append(toIndentedString(edgeGroup)).append("\n");
sb.append(" lineType: ").append(toIndentedString(lineType)).append("\n");
sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n");
sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n");
sb.append(" logicalInterfaceId: ").append(toIndentedString(logicalInterfaceId)).append("\n");
sb.append(" selfUri: ").append(toIndentedString(selfUri)).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 String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}