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.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.*;
22 * GenericResourceApiVnftopologyVnfTopology
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;
31 @JsonProperty("aic-clli")
32 private String aicClli = null;
34 @JsonProperty("aic-cloud-region")
35 private String aicCloudRegion = null;
37 @JsonProperty("cloud-owner")
38 private String cloudOwner = null;
40 @JsonProperty("tenant")
41 private String tenant = null;
43 @JsonProperty("vnf-resource-assignments")
44 private GenericResourceApiVnfresourceassignmentsVnfResourceAssignments vnfResourceAssignments = null;
46 @JsonProperty("vnf-topology-identifier-structure")
47 private GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure vnfTopologyIdentifierStructure = null;
49 @JsonProperty("vnf-parameters-data")
50 private GenericResourceApiParam vnfParametersData = null;
52 @JsonProperty("sdnc-generated-cloud-resources")
53 private Boolean sdncGeneratedCloudResources = null;
55 public GenericResourceApiVnftopologyVnfTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
56 this.onapModelInformation = onapModelInformation;
61 * Get onapModelInformation
62 * @return onapModelInformation
64 @ApiModelProperty(value = "")
68 public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() {
69 return onapModelInformation;
72 public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
73 this.onapModelInformation = onapModelInformation;
76 public GenericResourceApiVnftopologyVnfTopology aicClli(String aicClli) {
77 this.aicClli = aicClli;
82 * Not expected to be used
85 @ApiModelProperty(value = "Not expected to be used")
88 public String getAicClli() {
92 public void setAicClli(String aicClli) {
93 this.aicClli = aicClli;
96 public GenericResourceApiVnftopologyVnfTopology aicCloudRegion(String aicCloudRegion) {
97 this.aicCloudRegion = aicCloudRegion;
102 * The AIC cloud region which maps to contrail versions
103 * @return aicCloudRegion
105 @ApiModelProperty(value = "The AIC cloud region which maps to contrail versions")
108 public String getAicCloudRegion() {
109 return aicCloudRegion;
112 public void setAicCloudRegion(String aicCloudRegion) {
113 this.aicCloudRegion = aicCloudRegion;
116 public GenericResourceApiVnftopologyVnfTopology cloudOwner(String cloudOwner) {
117 this.cloudOwner = cloudOwner;
125 @ApiModelProperty(value = "")
128 public String getCloudOwner() {
132 public void setCloudOwner(String cloudOwner) {
133 this.cloudOwner = cloudOwner;
136 public GenericResourceApiVnftopologyVnfTopology tenant(String tenant) {
137 this.tenant = tenant;
145 @ApiModelProperty(value = "")
148 public String getTenant() {
152 public void setTenant(String tenant) {
153 this.tenant = tenant;
156 public GenericResourceApiVnftopologyVnfTopology vnfResourceAssignments(GenericResourceApiVnfresourceassignmentsVnfResourceAssignments vnfResourceAssignments) {
157 this.vnfResourceAssignments = vnfResourceAssignments;
162 * Get vnfResourceAssignments
163 * @return vnfResourceAssignments
165 @ApiModelProperty(value = "")
169 public GenericResourceApiVnfresourceassignmentsVnfResourceAssignments getVnfResourceAssignments() {
170 return vnfResourceAssignments;
173 public void setVnfResourceAssignments(GenericResourceApiVnfresourceassignmentsVnfResourceAssignments vnfResourceAssignments) {
174 this.vnfResourceAssignments = vnfResourceAssignments;
177 public GenericResourceApiVnftopologyVnfTopology vnfTopologyIdentifierStructure(GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure vnfTopologyIdentifierStructure) {
178 this.vnfTopologyIdentifierStructure = vnfTopologyIdentifierStructure;
183 * Get vnfTopologyIdentifierStructure
184 * @return vnfTopologyIdentifierStructure
186 @ApiModelProperty(value = "")
190 public GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure getVnfTopologyIdentifierStructure() {
191 return vnfTopologyIdentifierStructure;
194 public void setVnfTopologyIdentifierStructure(GenericResourceApiVnftopologyidentifierstructureVnfTopologyIdentifierStructure vnfTopologyIdentifierStructure) {
195 this.vnfTopologyIdentifierStructure = vnfTopologyIdentifierStructure;
198 public GenericResourceApiVnftopologyVnfTopology vnfParametersData(GenericResourceApiParam vnfParametersData) {
199 this.vnfParametersData = vnfParametersData;
204 * Get vnfParametersData
205 * @return vnfParametersData
207 @ApiModelProperty(value = "")
211 public GenericResourceApiParam getVnfParametersData() {
212 return vnfParametersData;
215 public void setVnfParametersData(GenericResourceApiParam vnfParametersData) {
216 this.vnfParametersData = vnfParametersData;
219 public GenericResourceApiVnftopologyVnfTopology sdncGeneratedCloudResources(Boolean sdncGeneratedCloudResources) {
220 this.sdncGeneratedCloudResources = sdncGeneratedCloudResources;
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
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")
231 public Boolean isSdncGeneratedCloudResources() {
232 return sdncGeneratedCloudResources;
235 public void setSdncGeneratedCloudResources(Boolean sdncGeneratedCloudResources) {
236 this.sdncGeneratedCloudResources = sdncGeneratedCloudResources;
241 public boolean equals(java.lang.Object o) {
245 if (o == null || getClass() != o.getClass()) {
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);
261 public int hashCode() {
262 return Objects.hash(onapModelInformation, aicClli, aicCloudRegion, cloudOwner, tenant, vnfResourceAssignments, vnfTopologyIdentifierStructure, vnfParametersData, sdncGeneratedCloudResources);
266 public String toString() {
267 StringBuilder sb = new StringBuilder();
268 sb.append("class GenericResourceApiVnftopologyVnfTopology {\n");
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");
280 return sb.toString();
284 * Convert the given object to string with each line indented by 4 spaces
285 * (except the first line).
287 private String toIndentedString(java.lang.Object o) {
291 return o.toString().replace("\n", "\n ");