cefc4a5ca7630ca8360255e9aee4162834140d96
[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.GenericResourceApiAllottedResourceIdentifiers;
10 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers;
11 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiContrailRouteAssignments;
12 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiContrailrouteassignmentsContrailRouteAssignments;
13 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapModelInformation;
14 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapmodelinformationOnapModelInformation;
15 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiParam;
16 import org.springframework.validation.annotation.Validated;
17 import javax.validation.Valid;
18 import javax.validation.constraints.*;
19
20 /**
21  * GenericResourceApiContrailroutetopologyContrailRouteTopology
22  */
23 @Validated
24 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00")
25 @JsonRootName("contrail-route-topology")
26 public class GenericResourceApiContrailroutetopologyContrailRouteTopology   {
27   @JsonProperty("allotted-resource-identifiers")
28   private GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers allottedResourceIdentifiers = null;
29
30   @JsonProperty("contrail-route-assignments")
31   private GenericResourceApiContrailrouteassignmentsContrailRouteAssignments contrailRouteAssignments = null;
32
33   @JsonProperty("onap-model-information")
34   private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null;
35
36   @JsonProperty("contrail-route-parameters")
37   private GenericResourceApiParam contrailRouteParameters = null;
38
39   public GenericResourceApiContrailroutetopologyContrailRouteTopology allottedResourceIdentifiers(GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers allottedResourceIdentifiers) {
40     this.allottedResourceIdentifiers = allottedResourceIdentifiers;
41     return this;
42   }
43
44   /**
45    * Get allottedResourceIdentifiers
46    * @return allottedResourceIdentifiers
47   **/
48   @ApiModelProperty(value = "")
49
50   @Valid
51
52   public GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers getAllottedResourceIdentifiers() {
53     return allottedResourceIdentifiers;
54   }
55
56   public void setAllottedResourceIdentifiers(GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers allottedResourceIdentifiers) {
57     this.allottedResourceIdentifiers = allottedResourceIdentifiers;
58   }
59
60   public GenericResourceApiContrailroutetopologyContrailRouteTopology contrailRouteAssignments(GenericResourceApiContrailrouteassignmentsContrailRouteAssignments contrailRouteAssignments) {
61     this.contrailRouteAssignments = contrailRouteAssignments;
62     return this;
63   }
64
65   /**
66    * Get contrailRouteAssignments
67    * @return contrailRouteAssignments
68   **/
69   @ApiModelProperty(value = "")
70
71   @Valid
72
73   public GenericResourceApiContrailrouteassignmentsContrailRouteAssignments getContrailRouteAssignments() {
74     return contrailRouteAssignments;
75   }
76
77   public void setContrailRouteAssignments(GenericResourceApiContrailrouteassignmentsContrailRouteAssignments contrailRouteAssignments) {
78     this.contrailRouteAssignments = contrailRouteAssignments;
79   }
80
81   public GenericResourceApiContrailroutetopologyContrailRouteTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
82     this.onapModelInformation = onapModelInformation;
83     return this;
84   }
85
86   /**
87    * Get onapModelInformation
88    * @return onapModelInformation
89   **/
90   @ApiModelProperty(value = "")
91
92   @Valid
93
94   public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() {
95     return onapModelInformation;
96   }
97
98   public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
99     this.onapModelInformation = onapModelInformation;
100   }
101
102   public GenericResourceApiContrailroutetopologyContrailRouteTopology contrailRouteParameters(GenericResourceApiParam contrailRouteParameters) {
103     this.contrailRouteParameters = contrailRouteParameters;
104     return this;
105   }
106
107   /**
108    * Get contrailRouteParameters
109    * @return contrailRouteParameters
110   **/
111   @ApiModelProperty(value = "")
112
113   @Valid
114
115   public GenericResourceApiParam getContrailRouteParameters() {
116     return contrailRouteParameters;
117   }
118
119   public void setContrailRouteParameters(GenericResourceApiParam contrailRouteParameters) {
120     this.contrailRouteParameters = contrailRouteParameters;
121   }
122
123
124   @Override
125   public boolean equals(java.lang.Object o) {
126     if (this == o) {
127       return true;
128     }
129     if (o == null || getClass() != o.getClass()) {
130       return false;
131     }
132     GenericResourceApiContrailroutetopologyContrailRouteTopology genericResourceApiContrailroutetopologyContrailRouteTopology = (GenericResourceApiContrailroutetopologyContrailRouteTopology) o;
133     return Objects.equals(this.allottedResourceIdentifiers, genericResourceApiContrailroutetopologyContrailRouteTopology.allottedResourceIdentifiers) &&
134         Objects.equals(this.contrailRouteAssignments, genericResourceApiContrailroutetopologyContrailRouteTopology.contrailRouteAssignments) &&
135         Objects.equals(this.onapModelInformation, genericResourceApiContrailroutetopologyContrailRouteTopology.onapModelInformation) &&
136         Objects.equals(this.contrailRouteParameters, genericResourceApiContrailroutetopologyContrailRouteTopology.contrailRouteParameters);
137   }
138
139   @Override
140   public int hashCode() {
141     return Objects.hash(allottedResourceIdentifiers, contrailRouteAssignments, onapModelInformation, contrailRouteParameters);
142   }
143
144   @Override
145   public String toString() {
146     StringBuilder sb = new StringBuilder();
147     sb.append("class GenericResourceApiContrailroutetopologyContrailRouteTopology {\n");
148     
149     sb.append("    allottedResourceIdentifiers: ").append(toIndentedString(allottedResourceIdentifiers)).append("\n");
150     sb.append("    contrailRouteAssignments: ").append(toIndentedString(contrailRouteAssignments)).append("\n");
151     sb.append("    onapModelInformation: ").append(toIndentedString(onapModelInformation)).append("\n");
152     sb.append("    contrailRouteParameters: ").append(toIndentedString(contrailRouteParameters)).append("\n");
153     sb.append("}");
154     return sb.toString();
155   }
156
157   /**
158    * Convert the given object to string with each line indented by 4 spaces
159    * (except the first line).
160    */
161   private String toIndentedString(java.lang.Object o) {
162     if (o == null) {
163       return "null";
164     }
165     return o.toString().replace("\n", "\n    ");
166   }
167 }
168