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 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.*;
15 * GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure
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;
24 @JsonProperty("network-role")
25 private String networkRole = null;
27 @JsonProperty("is-trunked")
28 private Boolean isTrunked = null;
30 @JsonProperty("network-technology")
31 private String networkTechnology = null;
33 @JsonProperty("network-id")
34 private String networkId = null;
36 @JsonProperty("eipam-v4-address-plan")
37 private String eipamV4AddressPlan = null;
39 @JsonProperty("network-instance-group-id")
40 private String networkInstanceGroupId = null;
42 @JsonProperty("network-name")
43 private String networkName = null;
45 @JsonProperty("segmentation-id")
46 private String segmentationId = null;
48 @JsonProperty("eipam-v6-address-plan")
49 private String eipamV6AddressPlan = null;
51 @JsonProperty("network-type")
52 private String networkType = null;
54 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure relatedNetworks(GenericResourceApiRelatedNetwork relatedNetworks) {
55 this.relatedNetworks = relatedNetworks;
61 * @return relatedNetworks
63 @ApiModelProperty(value = "")
67 public GenericResourceApiRelatedNetwork getRelatedNetworks() {
68 return relatedNetworks;
71 public void setRelatedNetworks(GenericResourceApiRelatedNetwork relatedNetworks) {
72 this.relatedNetworks = relatedNetworks;
75 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkRole(String networkRole) {
76 this.networkRole = networkRole;
84 @ApiModelProperty(value = "")
87 public String getNetworkRole() {
91 public void setNetworkRole(String networkRole) {
92 this.networkRole = networkRole;
95 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure isTrunked(Boolean isTrunked) {
96 this.isTrunked = isTrunked;
104 @ApiModelProperty(value = "")
107 public Boolean isIsTrunked() {
111 public void setIsTrunked(Boolean isTrunked) {
112 this.isTrunked = isTrunked;
115 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkTechnology(String networkTechnology) {
116 this.networkTechnology = networkTechnology;
121 * Get networkTechnology
122 * @return networkTechnology
124 @ApiModelProperty(value = "")
127 public String getNetworkTechnology() {
128 return networkTechnology;
131 public void setNetworkTechnology(String networkTechnology) {
132 this.networkTechnology = networkTechnology;
135 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkId(String networkId) {
136 this.networkId = networkId;
144 @ApiModelProperty(value = "")
147 public String getNetworkId() {
151 public void setNetworkId(String networkId) {
152 this.networkId = networkId;
155 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure eipamV4AddressPlan(String eipamV4AddressPlan) {
156 this.eipamV4AddressPlan = eipamV4AddressPlan;
161 * Get eipamV4AddressPlan
162 * @return eipamV4AddressPlan
164 @ApiModelProperty(value = "")
167 public String getEipamV4AddressPlan() {
168 return eipamV4AddressPlan;
171 public void setEipamV4AddressPlan(String eipamV4AddressPlan) {
172 this.eipamV4AddressPlan = eipamV4AddressPlan;
175 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkInstanceGroupId(String networkInstanceGroupId) {
176 this.networkInstanceGroupId = networkInstanceGroupId;
181 * When network is part of network instance-Group-data & instance Group in A&AI
182 * @return networkInstanceGroupId
184 @ApiModelProperty(value = "When network is part of network instance-Group-data & instance Group in A&AI")
187 public String getNetworkInstanceGroupId() {
188 return networkInstanceGroupId;
191 public void setNetworkInstanceGroupId(String networkInstanceGroupId) {
192 this.networkInstanceGroupId = networkInstanceGroupId;
195 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkName(String networkName) {
196 this.networkName = networkName;
202 * @return networkName
204 @ApiModelProperty(value = "")
207 public String getNetworkName() {
211 public void setNetworkName(String networkName) {
212 this.networkName = networkName;
215 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure segmentationId(String segmentationId) {
216 this.segmentationId = segmentationId;
222 * @return segmentationId
224 @ApiModelProperty(value = "")
227 public String getSegmentationId() {
228 return segmentationId;
231 public void setSegmentationId(String segmentationId) {
232 this.segmentationId = segmentationId;
235 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure eipamV6AddressPlan(String eipamV6AddressPlan) {
236 this.eipamV6AddressPlan = eipamV6AddressPlan;
241 * Get eipamV6AddressPlan
242 * @return eipamV6AddressPlan
244 @ApiModelProperty(value = "")
247 public String getEipamV6AddressPlan() {
248 return eipamV6AddressPlan;
251 public void setEipamV6AddressPlan(String eipamV6AddressPlan) {
252 this.eipamV6AddressPlan = eipamV6AddressPlan;
255 public GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure networkType(String networkType) {
256 this.networkType = networkType;
262 * @return networkType
264 @ApiModelProperty(value = "")
267 public String getNetworkType() {
271 public void setNetworkType(String networkType) {
272 this.networkType = networkType;
277 public boolean equals(java.lang.Object o) {
281 if (o == null || getClass() != o.getClass()) {
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);
299 public int hashCode() {
300 return Objects.hash(relatedNetworks, networkRole, isTrunked, networkTechnology, networkId, eipamV4AddressPlan, networkInstanceGroupId, networkName, segmentationId, eipamV6AddressPlan, networkType);
304 public String toString() {
305 StringBuilder sb = new StringBuilder();
306 sb.append("class GenericResourceApiNetworktopologyidentifierstructureNetworkTopologyIdentifierStructure {\n");
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");
320 return sb.toString();
324 * Convert the given object to string with each line indented by 4 spaces
325 * (except the first line).
327 private String toIndentedString(java.lang.Object o) {
331 return o.toString().replace("\n", "\n ");