aboutsummaryrefslogtreecommitdiffstats
path: root/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFields.java
blob: 3fe8b00786a08838d5eb728955d9e94b4eed7c11 (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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
/*
* ============LICENSE_START=======================================================
* ONAP : DCAE
* ================================================================================
* Copyright 2018 TechMahindra
*=================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ============LICENSE_END=========================================================
*/
package org.onap.dcaegen2.ves.domain.ves7_0;

import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * hardware device registration fields
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "additionalFields",
    "lastServiceDate",
    "macAddress",
    "manufactureDate",
    "modelNumber",
    "oamV4IpAddress",
    "oamV6IpAddress",
    "pnfRegistrationFieldsVersion",
    "serialNumber",
    "softwareVersion",
    "unitFamily",
    "unitType",
    "vendorName"
})
public class PnfRegistrationFields {

    /**
     * an associative array which is an array of key:value pairs
     * 
     */
    @JsonProperty("additionalFields")
    @JsonPropertyDescription("an associative array which is an array of key:value pairs")
    private AlarmAdditionalInformation additionalFields;
    /**
     * TS 32.692 dateOfLastService = date of last service; e.g. 15022017
     * 
     */
    @JsonProperty("lastServiceDate")
    @JsonPropertyDescription("TS 32.692 dateOfLastService = date of last service; e.g. 15022017")
    private String lastServiceDate;
    /**
     * MAC address of OAM interface of the unit
     * 
     */
    @JsonProperty("macAddress")
    @JsonPropertyDescription("MAC address of OAM interface of the unit")
    private String macAddress;
    /**
     * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016
     * 
     */
    @JsonProperty("manufactureDate")
    @JsonPropertyDescription("TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016")
    private String manufactureDate;
    /**
     * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02.  Maps to AAI equip-model
     * 
     */
    @JsonProperty("modelNumber")
    @JsonPropertyDescription("TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02.  Maps to AAI equip-model")
    private String modelNumber;
    /**
     * IPv4 m-plane IP address to be used by the manager to contact the PNF
     * 
     */
    @JsonProperty("oamV4IpAddress")
    @JsonPropertyDescription("IPv4 m-plane IP address to be used by the manager to contact the PNF")
    private String oamV4IpAddress;
    /**
     * IPv6 m-plane IP address to be used by the manager to contact the PNF
     * 
     */
    @JsonProperty("oamV6IpAddress")
    @JsonPropertyDescription("IPv6 m-plane IP address to be used by the manager to contact the PNF")
    private String oamV6IpAddress;
    /**
     * version of the pnfRegistrationFields block
     * (Required)
     * 
     */
    @JsonProperty("pnfRegistrationFieldsVersion")
    @JsonPropertyDescription("version of the pnfRegistrationFields block")
    private PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion;
    /**
     * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3
     * 
     */
    @JsonProperty("serialNumber")
    @JsonPropertyDescription("TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3")
    private String serialNumber;
    /**
     * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201
     * 
     */
    @JsonProperty("softwareVersion")
    @JsonPropertyDescription("TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201")
    private String softwareVersion;
    /**
     * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU
     * 
     */
    @JsonProperty("unitFamily")
    @JsonPropertyDescription("TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU")
    private String unitFamily;
    /**
     * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale
     * 
     */
    @JsonProperty("unitType")
    @JsonPropertyDescription("TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale")
    private String unitType;
    /**
     * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor
     * 
     */
    @JsonProperty("vendorName")
    @JsonPropertyDescription("TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor")
    private String vendorName;

    /**
     * an associative array which is an array of key:value pairs
     * 
     */
    @JsonProperty("additionalFields")
    public AlarmAdditionalInformation getAdditionalFields() {
        return additionalFields;
    }

    /**
     * an associative array which is an array of key:value pairs
     * 
     */
    @JsonProperty("additionalFields")
    public void setAdditionalFields(AlarmAdditionalInformation additionalFields) {
        this.additionalFields = additionalFields;
    }

    /**
     * TS 32.692 dateOfLastService = date of last service; e.g. 15022017
     * 
     */
    @JsonProperty("lastServiceDate")
    public String getLastServiceDate() {
        return lastServiceDate;
    }

    /**
     * TS 32.692 dateOfLastService = date of last service; e.g. 15022017
     * 
     */
    @JsonProperty("lastServiceDate")
    public void setLastServiceDate(String lastServiceDate) {
        this.lastServiceDate = lastServiceDate;
    }

    /**
     * MAC address of OAM interface of the unit
     * 
     */
    @JsonProperty("macAddress")
    public String getMacAddress() {
        return macAddress;
    }

    /**
     * MAC address of OAM interface of the unit
     * 
     */
    @JsonProperty("macAddress")
    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }

    /**
     * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016
     * 
     */
    @JsonProperty("manufactureDate")
    public String getManufactureDate() {
        return manufactureDate;
    }

    /**
     * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016
     * 
     */
    @JsonProperty("manufactureDate")
    public void setManufactureDate(String manufactureDate) {
        this.manufactureDate = manufactureDate;
    }

    /**
     * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02.  Maps to AAI equip-model
     * 
     */
    @JsonProperty("modelNumber")
    public String getModelNumber() {
        return modelNumber;
    }

    /**
     * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02.  Maps to AAI equip-model
     * 
     */
    @JsonProperty("modelNumber")
    public void setModelNumber(String modelNumber) {
        this.modelNumber = modelNumber;
    }

    /**
     * IPv4 m-plane IP address to be used by the manager to contact the PNF
     * 
     */
    @JsonProperty("oamV4IpAddress")
    public String getOamV4IpAddress() {
        return oamV4IpAddress;
    }

    /**
     * IPv4 m-plane IP address to be used by the manager to contact the PNF
     * 
     */
    @JsonProperty("oamV4IpAddress")
    public void setOamV4IpAddress(String oamV4IpAddress) {
        this.oamV4IpAddress = oamV4IpAddress;
    }

    /**
     * IPv6 m-plane IP address to be used by the manager to contact the PNF
     * 
     */
    @JsonProperty("oamV6IpAddress")
    public String getOamV6IpAddress() {
        return oamV6IpAddress;
    }

    /**
     * IPv6 m-plane IP address to be used by the manager to contact the PNF
     * 
     */
    @JsonProperty("oamV6IpAddress")
    public void setOamV6IpAddress(String oamV6IpAddress) {
        this.oamV6IpAddress = oamV6IpAddress;
    }

    /**
     * version of the pnfRegistrationFields block
     * (Required)
     * 
     */
    @JsonProperty("pnfRegistrationFieldsVersion")
    public PnfRegistrationFields.PnfRegistrationFieldsVersion getPnfRegistrationFieldsVersion() {
        return pnfRegistrationFieldsVersion;
    }

    /**
     * version of the pnfRegistrationFields block
     * (Required)
     * 
     */
    @JsonProperty("pnfRegistrationFieldsVersion")
    public void setPnfRegistrationFieldsVersion(PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion) {
        this.pnfRegistrationFieldsVersion = pnfRegistrationFieldsVersion;
    }

    /**
     * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3
     * 
     */
    @JsonProperty("serialNumber")
    public String getSerialNumber() {
        return serialNumber;
    }

    /**
     * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3
     * 
     */
    @JsonProperty("serialNumber")
    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    /**
     * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201
     * 
     */
    @JsonProperty("softwareVersion")
    public String getSoftwareVersion() {
        return softwareVersion;
    }

    /**
     * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201
     * 
     */
    @JsonProperty("softwareVersion")
    public void setSoftwareVersion(String softwareVersion) {
        this.softwareVersion = softwareVersion;
    }

    /**
     * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU
     * 
     */
    @JsonProperty("unitFamily")
    public String getUnitFamily() {
        return unitFamily;
    }

    /**
     * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU
     * 
     */
    @JsonProperty("unitFamily")
    public void setUnitFamily(String unitFamily) {
        this.unitFamily = unitFamily;
    }

    /**
     * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale
     * 
     */
    @JsonProperty("unitType")
    public String getUnitType() {
        return unitType;
    }

    /**
     * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale
     * 
     */
    @JsonProperty("unitType")
    public void setUnitType(String unitType) {
        this.unitType = unitType;
    }

    /**
     * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor
     * 
     */
    @JsonProperty("vendorName")
    public String getVendorName() {
        return vendorName;
    }

    /**
     * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor
     * 
     */
    @JsonProperty("vendorName")
    public void setVendorName(String vendorName) {
        this.vendorName = vendorName;
    }

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

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(additionalFields).append(lastServiceDate).append(macAddress).append(manufactureDate).append(modelNumber).append(oamV4IpAddress).append(oamV6IpAddress).append(pnfRegistrationFieldsVersion).append(serialNumber).append(softwareVersion).append(unitFamily).append(unitType).append(vendorName).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof PnfRegistrationFields) == false) {
            return false;
        }
        PnfRegistrationFields rhs = ((PnfRegistrationFields) other);
        return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(lastServiceDate, rhs.lastServiceDate).append(macAddress, rhs.macAddress).append(manufactureDate, rhs.manufactureDate).append(modelNumber, rhs.modelNumber).append(oamV4IpAddress, rhs.oamV4IpAddress).append(oamV6IpAddress, rhs.oamV6IpAddress).append(pnfRegistrationFieldsVersion, rhs.pnfRegistrationFieldsVersion).append(serialNumber, rhs.serialNumber).append(softwareVersion, rhs.softwareVersion).append(unitFamily, rhs.unitFamily).append(unitType, rhs.unitType).append(vendorName, rhs.vendorName).isEquals();
    }

    public enum PnfRegistrationFieldsVersion {

        _2_0("2.0");
        private final String value;
        private final static Map<String, PnfRegistrationFields.PnfRegistrationFieldsVersion> CONSTANTS = new HashMap<String, PnfRegistrationFields.PnfRegistrationFieldsVersion>();

        static {
            for (PnfRegistrationFields.PnfRegistrationFieldsVersion c: values()) {
                CONSTANTS.put(c.value, c);
            }
        }

        private PnfRegistrationFieldsVersion(String value) {
            this.value = value;
        }

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

        @JsonValue
        public String value() {
            return this.value;
        }

        @JsonCreator
        public static PnfRegistrationFields.PnfRegistrationFieldsVersion fromValue(String value) {
            PnfRegistrationFields.PnfRegistrationFieldsVersion constant = CONSTANTS.get(value);
            if (constant == null) {
                throw new IllegalArgumentException(value);
            } else {
                return constant;
            }
        }

    }

}