de07732f21928c72916aa507aa7c613d85d6084c
[sdnc/apps.git] /
1 package org.onap.sdnc.apps.ms.gra.swagger.model;
2
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.*;
27
28 /**
29  * GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation
30  */
31 @Validated
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")
36   @Valid
37   private List<GenericResourceApiHostroutesHostRoutes> hostRoutes = null;
38
39   @JsonProperty("network-policy")
40   @Valid
41   private List<GenericResourceApiNetworkpolicyNetworkPolicy> networkPolicy = null;
42
43   @JsonProperty("network-topology-identifier-structure")
44   private GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTopologyIdentifierStructure = null;
45
46   @JsonProperty("physical-network-name")
47   private String physicalNetworkName = null;
48
49   @JsonProperty("is-external-network")
50   private Boolean isExternalNetwork = null;
51
52   @JsonProperty("is-shared-network")
53   private Boolean isSharedNetwork = null;
54
55   @JsonProperty("is-provider-network")
56   private Boolean isProviderNetwork = null;
57
58   @JsonProperty("route-table-reference")
59   @Valid
60   private List<GenericResourceApiRoutetablereferenceRouteTableReference> routeTableReference = null;
61
62   @JsonProperty("subnets")
63   @Valid
64   private List<GenericResourceApiSubnetsSubnets> subnets = null;
65
66   @JsonProperty("vpn-bindings")
67   @Valid
68   private List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings = null;
69
70   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation hostRoutes(List<GenericResourceApiHostroutesHostRoutes> hostRoutes) {
71     this.hostRoutes = hostRoutes;
72     return this;
73   }
74
75   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addHostRoutesItem(GenericResourceApiHostroutesHostRoutes hostRoutesItem) {
76     if (this.hostRoutes == null) {
77       this.hostRoutes = new ArrayList<>();
78     }
79     this.hostRoutes.add(hostRoutesItem);
80     return this;
81   }
82
83   /**
84    * Get hostRoutes
85    * @return hostRoutes
86   **/
87   @ApiModelProperty(value = "")
88
89   @Valid
90
91   public List<GenericResourceApiHostroutesHostRoutes> getHostRoutes() {
92     return hostRoutes;
93   }
94
95   public void setHostRoutes(List<GenericResourceApiHostroutesHostRoutes> hostRoutes) {
96     this.hostRoutes = hostRoutes;
97   }
98
99   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation networkPolicy(List<GenericResourceApiNetworkpolicyNetworkPolicy> networkPolicy) {
100     this.networkPolicy = networkPolicy;
101     return this;
102   }
103
104   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addNetworkPolicyItem(GenericResourceApiNetworkpolicyNetworkPolicy networkPolicyItem) {
105     if (this.networkPolicy == null) {
106       this.networkPolicy = new ArrayList<>();
107     }
108     this.networkPolicy.add(networkPolicyItem);
109     return this;
110   }
111
112   /**
113    * Get networkPolicy
114    * @return networkPolicy
115   **/
116   @ApiModelProperty(value = "")
117
118   @Valid
119
120   public List<GenericResourceApiNetworkpolicyNetworkPolicy> getNetworkPolicy() {
121     return networkPolicy;
122   }
123
124   public void setNetworkPolicy(List<GenericResourceApiNetworkpolicyNetworkPolicy> networkPolicy) {
125     this.networkPolicy = networkPolicy;
126   }
127
128   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation networkTopologyIdentifierStructure(GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTopologyIdentifierStructure) {
129     this.networkTopologyIdentifierStructure = networkTopologyIdentifierStructure;
130     return this;
131   }
132
133   /**
134    * Get networkTopologyIdentifierStructure
135    * @return networkTopologyIdentifierStructure
136   **/
137   @ApiModelProperty(value = "")
138
139   @Valid
140
141   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure getNetworkTopologyIdentifierStructure() {
142     return networkTopologyIdentifierStructure;
143   }
144
145   public void setNetworkTopologyIdentifierStructure(GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTopologyIdentifierStructure) {
146     this.networkTopologyIdentifierStructure = networkTopologyIdentifierStructure;
147   }
148
149   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation physicalNetworkName(String physicalNetworkName) {
150     this.physicalNetworkName = physicalNetworkName;
151     return this;
152   }
153
154   /**
155    * Get physicalNetworkName
156    * @return physicalNetworkName
157   **/
158   @ApiModelProperty(value = "")
159
160
161   public String getPhysicalNetworkName() {
162     return physicalNetworkName;
163   }
164
165   public void setPhysicalNetworkName(String physicalNetworkName) {
166     this.physicalNetworkName = physicalNetworkName;
167   }
168
169   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation isExternalNetwork(Boolean isExternalNetwork) {
170     this.isExternalNetwork = isExternalNetwork;
171     return this;
172   }
173
174   /**
175    * Get isExternalNetwork
176    * @return isExternalNetwork
177   **/
178   @ApiModelProperty(value = "")
179
180
181   public Boolean isIsExternalNetwork() {
182     return isExternalNetwork;
183   }
184
185   public void setIsExternalNetwork(Boolean isExternalNetwork) {
186     this.isExternalNetwork = isExternalNetwork;
187   }
188
189   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation isSharedNetwork(Boolean isSharedNetwork) {
190     this.isSharedNetwork = isSharedNetwork;
191     return this;
192   }
193
194   /**
195    * Get isSharedNetwork
196    * @return isSharedNetwork
197   **/
198   @ApiModelProperty(value = "")
199
200
201   public Boolean isIsSharedNetwork() {
202     return isSharedNetwork;
203   }
204
205   public void setIsSharedNetwork(Boolean isSharedNetwork) {
206     this.isSharedNetwork = isSharedNetwork;
207   }
208
209   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation isProviderNetwork(Boolean isProviderNetwork) {
210     this.isProviderNetwork = isProviderNetwork;
211     return this;
212   }
213
214   /**
215    * Get isProviderNetwork
216    * @return isProviderNetwork
217   **/
218   @ApiModelProperty(value = "")
219
220
221   public Boolean isIsProviderNetwork() {
222     return isProviderNetwork;
223   }
224
225   public void setIsProviderNetwork(Boolean isProviderNetwork) {
226     this.isProviderNetwork = isProviderNetwork;
227   }
228
229   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation routeTableReference(List<GenericResourceApiRoutetablereferenceRouteTableReference> routeTableReference) {
230     this.routeTableReference = routeTableReference;
231     return this;
232   }
233
234   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addRouteTableReferenceItem(GenericResourceApiRoutetablereferenceRouteTableReference routeTableReferenceItem) {
235     if (this.routeTableReference == null) {
236       this.routeTableReference = new ArrayList<>();
237     }
238     this.routeTableReference.add(routeTableReferenceItem);
239     return this;
240   }
241
242   /**
243    * Get routeTableReference
244    * @return routeTableReference
245   **/
246   @ApiModelProperty(value = "")
247
248   @Valid
249
250   public List<GenericResourceApiRoutetablereferenceRouteTableReference> getRouteTableReference() {
251     return routeTableReference;
252   }
253
254   public void setRouteTableReference(List<GenericResourceApiRoutetablereferenceRouteTableReference> routeTableReference) {
255     this.routeTableReference = routeTableReference;
256   }
257
258   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation subnets(List<GenericResourceApiSubnetsSubnets> subnets) {
259     this.subnets = subnets;
260     return this;
261   }
262
263   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addSubnetsItem(GenericResourceApiSubnetsSubnets subnetsItem) {
264     if (this.subnets == null) {
265       this.subnets = new ArrayList<>();
266     }
267     this.subnets.add(subnetsItem);
268     return this;
269   }
270
271   /**
272    * Get subnets
273    * @return subnets
274   **/
275   @ApiModelProperty(value = "")
276
277   @Valid
278
279   public List<GenericResourceApiSubnetsSubnets> getSubnets() {
280     return subnets;
281   }
282
283   public void setSubnets(List<GenericResourceApiSubnetsSubnets> subnets) {
284     this.subnets = subnets;
285   }
286
287   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation vpnBindings(List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings) {
288     this.vpnBindings = vpnBindings;
289     return this;
290   }
291
292   public GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation addVpnBindingsItem(GenericResourceApiVpnbindingsVpnBindings vpnBindingsItem) {
293     if (this.vpnBindings == null) {
294       this.vpnBindings = new ArrayList<>();
295     }
296     this.vpnBindings.add(vpnBindingsItem);
297     return this;
298   }
299
300   /**
301    * Get vpnBindings
302    * @return vpnBindings
303   **/
304   @ApiModelProperty(value = "")
305
306   @Valid
307
308   public List<GenericResourceApiVpnbindingsVpnBindings> getVpnBindings() {
309     return vpnBindings;
310   }
311
312   public void setVpnBindings(List<GenericResourceApiVpnbindingsVpnBindings> vpnBindings) {
313     this.vpnBindings = vpnBindings;
314   }
315
316
317   @Override
318   public boolean equals(java.lang.Object o) {
319     if (this == o) {
320       return true;
321     }
322     if (o == null || getClass() != o.getClass()) {
323       return false;
324     }
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);
336   }
337
338   @Override
339   public int hashCode() {
340     return Objects.hash(hostRoutes, networkPolicy, networkTopologyIdentifierStructure, physicalNetworkName, isExternalNetwork, isSharedNetwork, isProviderNetwork, routeTableReference, subnets, vpnBindings);
341   }
342
343   @Override
344   public String toString() {
345     StringBuilder sb = new StringBuilder();
346     sb.append("class GenericResourceApiPreloadnetworktopologyinformationPreloadNetworkTopologyInformation {\n");
347     
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");
358     sb.append("}");
359     return sb.toString();
360   }
361
362   /**
363    * Convert the given object to string with each line indented by 4 spaces
364    * (except the first line).
365    */
366   private String toIndentedString(java.lang.Object o) {
367     if (o == null) {
368       return "null";
369     }
370     return o.toString().replace("\n", "\n    ");
371   }
372 }
373