1a4a64f52bb05f583b515fd24d5f2e8a5af9625a
[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.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.*;
21
22 /**
23  * GenericResourceApiServicetopologyServiceTopology
24  */
25 @Validated
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;
31
32   @JsonProperty("service-assignments")
33   private GenericResourceApiServiceassignmentsServiceAssignments serviceAssignments = null;
34
35   @JsonProperty("service-parameters")
36   private GenericResourceApiServiceparametersServiceParameters serviceParameters = null;
37
38   @JsonProperty("service-topology-identifier")
39   private GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier serviceTopologyIdentifier = null;
40
41   public GenericResourceApiServicetopologyServiceTopology onapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
42     this.onapModelInformation = onapModelInformation;
43     return this;
44   }
45
46   /**
47    * Get onapModelInformation
48    * @return onapModelInformation
49   **/
50   @ApiModelProperty(value = "")
51
52   @Valid
53
54   public GenericResourceApiOnapmodelinformationOnapModelInformation getOnapModelInformation() {
55     return onapModelInformation;
56   }
57
58   public void setOnapModelInformation(GenericResourceApiOnapmodelinformationOnapModelInformation onapModelInformation) {
59     this.onapModelInformation = onapModelInformation;
60   }
61
62   public GenericResourceApiServicetopologyServiceTopology serviceAssignments(GenericResourceApiServiceassignmentsServiceAssignments serviceAssignments) {
63     this.serviceAssignments = serviceAssignments;
64     return this;
65   }
66
67   /**
68    * Get serviceAssignments
69    * @return serviceAssignments
70   **/
71   @ApiModelProperty(value = "")
72
73   @Valid
74
75   public GenericResourceApiServiceassignmentsServiceAssignments getServiceAssignments() {
76     return serviceAssignments;
77   }
78
79   public void setServiceAssignments(GenericResourceApiServiceassignmentsServiceAssignments serviceAssignments) {
80     this.serviceAssignments = serviceAssignments;
81   }
82
83   public GenericResourceApiServicetopologyServiceTopology serviceParameters(GenericResourceApiServiceparametersServiceParameters serviceParameters) {
84     this.serviceParameters = serviceParameters;
85     return this;
86   }
87
88   /**
89    * Get serviceParameters
90    * @return serviceParameters
91   **/
92   @ApiModelProperty(value = "")
93
94   @Valid
95
96   public GenericResourceApiServiceparametersServiceParameters getServiceParameters() {
97     return serviceParameters;
98   }
99
100   public void setServiceParameters(GenericResourceApiServiceparametersServiceParameters serviceParameters) {
101     this.serviceParameters = serviceParameters;
102   }
103
104   public GenericResourceApiServicetopologyServiceTopology serviceTopologyIdentifier(GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier serviceTopologyIdentifier) {
105     this.serviceTopologyIdentifier = serviceTopologyIdentifier;
106     return this;
107   }
108
109   /**
110    * Get serviceTopologyIdentifier
111    * @return serviceTopologyIdentifier
112   **/
113   @ApiModelProperty(value = "")
114
115   @Valid
116
117   public GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier getServiceTopologyIdentifier() {
118     return serviceTopologyIdentifier;
119   }
120
121   public void setServiceTopologyIdentifier(GenericResourceApiServicetopologyidentifierServiceTopologyIdentifier serviceTopologyIdentifier) {
122     this.serviceTopologyIdentifier = serviceTopologyIdentifier;
123   }
124
125
126   @Override
127   public boolean equals(java.lang.Object o) {
128     if (this == o) {
129       return true;
130     }
131     if (o == null || getClass() != o.getClass()) {
132       return false;
133     }
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);
139   }
140
141   @Override
142   public int hashCode() {
143     return Objects.hash(onapModelInformation, serviceAssignments, serviceParameters, serviceTopologyIdentifier);
144   }
145
146   @Override
147   public String toString() {
148     StringBuilder sb = new StringBuilder();
149     sb.append("class GenericResourceApiServicetopologyServiceTopology {\n");
150     
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");
155     sb.append("}");
156     return sb.toString();
157   }
158
159   /**
160    * Convert the given object to string with each line indented by 4 spaces
161    * (except the first line).
162    */
163   private String toIndentedString(java.lang.Object o) {
164     if (o == null) {
165       return "null";
166     }
167     return o.toString().replace("\n", "\n    ");
168   }
169 }
170