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.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.*;
21 * GenericResourceApiContrailroutetopologyContrailRouteTopology
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;
30 @JsonProperty("contrail-route-assignments")
31 private GenericResourceApiContrailrouteassignmentsContrailRouteAssignments contrailRouteAssignments = null;
33 @JsonProperty("onap-model-information")
34 private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null;
36 @JsonProperty("contrail-route-parameters")
37 private GenericResourceApiParam contrailRouteParameters = null;
39 public GenericResourceApiContrailroutetopologyContrailRouteTopology allottedResourceIdentifiers(GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers allottedResourceIdentifiers) {
40 this.allottedResourceIdentifiers = allottedResourceIdentifiers;
45 * Get allottedResourceIdentifiers
46 * @return allottedResourceIdentifiers
48 @ApiModelProperty(value = "")
52 public GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers getAllottedResourceIdentifiers() {
53 return allottedResourceIdentifiers;
56 public void setAllottedResourceIdentifiers(GenericResourceApiAllottedresourceidentifiersAllottedResourceIdentifiers allottedResourceIdentifiers) {
57 this.allottedResourceIdentifiers = allottedResourceIdentifiers;
60 public GenericResourceApiContrailroutetopologyContrailRouteTopology contrailRouteAssignments(GenericResourceApiContrailrouteassignmentsContrailRouteAssignments contrailRouteAssignments) {
61 this.contrailRouteAssignments = contrailRouteAssignments;
66 * Get contrailRouteAssignments
67 * @return contrailRouteAssignments
69 @ApiModelProperty(value = "")
73 public GenericResourceApiContrailrouteassignmentsContrailRouteAssignments getContrailRouteAssignments() {
74 return contrailRouteAssignments;
77 public void setContrailRouteAssignments(GenericResourceApiContrailrouteassignmentsContrailRouteAssignments contrailRouteAssignments) {
78 this.contrailRouteAssignments = contrailRouteAssignments;
81 public GenericResourceApiContrailroutetopologyContrailRouteTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
82 this.onapModelInformation = onapModelInformation;
87 * Get onapModelInformation
88 * @return onapModelInformation
90 @ApiModelProperty(value = "")
94 public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() {
95 return onapModelInformation;
98 public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
99 this.onapModelInformation = onapModelInformation;
102 public GenericResourceApiContrailroutetopologyContrailRouteTopology contrailRouteParameters(GenericResourceApiParam contrailRouteParameters) {
103 this.contrailRouteParameters = contrailRouteParameters;
108 * Get contrailRouteParameters
109 * @return contrailRouteParameters
111 @ApiModelProperty(value = "")
115 public GenericResourceApiParam getContrailRouteParameters() {
116 return contrailRouteParameters;
119 public void setContrailRouteParameters(GenericResourceApiParam contrailRouteParameters) {
120 this.contrailRouteParameters = contrailRouteParameters;
125 public boolean equals(java.lang.Object o) {
129 if (o == null || getClass() != o.getClass()) {
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);
140 public int hashCode() {
141 return Objects.hash(allottedResourceIdentifiers, contrailRouteAssignments, onapModelInformation, contrailRouteParameters);
145 public String toString() {
146 StringBuilder sb = new StringBuilder();
147 sb.append("class GenericResourceApiContrailroutetopologyContrailRouteTopology {\n");
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");
154 return sb.toString();
158 * Convert the given object to string with each line indented by 4 spaces
159 * (except the first line).
161 private String toIndentedString(java.lang.Object o) {
165 return o.toString().replace("\n", "\n ");