
es.tid.topologyModuleBase.IETFTopoModel.model.NetworkSchema 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.NetworksSchemaNode;
import es.tid.topologyModuleBase.IETFTopoModel.model.NetworksSchemaSupportingNetwork;
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 NetworkSchema {
private String networkId = null;
private List node = new ArrayList();
private List supportingNetwork = new ArrayList();
private Boolean serverProvided = null;
/**
* Identifies a network.
**/
public NetworkSchema networkId(String networkId) {
this.networkId = networkId;
return this;
}
@ApiModelProperty(value = "Identifies a network.")
@JsonProperty("networkId")
public String getNetworkId() {
return networkId;
}
public void setNetworkId(String networkId) {
this.networkId = networkId;
}
/**
* The inventory of nodes of this network.
**/
public NetworkSchema node(List node) {
this.node = node;
return this;
}
@ApiModelProperty(value = "The inventory of nodes of this network.")
@JsonProperty("node")
public List getNode() {
return node;
}
public void setNode(List node) {
this.node = node;
}
/**
* An underlay network, used to represent layered network\ntopologies.
**/
public NetworkSchema supportingNetwork(List supportingNetwork) {
this.supportingNetwork = supportingNetwork;
return this;
}
@ApiModelProperty(value = "An underlay network, used to represent layered network\ntopologies.")
@JsonProperty("supportingNetwork")
public List getSupportingNetwork() {
return supportingNetwork;
}
public void setSupportingNetwork(List supportingNetwork) {
this.supportingNetwork = supportingNetwork;
}
/**
* Indicates whether the information concerning this\nparticular network is populated by the server\n(server-provided true, the general case for network\ninformation discovered from the server),\nor whether it is configured by a client\n(server-provided true, possible e.g. for\nservice overlays managed through a controller).\nClients should not attempt to make modifications\nto network instances with server-provided set to\ntrue; when they do, they need to be aware that\nany modifications they make are subject to be\nreverted by the server.\nFor servers that support NACM (Netconf Access Control\nModel), data node rules should ideally prevent\nwrite access by other clients to the network instance\nwhen server-provided is set to true.
**/
public NetworkSchema serverProvided(Boolean serverProvided) {
this.serverProvided = serverProvided;
return this;
}
@ApiModelProperty(value = "Indicates whether the information concerning this\nparticular network is populated by the server\n(server-provided true, the general case for network\ninformation discovered from the server),\nor whether it is configured by a client\n(server-provided true, possible e.g. for\nservice overlays managed through a controller).\nClients should not attempt to make modifications\nto network instances with server-provided set to\ntrue; when they do, they need to be aware that\nany modifications they make are subject to be\nreverted by the server.\nFor servers that support NACM (Netconf Access Control\nModel), data node rules should ideally prevent\nwrite access by other clients to the network instance\nwhen server-provided is set to true.")
@JsonProperty("serverProvided")
public Boolean getServerProvided() {
return serverProvided;
}
public void setServerProvided(Boolean serverProvided) {
this.serverProvided = serverProvided;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NetworkSchema networkSchema = (NetworkSchema) o;
return Objects.equals(networkId, networkSchema.networkId) &&
Objects.equals(node, networkSchema.node) &&
Objects.equals(supportingNetwork, networkSchema.supportingNetwork) &&
Objects.equals(serverProvided, networkSchema.serverProvided);
}
@Override
public int hashCode() {
return Objects.hash(networkId, node, supportingNetwork, serverProvided);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NetworkSchema {\n");
sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n");
sb.append(" node: ").append(toIndentedString(node)).append("\n");
sb.append(" supportingNetwork: ").append(toIndentedString(supportingNetwork)).append("\n");
sb.append(" serverProvided: ").append(toIndentedString(serverProvided)).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