
es.tid.topologyModuleBase.IETFTopoModel.model.NodeSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of topology Show documentation
Show all versions of topology Show documentation
Traffic Engineering Database, BGP-LS peer, Topology Module
The newest version!
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 supportingNode = new ArrayList();
/**
* 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 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 getSupportingNode() {
return supportingNode;
}
public void setSupportingNode(List 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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy