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.google.gson.annotations.JsonAdapter;
7 import com.fasterxml.jackson.annotation.JsonCreator;
8 import io.swagger.annotations.ApiModel;
9 import io.swagger.annotations.ApiModelProperty;
10 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapModelInformation;
11 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiOnapmodelinformationOnapModelInformation;
12 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceAssignments;
13 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceParameters;
14 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceTopologyIdentifier;
15 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceassignmentsServiceAssignments;
16 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServiceparametersServiceParameters;
17 import org.onap.sdnc.apps.ms.gra.swagger.model.GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier;
18 import org.springframework.validation.annotation.Validated;
19 import javax.validation.Valid;
20 import javax.validation.constraints.*;
23 * GenericResourceApiServicetopologyServiceTopology
26 @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-07-13T13:26:44.236-04:00")
27 @JsonRootName("service-topology")
28 public class GenericResourceApiServicetopologyServiceTopology {
29 @JsonProperty("onap-model-information")
30 private GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation = null;
32 @JsonProperty("service-assignments")
33 private GenericResourceApiServiceassignmentsServiceAssignments serviceAssignments = null;
35 @JsonProperty("service-parameters")
36 private GenericResourceApiServiceparametersServiceParameters serviceParameters = null;
38 @JsonProperty("service-topology-identifier")
39 private GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier serviceTopologyIdentifier = null;
41 public GenericResourceApiServicetopologyServiceTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
42 this.onapModelInformation = onapModelInformation;
47 * Get onapModelInformation
48 * @return onapModelInformation
50 @ApiModelProperty(value = "")
54 public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() {
55 return onapModelInformation;
58 public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
59 this.onapModelInformation = onapModelInformation;
62 public GenericResourceApiServicetopologyServiceTopology serviceAssignments(GenericResourceApiServiceassignmentsServiceAssignments serviceAssignments) {
63 this.serviceAssignments = serviceAssignments;
68 * Get serviceAssignments
69 * @return serviceAssignments
71 @ApiModelProperty(value = "")
75 public GenericResourceApiServiceassignmentsServiceAssignments getServiceAssignments() {
76 return serviceAssignments;
79 public void setServiceAssignments(GenericResourceApiServiceassignmentsServiceAssignments serviceAssignments) {
80 this.serviceAssignments = serviceAssignments;
83 public GenericResourceApiServicetopologyServiceTopology serviceParameters(GenericResourceApiServiceparametersServiceParameters serviceParameters) {
84 this.serviceParameters = serviceParameters;
89 * Get serviceParameters
90 * @return serviceParameters
92 @ApiModelProperty(value = "")
96 public GenericResourceApiServiceparametersServiceParameters getServiceParameters() {
97 return serviceParameters;
100 public void setServiceParameters(GenericResourceApiServiceparametersServiceParameters serviceParameters) {
101 this.serviceParameters = serviceParameters;
104 public GenericResourceApiServicetopologyServiceTopology serviceTopologyIdentifier(GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier serviceTopologyIdentifier) {
105 this.serviceTopologyIdentifier = serviceTopologyIdentifier;
110 * Get serviceTopologyIdentifier
111 * @return serviceTopologyIdentifier
113 @ApiModelProperty(value = "")
117 public GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier getServiceTopologyIdentifier() {
118 return serviceTopologyIdentifier;
121 public void setServiceTopologyIdentifier(GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier serviceTopologyIdentifier) {
122 this.serviceTopologyIdentifier = serviceTopologyIdentifier;
127 public boolean equals(java.lang.Object o) {
131 if (o == null || getClass() != o.getClass()) {
134 GenericResourceApiServicetopologyServiceTopology genericResourceApiServicetopologyServiceTopology = (GenericResourceApiServicetopologyServiceTopology) o;
135 return Objects.equals(this.onapModelInformation, genericResourceApiServicetopologyServiceTopology.onapModelInformation) &&
136 Objects.equals(this.serviceAssignments, genericResourceApiServicetopologyServiceTopology.serviceAssignments) &&
137 Objects.equals(this.serviceParameters, genericResourceApiServicetopologyServiceTopology.serviceParameters) &&
138 Objects.equals(this.serviceTopologyIdentifier, genericResourceApiServicetopologyServiceTopology.serviceTopologyIdentifier);
142 public int hashCode() {
143 return Objects.hash(onapModelInformation, serviceAssignments, serviceParameters, serviceTopologyIdentifier);
147 public String toString() {
148 StringBuilder sb = new StringBuilder();
149 sb.append("class GenericResourceApiServicetopologyServiceTopology {\n");
151 sb.append(" onapModelInformation: ").append(toIndentedString(onapModelInformation)).append("\n");
152 sb.append(" serviceAssignments: ").append(toIndentedString(serviceAssignments)).append("\n");
153 sb.append(" serviceParameters: ").append(toIndentedString(serviceParameters)).append("\n");
154 sb.append(" serviceTopologyIdentifier: ").append(toIndentedString(serviceTopologyIdentifier)).append("\n");
156 return sb.toString();
160 * Convert the given object to string with each line indented by 4 spaces
161 * (except the first line).
163 private String toIndentedString(java.lang.Object o) {
167 return o.toString().replace("\n", "\n ");