1 package org.onap.sdnc.apps.ms.gra.swagger.model;
3 import java.util.Objects;
4 import com.fasterxml.jackson.annotation.JsonProperty;
5 import com.fasterxml.jackson.annotation.JsonRootName;
6 import com.fasterxml.jackson.annotation.JsonCreator;
7 import io.swagger.annotations.ApiModel;
8 import io.swagger.annotations.ApiModelProperty;
9 import java.util.ArrayList;
10 import java.util.List;
11 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiHostRoutes;
12 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiHostroutesHostRoutes;
13 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkPolicy;
14 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkTopologyIdentifierStructure;
15 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworkpolicyNetworkPolicy;
16 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure;
17 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiProviderNetworkInformation;
18 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRouteTableReference;
19 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRoutetablereferenceRouteTableReference;
20 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiSubnets;
21 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiSubnetsSubnets;
22 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVpnBindings;
23 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVpnbindingsVpnBindings;
24 import org.springframework.validation.annotation.Validated;
25 import javax.validation.Valid;
26 import javax.validation.constraints.*;
29 * GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation
32 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00")
33 @JsonRootName("preload-network-topology-information")
34 public class GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation {
35 @JsonProperty("host-routes")
37 private List<GenericResourceApiHostroutesHostRoutes> hostRoutes = null;
39 @JsonProperty("network-policy")
41 private List<GenericResourceApiNetworkpolicyNetworkPolicy> networkPolicy = null;
43 @JsonProperty("network-topology-identifier-structure")
44 private GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTopologyIdentifierStructure = null;
46 @JsonProperty("physical-network-name")
47 private String physicalNetworkName = null;
49 @JsonProperty("is-external-network")
50 private Boolean isExternalNetwork = null;
52 @JsonProperty("is-shared-network")
53 private Boolean isSharedNetwork = null;
55 @JsonProperty("is-provider-network")
56 private Boolean isProviderNetwork = null;
58 @JsonProperty("route-table-reference")
60 private List<GenericResourceApiRoutetablereferenceRouteTableReference> routeTableReference = null;
62 @JsonProperty("subnets")
64 private List<GenericResourceApiSubnetsSubnets> subnets = null;
66 @JsonProperty("vpn-bindings")
68 private List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings = null;
70 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation hostRoutes(List<GenericResourceApiHostroutesHostRoutes> hostRoutes) {
71 this.hostRoutes = hostRoutes;
75 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addHostRoutesItem(GenericResourceApiHostroutesHostRoutes hostRoutesItem) {
76 if (this.hostRoutes == null) {
77 this.hostRoutes = new ArrayList<>();
79 this.hostRoutes.add(hostRoutesItem);
87 @ApiModelProperty(value = "")
91 public List<GenericResourceApiHostroutesHostRoutes> getHostRoutes() {
95 public void setHostRoutes(List<GenericResourceApiHostroutesHostRoutes> hostRoutes) {
96 this.hostRoutes = hostRoutes;
99 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation networkPolicy(List<GenericResourceApiNetworkpolicyNetworkPolicy> networkPolicy) {
100 this.networkPolicy = networkPolicy;
104 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addNetworkPolicyItem(GenericResourceApiNetworkpolicyNetworkPolicy networkPolicyItem) {
105 if (this.networkPolicy == null) {
106 this.networkPolicy = new ArrayList<>();
108 this.networkPolicy.add(networkPolicyItem);
114 * @return networkPolicy
116 @ApiModelProperty(value = "")
120 public List<GenericResourceApiNetworkpolicyNetworkPolicy> getNetworkPolicy() {
121 return networkPolicy;
124 public void setNetworkPolicy(List<GenericResourceApiNetworkpolicyNetworkPolicy> networkPolicy) {
125 this.networkPolicy = networkPolicy;
128 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation networkTopologyIdentifierStructure(GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTopologyIdentifierStructure) {
129 this.networkTopologyIdentifierStructure = networkTopologyIdentifierStructure;
134 * Get networkTopologyIdentifierStructure
135 * @return networkTopologyIdentifierStructure
137 @ApiModelProperty(value = "")
141 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure getNetworkTopologyIdentifierStructure() {
142 return networkTopologyIdentifierStructure;
145 public void setNetworkTopologyIdentifierStructure(GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTopologyIdentifierStructure) {
146 this.networkTopologyIdentifierStructure = networkTopologyIdentifierStructure;
149 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation physicalNetworkName(String physicalNetworkName) {
150 this.physicalNetworkName = physicalNetworkName;
155 * Get physicalNetworkName
156 * @return physicalNetworkName
158 @ApiModelProperty(value = "")
161 public String getPhysicalNetworkName() {
162 return physicalNetworkName;
165 public void setPhysicalNetworkName(String physicalNetworkName) {
166 this.physicalNetworkName = physicalNetworkName;
169 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation isExternalNetwork(Boolean isExternalNetwork) {
170 this.isExternalNetwork = isExternalNetwork;
175 * Get isExternalNetwork
176 * @return isExternalNetwork
178 @ApiModelProperty(value = "")
181 public Boolean isIsExternalNetwork() {
182 return isExternalNetwork;
185 public void setIsExternalNetwork(Boolean isExternalNetwork) {
186 this.isExternalNetwork = isExternalNetwork;
189 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation isSharedNetwork(Boolean isSharedNetwork) {
190 this.isSharedNetwork = isSharedNetwork;
195 * Get isSharedNetwork
196 * @return isSharedNetwork
198 @ApiModelProperty(value = "")
201 public Boolean isIsSharedNetwork() {
202 return isSharedNetwork;
205 public void setIsSharedNetwork(Boolean isSharedNetwork) {
206 this.isSharedNetwork = isSharedNetwork;
209 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation isProviderNetwork(Boolean isProviderNetwork) {
210 this.isProviderNetwork = isProviderNetwork;
215 * Get isProviderNetwork
216 * @return isProviderNetwork
218 @ApiModelProperty(value = "")
221 public Boolean isIsProviderNetwork() {
222 return isProviderNetwork;
225 public void setIsProviderNetwork(Boolean isProviderNetwork) {
226 this.isProviderNetwork = isProviderNetwork;
229 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation routeTableReference(List<GenericResourceApiRoutetablereferenceRouteTableReference> routeTableReference) {
230 this.routeTableReference = routeTableReference;
234 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addRouteTableReferenceItem(GenericResourceApiRoutetablereferenceRouteTableReference routeTableReferenceItem) {
235 if (this.routeTableReference == null) {
236 this.routeTableReference = new ArrayList<>();
238 this.routeTableReference.add(routeTableReferenceItem);
243 * Get routeTableReference
244 * @return routeTableReference
246 @ApiModelProperty(value = "")
250 public List<GenericResourceApiRoutetablereferenceRouteTableReference> getRouteTableReference() {
251 return routeTableReference;
254 public void setRouteTableReference(List<GenericResourceApiRoutetablereferenceRouteTableReference> routeTableReference) {
255 this.routeTableReference = routeTableReference;
258 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation subnets(List<GenericResourceApiSubnetsSubnets> subnets) {
259 this.subnets = subnets;
263 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addSubnetsItem(GenericResourceApiSubnetsSubnets subnetsItem) {
264 if (this.subnets == null) {
265 this.subnets = new ArrayList<>();
267 this.subnets.add(subnetsItem);
275 @ApiModelProperty(value = "")
279 public List<GenericResourceApiSubnetsSubnets> getSubnets() {
283 public void setSubnets(List<GenericResourceApiSubnetsSubnets> subnets) {
284 this.subnets = subnets;
287 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation vpnBindings(List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings) {
288 this.vpnBindings = vpnBindings;
292 public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addVpnBindingsItem(GenericResourceApiVpnbindingsVpnBindings vpnBindingsItem) {
293 if (this.vpnBindings == null) {
294 this.vpnBindings = new ArrayList<>();
296 this.vpnBindings.add(vpnBindingsItem);
302 * @return vpnBindings
304 @ApiModelProperty(value = "")
308 public List<GenericResourceApiVpnbindingsVpnBindings> getVpnBindings() {
312 public void setVpnBindings(List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings) {
313 this.vpnBindings = vpnBindings;
318 public boolean equals(java.lang.Object o) {
322 if (o == null || getClass() != o.getClass()) {
325 GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation = (GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation) o;
326 return Objects.equals(this.hostRoutes, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.hostRoutes) &&
327 Objects.equals(this.networkPolicy, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.networkPolicy) &&
328 Objects.equals(this.networkTopologyIdentifierStructure, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.networkTopologyIdentifierStructure) &&
329 Objects.equals(this.physicalNetworkName, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.physicalNetworkName) &&
330 Objects.equals(this.isExternalNetwork, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.isExternalNetwork) &&
331 Objects.equals(this.isSharedNetwork, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.isSharedNetwork) &&
332 Objects.equals(this.isProviderNetwork, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.isProviderNetwork) &&
333 Objects.equals(this.routeTableReference, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.routeTableReference) &&
334 Objects.equals(this.subnets, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.subnets) &&
335 Objects.equals(this.vpnBindings, genericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation.vpnBindings);
339 public int hashCode() {
340 return Objects.hash(hostRoutes, networkPolicy, networkTopologyIdentifierStructure, physicalNetworkName, isExternalNetwork, isSharedNetwork, isProviderNetwork, routeTableReference, subnets, vpnBindings);
344 public String toString() {
345 StringBuilder sb = new StringBuilder();
346 sb.append("class GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation {\n");
348 sb.append(" hostRoutes: ").append(toIndentedString(hostRoutes)).append("\n");
349 sb.append(" networkPolicy: ").append(toIndentedString(networkPolicy)).append("\n");
350 sb.append(" networkTopologyIdentifierStructure: ").append(toIndentedString(networkTopologyIdentifierStructure)).append("\n");
351 sb.append(" physicalNetworkName: ").append(toIndentedString(physicalNetworkName)).append("\n");
352 sb.append(" isExternalNetwork: ").append(toIndentedString(isExternalNetwork)).append("\n");
353 sb.append(" isSharedNetwork: ").append(toIndentedString(isSharedNetwork)).append("\n");
354 sb.append(" isProviderNetwork: ").append(toIndentedString(isProviderNetwork)).append("\n");
355 sb.append(" routeTableReference: ").append(toIndentedString(routeTableReference)).append("\n");
356 sb.append(" subnets: ").append(toIndentedString(subnets)).append("\n");
357 sb.append(" vpnBindings: ").append(toIndentedString(vpnBindings)).append("\n");
359 return sb.toString();
363 * Convert the given object to string with each line indented by 4 spaces
364 * (except the first line).
366 private String toIndentedString(java.lang.Object o) {
370 return o.toString().replace("\n", "\n ");