package es.tid.topologyModuleBase.IETFTopoModel.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import es.tid.topologyModuleBase.IETFTopoModel.model.NetworksSchemaSupportingNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaJerseyServerCodegen", date = "2016-07-18T18:59:38.916+02:00")
public class NodeSchema {
private String nodeId = null;
private List<NetworksSchemaSupportingNode> supportingNode = new ArrayList<NetworksSchemaSupportingNode>();
/**
* Identifies a node uniquely within the containing\nnetwork.
**/
public NodeSchema nodeId(String nodeId) {
this.nodeId = nodeId;
return this;
}
@ApiModelProperty(value = "Identifies a node uniquely within the containing\nnetwork.")
@JsonProperty("nodeId")
public String getNodeId() {
return nodeId;
}
public void setNodeId(String nodeId) {
this.nodeId = nodeId;
}
/**
* Represents another node, in an underlay network, that\nthis node is supported by. Used to represent layering\nstructure.
**/
public NodeSchema supportingNode(List<NetworksSchemaSupportingNode> supportingNode) {
this.supportingNode = supportingNode;
return this;
}
@ApiModelProperty(value = "Represents another node, in an underlay network, that\nthis node is supported by. Used to represent layering\nstructure.")
@JsonProperty("supportingNode")
public List<NetworksSchemaSupportingNode> getSupportingNode() {
return supportingNode;
}
public void setSupportingNode(List<NetworksSchemaSupportingNode> supportingNode) {
this.supportingNode = supportingNode;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NodeSchema nodeSchema = (NodeSchema) o;
return Objects.equals(nodeId, nodeSchema.nodeId) &&
Objects.equals(supportingNode, nodeSchema.supportingNode);
}
@Override
public int hashCode() {
return Objects.hash(nodeId, supportingNode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NodeSchema {\n");
sb.append(" nodeId: ").append(toIndentedString(nodeId)).append("\n");
sb.append(" supportingNode: ").append(toIndentedString(supportingNode)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}