1a80485cbe5c4ab2640641f5e3f5db1494e5a9c3
[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 org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRelatedNetwork;
10 import org.springframework.validation.annotation.Validated;
11 import javax.validation.Valid;
12 import javax.validation.constraints.*;
13
14 /**
15  * GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure
16  */
17 @Validated
18 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-23T12:02:01.518-04:00")
19 @JsonRootName("network-topology-identifier-structure")
20 public class GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure   {
21   @JsonProperty("related-networks")
22   private GenericResourceApiRelatedNetwork relatedNetworks = null;
23
24   @JsonProperty("network-role")
25   private String networkRole = null;
26
27   @JsonProperty("is-trunked")
28   private Boolean isTrunked = null;
29
30   @JsonProperty("network-technology")
31   private String networkTechnology = null;
32
33   @JsonProperty("network-id")
34   private String networkId = null;
35
36   @JsonProperty("eipam-v4-address-plan")
37   private String eipamV4AddressPlan = null;
38
39   @JsonProperty("network-instance-group-id")
40   private String networkInstanceGroupId = null;
41
42   @JsonProperty("network-name")
43   private String networkName = null;
44
45   @JsonProperty("segmentation-id")
46   private String segmentationId = null;
47
48   @JsonProperty("eipam-v6-address-plan")
49   private String eipamV6AddressPlan = null;
50
51   @JsonProperty("network-type")
52   private String networkType = null;
53
54   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure relatedNetworks(GenericResourceApiRelatedNetwork relatedNetworks) {
55     this.relatedNetworks = relatedNetworks;
56     return this;
57   }
58
59   /**
60    * Get relatedNetworks
61    * @return relatedNetworks
62   **/
63   @ApiModelProperty(value = "")
64
65   @Valid
66
67   public GenericResourceApiRelatedNetwork getRelatedNetworks() {
68     return relatedNetworks;
69   }
70
71   public void setRelatedNetworks(GenericResourceApiRelatedNetwork relatedNetworks) {
72     this.relatedNetworks = relatedNetworks;
73   }
74
75   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkRole(String networkRole) {
76     this.networkRole = networkRole;
77     return this;
78   }
79
80   /**
81    * Get networkRole
82    * @return networkRole
83   **/
84   @ApiModelProperty(value = "")
85
86
87   public String getNetworkRole() {
88     return networkRole;
89   }
90
91   public void setNetworkRole(String networkRole) {
92     this.networkRole = networkRole;
93   }
94
95   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure isTrunked(Boolean isTrunked) {
96     this.isTrunked = isTrunked;
97     return this;
98   }
99
100   /**
101    * Get isTrunked
102    * @return isTrunked
103   **/
104   @ApiModelProperty(value = "")
105
106
107   public Boolean isIsTrunked() {
108     return isTrunked;
109   }
110
111   public void setIsTrunked(Boolean isTrunked) {
112     this.isTrunked = isTrunked;
113   }
114
115   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTechnology(String networkTechnology) {
116     this.networkTechnology = networkTechnology;
117     return this;
118   }
119
120   /**
121    * Get networkTechnology
122    * @return networkTechnology
123   **/
124   @ApiModelProperty(value = "")
125
126
127   public String getNetworkTechnology() {
128     return networkTechnology;
129   }
130
131   public void setNetworkTechnology(String networkTechnology) {
132     this.networkTechnology = networkTechnology;
133   }
134
135   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkId(String networkId) {
136     this.networkId = networkId;
137     return this;
138   }
139
140   /**
141    * Get networkId
142    * @return networkId
143   **/
144   @ApiModelProperty(value = "")
145
146
147   public String getNetworkId() {
148     return networkId;
149   }
150
151   public void setNetworkId(String networkId) {
152     this.networkId = networkId;
153   }
154
155   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure eipamV4AddressPlan(String eipamV4AddressPlan) {
156     this.eipamV4AddressPlan = eipamV4AddressPlan;
157     return this;
158   }
159
160   /**
161    * Get eipamV4AddressPlan
162    * @return eipamV4AddressPlan
163   **/
164   @ApiModelProperty(value = "")
165
166
167   public String getEipamV4AddressPlan() {
168     return eipamV4AddressPlan;
169   }
170
171   public void setEipamV4AddressPlan(String eipamV4AddressPlan) {
172     this.eipamV4AddressPlan = eipamV4AddressPlan;
173   }
174
175   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkInstanceGroupId(String networkInstanceGroupId) {
176     this.networkInstanceGroupId = networkInstanceGroupId;
177     return this;
178   }
179
180   /**
181    * When network is part of network instance-Group-data & instance Group in A&AI
182    * @return networkInstanceGroupId
183   **/
184   @ApiModelProperty(value = "When network is part of network instance-Group-data & instance Group in A&AI")
185
186
187   public String getNetworkInstanceGroupId() {
188     return networkInstanceGroupId;
189   }
190
191   public void setNetworkInstanceGroupId(String networkInstanceGroupId) {
192     this.networkInstanceGroupId = networkInstanceGroupId;
193   }
194
195   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkName(String networkName) {
196     this.networkName = networkName;
197     return this;
198   }
199
200   /**
201    * Get networkName
202    * @return networkName
203   **/
204   @ApiModelProperty(value = "")
205
206
207   public String getNetworkName() {
208     return networkName;
209   }
210
211   public void setNetworkName(String networkName) {
212     this.networkName = networkName;
213   }
214
215   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure segmentationId(String segmentationId) {
216     this.segmentationId = segmentationId;
217     return this;
218   }
219
220   /**
221    * Get segmentationId
222    * @return segmentationId
223   **/
224   @ApiModelProperty(value = "")
225
226
227   public String getSegmentationId() {
228     return segmentationId;
229   }
230
231   public void setSegmentationId(String segmentationId) {
232     this.segmentationId = segmentationId;
233   }
234
235   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure eipamV6AddressPlan(String eipamV6AddressPlan) {
236     this.eipamV6AddressPlan = eipamV6AddressPlan;
237     return this;
238   }
239
240   /**
241    * Get eipamV6AddressPlan
242    * @return eipamV6AddressPlan
243   **/
244   @ApiModelProperty(value = "")
245
246
247   public String getEipamV6AddressPlan() {
248     return eipamV6AddressPlan;
249   }
250
251   public void setEipamV6AddressPlan(String eipamV6AddressPlan) {
252     this.eipamV6AddressPlan = eipamV6AddressPlan;
253   }
254
255   public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkType(String networkType) {
256     this.networkType = networkType;
257     return this;
258   }
259
260   /**
261    * Get networkType
262    * @return networkType
263   **/
264   @ApiModelProperty(value = "")
265
266
267   public String getNetworkType() {
268     return networkType;
269   }
270
271   public void setNetworkType(String networkType) {
272     this.networkType = networkType;
273   }
274
275
276   @Override
277   public boolean equals(java.lang.Object o) {
278     if (this == o) {
279       return true;
280     }
281     if (o == null || getClass() != o.getClass()) {
282       return false;
283     }
284     GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure = (GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure) o;
285     return Objects.equals(this.relatedNetworks, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.relatedNetworks) &&
286         Objects.equals(this.networkRole, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkRole) &&
287         Objects.equals(this.isTrunked, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.isTrunked) &&
288         Objects.equals(this.networkTechnology, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkTechnology) &&
289         Objects.equals(this.networkId, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkId) &&
290         Objects.equals(this.eipamV4AddressPlan, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.eipamV4AddressPlan) &&
291         Objects.equals(this.networkInstanceGroupId, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkInstanceGroupId) &&
292         Objects.equals(this.networkName, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkName) &&
293         Objects.equals(this.segmentationId, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.segmentationId) &&
294         Objects.equals(this.eipamV6AddressPlan, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.eipamV6AddressPlan) &&
295         Objects.equals(this.networkType, genericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure.networkType);
296   }
297
298   @Override
299   public int hashCode() {
300     return Objects.hash(relatedNetworks, networkRole, isTrunked, networkTechnology, networkId, eipamV4AddressPlan, networkInstanceGroupId, networkName, segmentationId, eipamV6AddressPlan, networkType);
301   }
302
303   @Override
304   public String toString() {
305     StringBuilder sb = new StringBuilder();
306     sb.append("class GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure {\n");
307     
308     sb.append("    relatedNetworks: ").append(toIndentedString(relatedNetworks)).append("\n");
309     sb.append("    networkRole: ").append(toIndentedString(networkRole)).append("\n");
310     sb.append("    isTrunked: ").append(toIndentedString(isTrunked)).append("\n");
311     sb.append("    networkTechnology: ").append(toIndentedString(networkTechnology)).append("\n");
312     sb.append("    networkId: ").append(toIndentedString(networkId)).append("\n");
313     sb.append("    eipamV4AddressPlan: ").append(toIndentedString(eipamV4AddressPlan)).append("\n");
314     sb.append("    networkInstanceGroupId: ").append(toIndentedString(networkInstanceGroupId)).append("\n");
315     sb.append("    networkName: ").append(toIndentedString(networkName)).append("\n");
316     sb.append("    segmentationId: ").append(toIndentedString(segmentationId)).append("\n");
317     sb.append("    eipamV6AddressPlan: ").append(toIndentedString(eipamV6AddressPlan)).append("\n");
318     sb.append("    networkType: ").append(toIndentedString(networkType)).append("\n");
319     sb.append("}");
320     return sb.toString();
321   }
322
323   /**
324    * Convert the given object to string with each line indented by 4 spaces
325    * (except the first line).
326    */
327   private String toIndentedString(java.lang.Object o) {
328     if (o == null) {
329       return "null";
330     }
331     return o.toString().replace("\n", "\n    ");
332   }
333 }
334