aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/mso/model/ModelInfo.java
blob: 091a241dfe389a2f5a2c4dd61fbe2f564b22ed77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
package org.onap.vid.mso.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * fields describing the SDC entity being operated on by the request
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "modelCustomizationName",
    "modelCustomizationId",
    "modelInvariantId",
    "modelVersionId",
    "modelName",
    "modelNameVersionId",
    "modelType",
    "modelVersion"
})
public class ModelInfo {

    /**
     * reference to the customized set of parameters associated with a model in a given service context
     * 
     */
    @JsonProperty("modelCustomizationName")
    private String modelCustomizationName;
    /**
     * reference to the customized set of parameters associated with a model in a given service context
     * 
     */
    @JsonProperty("modelCustomizationId")
    private String modelCustomizationId;
    /**
     * Invariant UUID for the model name, irrespective of the version, as defined in SDC--authoritative
     * 
     */
    @JsonProperty("modelInvariantId")
    private String modelInvariantId;
    /**
     * Version id for version
     * 
     */
    @JsonProperty("modelVersionId")
    private String modelVersionId;
    /**
     * name of the model as defined in SDC--not authoritative
     * 
     */
    @JsonProperty("modelName")
    private String modelName;
    /**
     * UUID for the model name and version combination as defined in SDC--authoritative
     * 
     */
    @JsonProperty("modelNameVersionId")
    private String modelNameVersionId;
    /**
     * short description of the entity being operated on
     * (Required)
     * 
     */
    @JsonProperty("modelType")
    private String modelType;
    /**
     * the version of the model as defined in SDC--not authoritative
     * 
     */
    @JsonProperty("modelVersion")
    private String modelVersion;

    /**
     * reference to the customized set of parameters associated with a model in a given service context
     * 
     * @return
     *     The modelCustomizationName
     */
    @JsonProperty("modelCustomizationName")
    public String getModelCustomizationName() {
        return modelCustomizationName;
    }

    /**
     * reference to the customized set of parameters associated with a model in a given service context
     * 
     * @param modelCustomizationName
     *     The modelCustomizationName
     */
    @JsonProperty("modelCustomizationName")
    public void setModelCustomizationName(String modelCustomizationName) {
        this.modelCustomizationName = modelCustomizationName;
    }

    /**
     * reference to the customized set of parameters associated with a model in a given service context
     * 
     * @return
     *     The modelCustomizationId
     */
    @JsonProperty("modelCustomizationId")
    public String getModelCustomizationId() {
        return modelCustomizationId;
    }

    /**
     * reference to the customized set of parameters associated with a model in a given service context
     * 
     * @param modelCustomizationId
     *     The modelCustomizationId
     */
    @JsonProperty("modelCustomizationId")
    public void setModelCustomizationId(String modelCustomizationId) {
        this.modelCustomizationId = modelCustomizationId;
    }

    /**
     * Invariant UUID for the model name, irrespective of the version, as defined in SDC--authoritative
     * 
     * @return
     *     The modelInvariantId
     */
    @JsonProperty("modelInvariantId")
    public String getModelInvariantId() {
        return modelInvariantId;
    }

    /**
     * Invariant UUID for the model name, irrespective of the version, as defined in SDC--authoritative
     * 
     * @param modelInvariantId
     *     The modelInvariantId
     */
    @JsonProperty("modelInvariantId")
    public void setModelInvariantId(String modelInvariantId) {
        this.modelInvariantId = modelInvariantId;
    }

    /**
     * Version id for version
     * 
     * @return
     *     The modelVersionId
     */
    @JsonProperty("modelVersionId")
    public String getModelVersionId() {
        return modelVersionId;
    }

    /**
     * Version id for version
     * 
     * @param modelVersionId
     *     The modelVersionId
     */
    @JsonProperty("modelVersionId")
    public void setModelVersionId(String modelVersionId) {
        this.modelVersionId = modelVersionId;
    }

    /**
     * name of the model as defined in SDC--not authoritative
     * 
     * @return
     *     The modelName
     */
    @JsonProperty("modelName")
    public String getModelName() {
        return modelName;
    }

    /**
     * name of the model as defined in SDC--not authoritative
     * 
     * @param modelName
     *     The modelName
     */
    @JsonProperty("modelName")
    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    /**
     * UUID for the model name and version combination as defined in SDC--authoritative
     * 
     * @return
     *     The modelNameVersionId
     */
    @JsonProperty("modelNameVersionId")
    public String getModelNameVersionId() {
        return modelNameVersionId;
    }

    /**
     * UUID for the model name and version combination as defined in SDC--authoritative
     * 
     * @param modelNameVersionId
     *     The modelNameVersionId
     */
    @JsonProperty("modelNameVersionId")
    public void setModelNameVersionId(String modelNameVersionId) {
        this.modelNameVersionId = modelNameVersionId;
    }

    /**
     * short description of the entity being operated on
     * (Required)
     * 
     * @return
     *     The modelType
     */
    @JsonProperty("modelType")
    public String getModelType() {
        return modelType;
    }

    /**
     * short description of the entity being operated on
     * (Required)
     * 
     * @param modelType
     *     The modelType
     */
    @JsonProperty("modelType")
    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    /**
     * the version of the model as defined in SDC--not authoritative
     * 
     * @return
     *     The modelVersion
     */
    @JsonProperty("modelVersion")
    public String getModelVersion() {
        return modelVersion;
    }

    /**
     * the version of the model as defined in SDC--not authoritative
     * 
     * @param modelVersion
     *     The modelVersion
     */
    @JsonProperty("modelVersion")
    public void setModelVersion(String modelVersion) {
        this.modelVersion = modelVersion;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(modelCustomizationName).append(modelCustomizationId).append(modelInvariantId).append(modelVersionId).append(modelName).append(modelNameVersionId).append(modelType).append(modelVersion).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if (!(other instanceof ModelInfo)) {
            return false;
        }
        ModelInfo rhs = ((ModelInfo) other);
        return new EqualsBuilder().append(modelCustomizationName, rhs.modelCustomizationName).append(modelCustomizationId, rhs.modelCustomizationId).append(modelInvariantId, rhs.modelInvariantId).append(modelVersionId, rhs.modelVersionId).append(modelName, rhs.modelName).append(modelNameVersionId, rhs.modelNameVersionId).append(modelType, rhs.modelType).append(modelVersion, rhs.modelVersion).isEquals();
    }

}