8b6d221874fce9f69d2a2aae1fd5a29149fd7fec
[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.GenericResourceApiOnapModelInformation;
10 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapmodelinformationOnapModelInformation;
11 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiParam;
12 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiRegionIdentifier;
13 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfResourceAssignments;
14 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfTopologyIdentifierStructure;
15 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnfresourceassignmentsVnfResourceAssignments;
16 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure;
17 import org.springframework.validation.annotation.Validated;
18 import javax.validation.Valid;
19 import javax.validation.constraints.*;
20
21 /**
22  * GenericResourceApiVnftopologyVnfTopology
23  */
24 @Validated
25 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00")
26 @JsonRootName("vnf-topology")
27 public class GenericResourceApiVnftopologyVnfTopology   {
28   @JsonProperty("onap-model-information")
29   private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null;
30
31   @JsonProperty("aic-clli")
32   private String aicClli = null;
33
34   @JsonProperty("aic-cloud-region")
35   private String aicCloudRegion = null;
36
37   @JsonProperty("cloud-owner")
38   private String cloudOwner = null;
39
40   @JsonProperty("tenant")
41   private String tenant = null;
42
43   @JsonProperty("vnf-resource-assignments")
44   private GenericResourceApiVnfresourceassignmentsVnfResourceAssignments vnfResourceAssignments = null;
45
46   @JsonProperty("vnf-topology-identifier-structure")
47   private GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure vnfTopologyIdentifierStructure = null;
48
49   @JsonProperty("vnf-parameters-data")
50   private GenericResourceApiParam vnfParametersData = null;
51
52   @JsonProperty("sdnc-generated-cloud-resources")
53   private Boolean sdncGeneratedCloudResources = null;
54
55   public GenericResourceApiVnftopologyVnfTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
56     this.onapModelInformation = onapModelInformation;
57     return this;
58   }
59
60   /**
61    * Get onapModelInformation
62    * @return onapModelInformation
63   **/
64   @ApiModelProperty(value = "")
65
66   @Valid
67
68   public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() {
69     return onapModelInformation;
70   }
71
72   public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
73     this.onapModelInformation = onapModelInformation;
74   }
75
76   public GenericResourceApiVnftopologyVnfTopology aicClli(String aicClli) {
77     this.aicClli = aicClli;
78     return this;
79   }
80
81   /**
82    * Not expected to be used
83    * @return aicClli
84   **/
85   @ApiModelProperty(value = "Not expected to be used")
86
87
88   public String getAicClli() {
89     return aicClli;
90   }
91
92   public void setAicClli(String aicClli) {
93     this.aicClli = aicClli;
94   }
95
96   public GenericResourceApiVnftopologyVnfTopology aicCloudRegion(String aicCloudRegion) {
97     this.aicCloudRegion = aicCloudRegion;
98     return this;
99   }
100
101   /**
102    * The AIC cloud region which maps to contrail versions
103    * @return aicCloudRegion
104   **/
105   @ApiModelProperty(value = "The AIC cloud region which maps to contrail versions")
106
107
108   public String getAicCloudRegion() {
109     return aicCloudRegion;
110   }
111
112   public void setAicCloudRegion(String aicCloudRegion) {
113     this.aicCloudRegion = aicCloudRegion;
114   }
115
116   public GenericResourceApiVnftopologyVnfTopology cloudOwner(String cloudOwner) {
117     this.cloudOwner = cloudOwner;
118     return this;
119   }
120
121   /**
122    * Get cloudOwner
123    * @return cloudOwner
124   **/
125   @ApiModelProperty(value = "")
126
127
128   public String getCloudOwner() {
129     return cloudOwner;
130   }
131
132   public void setCloudOwner(String cloudOwner) {
133     this.cloudOwner = cloudOwner;
134   }
135
136   public GenericResourceApiVnftopologyVnfTopology tenant(String tenant) {
137     this.tenant = tenant;
138     return this;
139   }
140
141   /**
142    * Get tenant
143    * @return tenant
144   **/
145   @ApiModelProperty(value = "")
146
147
148   public String getTenant() {
149     return tenant;
150   }
151
152   public void setTenant(String tenant) {
153     this.tenant = tenant;
154   }
155
156   public GenericResourceApiVnftopologyVnfTopology vnfResourceAssignments(GenericResourceApiVnfresourceassignmentsVnfResourceAssignments vnfResourceAssignments) {
157     this.vnfResourceAssignments = vnfResourceAssignments;
158     return this;
159   }
160
161   /**
162    * Get vnfResourceAssignments
163    * @return vnfResourceAssignments
164   **/
165   @ApiModelProperty(value = "")
166
167   @Valid
168
169   public GenericResourceApiVnfresourceassignmentsVnfResourceAssignments getVnfResourceAssignments() {
170     return vnfResourceAssignments;
171   }
172
173   public void setVnfResourceAssignments(GenericResourceApiVnfresourceassignmentsVnfResourceAssignments vnfResourceAssignments) {
174     this.vnfResourceAssignments = vnfResourceAssignments;
175   }
176
177   public GenericResourceApiVnftopologyVnfTopology vnfTopologyIdentifierStructure(GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure vnfTopologyIdentifierStructure) {
178     this.vnfTopologyIdentifierStructure = vnfTopologyIdentifierStructure;
179     return this;
180   }
181
182   /**
183    * Get vnfTopologyIdentifierStructure
184    * @return vnfTopologyIdentifierStructure
185   **/
186   @ApiModelProperty(value = "")
187
188   @Valid
189
190   public GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure getVnfTopologyIdentifierStructure() {
191     return vnfTopologyIdentifierStructure;
192   }
193
194   public void setVnfTopologyIdentifierStructure(GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure vnfTopologyIdentifierStructure) {
195     this.vnfTopologyIdentifierStructure = vnfTopologyIdentifierStructure;
196   }
197
198   public GenericResourceApiVnftopologyVnfTopology vnfParametersData(GenericResourceApiParam vnfParametersData) {
199     this.vnfParametersData = vnfParametersData;
200     return this;
201   }
202
203   /**
204    * Get vnfParametersData
205    * @return vnfParametersData
206   **/
207   @ApiModelProperty(value = "")
208
209   @Valid
210
211   public GenericResourceApiParam getVnfParametersData() {
212     return vnfParametersData;
213   }
214
215   public void setVnfParametersData(GenericResourceApiParam vnfParametersData) {
216     this.vnfParametersData = vnfParametersData;
217   }
218
219   public GenericResourceApiVnftopologyVnfTopology sdncGeneratedCloudResources(Boolean sdncGeneratedCloudResources) {
220     this.sdncGeneratedCloudResources = sdncGeneratedCloudResources;
221     return this;
222   }
223
224   /**
225    * Indicate if source is sdnc generated cloud param. When true, the parameters are literal HEAT template parameter names;When false, the parameters need to be converted to HEAT format
226    * @return sdncGeneratedCloudResources
227   **/
228   @ApiModelProperty(value = "Indicate if source is sdnc generated cloud param. When true, the parameters are literal HEAT template parameter names;When false, the parameters need to be converted to HEAT format")
229
230
231   public Boolean isSdncGeneratedCloudResources() {
232     return sdncGeneratedCloudResources;
233   }
234
235   public void setSdncGeneratedCloudResources(Boolean sdncGeneratedCloudResources) {
236     this.sdncGeneratedCloudResources = sdncGeneratedCloudResources;
237   }
238
239
240   @Override
241   public boolean equals(java.lang.Object o) {
242     if (this == o) {
243       return true;
244     }
245     if (o == null || getClass() != o.getClass()) {
246       return false;
247     }
248     GenericResourceApiVnftopologyVnfTopology genericResourceApiVnftopologyVnfTopology = (GenericResourceApiVnftopologyVnfTopology) o;
249     return Objects.equals(this.onapModelInformation, genericResourceApiVnftopologyVnfTopology.onapModelInformation) &&
250         Objects.equals(this.aicClli, genericResourceApiVnftopologyVnfTopology.aicClli) &&
251         Objects.equals(this.aicCloudRegion, genericResourceApiVnftopologyVnfTopology.aicCloudRegion) &&
252         Objects.equals(this.cloudOwner, genericResourceApiVnftopologyVnfTopology.cloudOwner) &&
253         Objects.equals(this.tenant, genericResourceApiVnftopologyVnfTopology.tenant) &&
254         Objects.equals(this.vnfResourceAssignments, genericResourceApiVnftopologyVnfTopology.vnfResourceAssignments) &&
255         Objects.equals(this.vnfTopologyIdentifierStructure, genericResourceApiVnftopologyVnfTopology.vnfTopologyIdentifierStructure) &&
256         Objects.equals(this.vnfParametersData, genericResourceApiVnftopologyVnfTopology.vnfParametersData) &&
257         Objects.equals(this.sdncGeneratedCloudResources, genericResourceApiVnftopologyVnfTopology.sdncGeneratedCloudResources);
258   }
259
260   @Override
261   public int hashCode() {
262     return Objects.hash(onapModelInformation, aicClli, aicCloudRegion, cloudOwner, tenant, vnfResourceAssignments, vnfTopologyIdentifierStructure, vnfParametersData, sdncGeneratedCloudResources);
263   }
264
265   @Override
266   public String toString() {
267     StringBuilder sb = new StringBuilder();
268     sb.append("class GenericResourceApiVnftopologyVnfTopology {\n");
269     
270     sb.append("    onapModelInformation: ").append(toIndentedString(onapModelInformation)).append("\n");
271     sb.append("    aicClli: ").append(toIndentedString(aicClli)).append("\n");
272     sb.append("    aicCloudRegion: ").append(toIndentedString(aicCloudRegion)).append("\n");
273     sb.append("    cloudOwner: ").append(toIndentedString(cloudOwner)).append("\n");
274     sb.append("    tenant: ").append(toIndentedString(tenant)).append("\n");
275     sb.append("    vnfResourceAssignments: ").append(toIndentedString(vnfResourceAssignments)).append("\n");
276     sb.append("    vnfTopologyIdentifierStructure: ").append(toIndentedString(vnfTopologyIdentifierStructure)).append("\n");
277     sb.append("    vnfParametersData: ").append(toIndentedString(vnfParametersData)).append("\n");
278     sb.append("    sdncGeneratedCloudResources: ").append(toIndentedString(sdncGeneratedCloudResources)).append("\n");
279     sb.append("}");
280     return sb.toString();
281   }
282
283   /**
284    * Convert the given object to string with each line indented by 4 spaces
285    * (except the first line).
286    */
287   private String toIndentedString(java.lang.Object o) {
288     if (o == null) {
289       return "null";
290     }
291     return o.toString().replace("\n", "\n    ");
292   }
293 }
294