aboutsummaryrefslogtreecommitdiffstats
path: root/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/AaiPnfResultModel.java
blob: 96d28af7cda8a19739985cc82fca6409d4c41914 (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
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
/*
 * ============LICENSE_START=======================================================
 * PNF-REGISTRATION-HANDLER
 * ================================================================================
 * Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
 * ================================================================================
 * 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.services.prh.model;

import com.google.gson.annotations.SerializedName;

import java.util.Objects;

/**
 * PNF represents a physical network function. typically equipment used in the D1 world. in 1607, this will be populated by SDN-C to represent a premises router that a uCPE connects to. But this can be used to represent any physical device that is not an AIC node or uCPE. ###### Related Nodes - TO complex( pnf LocatedIn complex, MANY2ONE) - TO instance-group( pnf MemberOf instance-group, MANY2MANY) - TO zone( pnf LocatedIn zone, MANY2ONE) - FROM configuration( configuration AppliesTo pnf, ONE2MANY) - FROM esr-thirdparty-sdnc( esr-thirdparty-sdnc AppliesTo pnf, ONE2MANY) - FROM generic-vnf( generic-vnf HostedOn pnf, MANY2MANY) - FROM lag-interface (CHILD of pnf, lag-interface BindsTo pnf, MANY2ONE)(1) - FROM logical-link( logical-link BridgedTo pnf, MANY2MANY) - FROM p-interface (CHILD of pnf, p-interface BindsTo pnf, MANY2ONE)(1) - FROM service-instance( service-instance ComposedOf pnf, ONE2MANY)  -(1) IF this PNF node is deleted, this FROM node is DELETED also
 */

public class AaiPnfResultModel {
    @SerializedName("pnf-name")
    private String pnfName = null;

    @SerializedName("pnf-name2")
    private String pnfName2 = null;

    @SerializedName("selflink")
    private String selflink = null;

    @SerializedName("pnf-name2-source")
    private String pnfName2Source = null;

    @SerializedName("pnf-id")
    private String pnfId = null;

    @SerializedName("equip-type")
    private String equipType = null;

    @SerializedName("equip-vendor")
    private String equipVendor = null;

    @SerializedName("equip-model")
    private String equipModel = null;

    @SerializedName("management-option")
    private String managementOption = null;

    @SerializedName("ipaddress-v4-oam")
    private String ipaddressV4Oam = null;

    @SerializedName("sw-version")
    private String swVersion = null;

    @SerializedName("in-maint")
    private Boolean inMaint = null;

    @SerializedName("frame-id")
    private String frameId = null;

    @SerializedName("serial-number")
    private String serialNumber = null;

    @SerializedName("ipaddress-v4-loopback-0")
    private String ipaddressV4Loopback0 = null;

    @SerializedName("ipaddress-v6-loopback-0")
    private String ipaddressV6Loopback0 = null;

    @SerializedName("ipaddress-v4-aim")
    private String ipaddressV4Aim = null;

    @SerializedName("ipaddress-v6-aim")
    private String ipaddressV6Aim = null;

    @SerializedName("ipaddress-v6-oam")
    private String ipaddressV6Oam = null;

    @SerializedName("inv-status")
    private String invStatus = null;

    @SerializedName("resource-version")
    private String resourceVersion = null;

    @SerializedName("prov-status")
    private String provStatus = null;

    @SerializedName("nf-role")
    private String nfRole = null;

    @SerializedName("relationship-list")
    private Relationship relationshipList = null;

    public AaiPnfResultModel pnfName(String pnfName) {
        this.pnfName = pnfName;
        return this;
    }

    /**
     * unique name of Physical Network Function.
     *
     * @return pnfName
     **/
    public String getPnfName() {
        return pnfName;
    }

    public void setPnfName(String pnfName) {
        this.pnfName = pnfName;
    }

    public AaiPnfResultModel pnfName2(String pnfName2) {
        this.pnfName2 = pnfName2;
        return this;
    }

    /**
     * name of Physical Network Function.
     *
     * @return pnfName2
     **/
    public String getPnfName2() {
        return pnfName2;
    }

    public void setPnfName2(String pnfName2) {
        this.pnfName2 = pnfName2;
    }

    public AaiPnfResultModel selflink(String selflink) {
        this.selflink = selflink;
        return this;
    }

    /**
     * URL to endpoint where AAI can get more details.
     *
     * @return selflink
     **/
    public String getSelflink() {
        return selflink;
    }

    public void setSelflink(String selflink) {
        this.selflink = selflink;
    }

    public AaiPnfResultModel pnfName2Source(String pnfName2Source) {
        this.pnfName2Source = pnfName2Source;
        return this;
    }

    /**
     * source of name2
     *
     * @return pnfName2Source
     **/
    public String getPnfName2Source() {
        return pnfName2Source;
    }

    public void setPnfName2Source(String pnfName2Source) {
        this.pnfName2Source = pnfName2Source;
    }

    public AaiPnfResultModel pnfId(String pnfId) {
        this.pnfId = pnfId;
        return this;
    }

    /**
     * id of pnf
     *
     * @return pnfId
     **/
    public String getPnfId() {
        return pnfId;
    }

    public void setPnfId(String pnfId) {
        this.pnfId = pnfId;
    }

    public AaiPnfResultModel equipType(String equipType) {
        this.equipType = equipType;
        return this;
    }

    /**
     * Equipment type.  Source of truth should define valid values.
     *
     * @return equipType
     **/
    public String getEquipType() {
        return equipType;
    }

    public void setEquipType(String equipType) {
        this.equipType = equipType;
    }

    public AaiPnfResultModel equipVendor(String equipVendor) {
        this.equipVendor = equipVendor;
        return this;
    }

    /**
     * Equipment vendor.  Source of truth should define valid values.
     *
     * @return equipVendor
     **/
    public String getEquipVendor() {
        return equipVendor;
    }

    public void setEquipVendor(String equipVendor) {
        this.equipVendor = equipVendor;
    }

    public AaiPnfResultModel equipModel(String equipModel) {
        this.equipModel = equipModel;
        return this;
    }

    /**
     * Equipment model.  Source of truth should define valid values.
     *
     * @return equipModel
     **/
    public String getEquipModel() {
        return equipModel;
    }

    public void setEquipModel(String equipModel) {
        this.equipModel = equipModel;
    }

    public AaiPnfResultModel managementOption(String managementOption) {
        this.managementOption = managementOption;
        return this;
    }

    /**
     * identifier of managed by ATT or customer
     *
     * @return managementOption
     **/
    public String getManagementOption() {
        return managementOption;
    }

    public void setManagementOption(String managementOption) {
        this.managementOption = managementOption;
    }

    public AaiPnfResultModel ipaddressV4Oam(String ipaddressV4Oam) {
        this.ipaddressV4Oam = ipaddressV4Oam;
        return this;
    }

    /**
     * ipv4-oam-address with new naming convention for IP addresses
     *
     * @return ipaddressV4Oam
     **/
    public String getIpaddressV4Oam() {
        return ipaddressV4Oam;
    }

    public void setIpaddressV4Oam(String ipaddressV4Oam) {
        this.ipaddressV4Oam = ipaddressV4Oam;
    }

    public AaiPnfResultModel swVersion(String swVersion) {
        this.swVersion = swVersion;
        return this;
    }

    /**
     * sw-version is the version of SW for the hosted application on the PNF.
     *
     * @return swVersion
     **/
    public String getSwVersion() {
        return swVersion;
    }

    public void setSwVersion(String swVersion) {
        this.swVersion = swVersion;
    }

    public AaiPnfResultModel inMaint(Boolean inMaint) {
        this.inMaint = inMaint;
        return this;
    }

    /**
     * Used to indicate whether or not this object is in maintenance mode (maintenance mode = true). This field (in conjunction with prov-status) is used to suppress alarms and vSCL on VNFs/VMs.
     *
     * @return inMaint
     **/
    public Boolean isInMaint() {
        return inMaint;
    }

    public void setInMaint(Boolean inMaint) {
        this.inMaint = inMaint;
    }

    public AaiPnfResultModel frameId(String frameId) {
        this.frameId = frameId;
        return this;
    }

    /**
     * ID of the physical frame (relay rack) where pnf is installed.
     *
     * @return frameId
     **/
    public String getFrameId() {
        return frameId;
    }

    public void setFrameId(String frameId) {
        this.frameId = frameId;
    }

    public AaiPnfResultModel serialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
        return this;
    }

    /**
     * Serial number of the device
     *
     * @return serialNumber
     **/
    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public AaiPnfResultModel ipaddressV4Loopback0(String ipaddressV4Loopback0) {
        this.ipaddressV4Loopback0 = ipaddressV4Loopback0;
        return this;
    }

    /**
     * IPV4 Loopback 0 address
     *
     * @return ipaddressV4Loopback0
     **/
    public String getIpaddressV4Loopback0() {
        return ipaddressV4Loopback0;
    }

    public void setIpaddressV4Loopback0(String ipaddressV4Loopback0) {
        this.ipaddressV4Loopback0 = ipaddressV4Loopback0;
    }

    public AaiPnfResultModel ipaddressV6Loopback0(String ipaddressV6Loopback0) {
        this.ipaddressV6Loopback0 = ipaddressV6Loopback0;
        return this;
    }

    /**
     * IPV6 Loopback 0 address
     *
     * @return ipaddressV6Loopback0
     **/
    public String getIpaddressV6Loopback0() {
        return ipaddressV6Loopback0;
    }

    public void setIpaddressV6Loopback0(String ipaddressV6Loopback0) {
        this.ipaddressV6Loopback0 = ipaddressV6Loopback0;
    }

    public AaiPnfResultModel ipaddressV4Aim(String ipaddressV4Aim) {
        this.ipaddressV4Aim = ipaddressV4Aim;
        return this;
    }

    /**
     * IPV4 AIM address
     *
     * @return ipaddressV4Aim
     **/
    public String getIpaddressV4Aim() {
        return ipaddressV4Aim;
    }

    public void setIpaddressV4Aim(String ipaddressV4Aim) {
        this.ipaddressV4Aim = ipaddressV4Aim;
    }

    public AaiPnfResultModel ipaddressV6Aim(String ipaddressV6Aim) {
        this.ipaddressV6Aim = ipaddressV6Aim;
        return this;
    }

    /**
     * IPV6 AIM address
     *
     * @return ipaddressV6Aim
     **/
    public String getIpaddressV6Aim() {
        return ipaddressV6Aim;
    }

    public void setIpaddressV6Aim(String ipaddressV6Aim) {
        this.ipaddressV6Aim = ipaddressV6Aim;
    }

    public AaiPnfResultModel ipaddressV6Oam(String ipaddressV6Oam) {
        this.ipaddressV6Oam = ipaddressV6Oam;
        return this;
    }

    /**
     * IPV6 OAM address
     *
     * @return ipaddressV6Oam
     **/
    public String getIpaddressV6Oam() {
        return ipaddressV6Oam;
    }

    public void setIpaddressV6Oam(String ipaddressV6Oam) {
        this.ipaddressV6Oam = ipaddressV6Oam;
    }

    public AaiPnfResultModel invStatus(String invStatus) {
        this.invStatus = invStatus;
        return this;
    }

    /**
     * CANOPI's inventory status.  Only set with values exactly as defined by CANOPI.
     *
     * @return invStatus
     **/
    public String getInvStatus() {
        return invStatus;
    }

    public void setInvStatus(String invStatus) {
        this.invStatus = invStatus;
    }

    public AaiPnfResultModel resourceVersion(String resourceVersion) {
        this.resourceVersion = resourceVersion;
        return this;
    }

    /**
     * Used for optimistic concurrency.  Must be empty on create, valid on update and delete.
     *
     * @return resourceVersion
     **/
    public String getResourceVersion() {
        return resourceVersion;
    }

    public void setResourceVersion(String resourceVersion) {
        this.resourceVersion = resourceVersion;
    }

    public AaiPnfResultModel provStatus(String provStatus) {
        this.provStatus = provStatus;
        return this;
    }

    /**
     * Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV]
     *
     * @return provStatus
     **/
    public String getProvStatus() {
        return provStatus;
    }

    public void setProvStatus(String provStatus) {
        this.provStatus = provStatus;
    }

    public AaiPnfResultModel nfRole(String nfRole) {
        this.nfRole = nfRole;
        return this;
    }

    /**
     * Nf Role is the role performed by this instance in the network.
     *
     * @return nfRole
     **/
    public String getNfRole() {
        return nfRole;
    }

    public void setNfRole(String nfRole) {
        this.nfRole = nfRole;
    }

    public AaiPnfResultModel relationshipList(Relationship relationshipList) {
        this.relationshipList = relationshipList;
        return this;
    }

    /**
     * Get relationshipList
     *
     * @return relationshipList
     **/
    public Relationship getRelationshipList() {
        return relationshipList;
    }

    public void setRelationshipList(Relationship relationshipList) {
        this.relationshipList = relationshipList;
    }

    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        AaiPnfResultModel pnf = (AaiPnfResultModel) o;
        return Objects.equals(this.pnfName, pnf.pnfName) &&
                Objects.equals(this.pnfName2, pnf.pnfName2) &&
                Objects.equals(this.selflink, pnf.selflink) &&
                Objects.equals(this.pnfName2Source, pnf.pnfName2Source) &&
                Objects.equals(this.pnfId, pnf.pnfId) &&
                Objects.equals(this.equipType, pnf.equipType) &&
                Objects.equals(this.equipVendor, pnf.equipVendor) &&
                Objects.equals(this.equipModel, pnf.equipModel) &&
                Objects.equals(this.managementOption, pnf.managementOption) &&
                Objects.equals(this.ipaddressV4Oam, pnf.ipaddressV4Oam) &&
                Objects.equals(this.swVersion, pnf.swVersion) &&
                Objects.equals(this.inMaint, pnf.inMaint) &&
                Objects.equals(this.frameId, pnf.frameId) &&
                Objects.equals(this.serialNumber, pnf.serialNumber) &&
                Objects.equals(this.ipaddressV4Loopback0, pnf.ipaddressV4Loopback0) &&
                Objects.equals(this.ipaddressV6Loopback0, pnf.ipaddressV6Loopback0) &&
                Objects.equals(this.ipaddressV4Aim, pnf.ipaddressV4Aim) &&
                Objects.equals(this.ipaddressV6Aim, pnf.ipaddressV6Aim) &&
                Objects.equals(this.ipaddressV6Oam, pnf.ipaddressV6Oam) &&
                Objects.equals(this.invStatus, pnf.invStatus) &&
                Objects.equals(this.resourceVersion, pnf.resourceVersion) &&
                Objects.equals(this.provStatus, pnf.provStatus) &&
                Objects.equals(this.nfRole, pnf.nfRole) &&
                Objects.equals(this.relationshipList, pnf.relationshipList);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pnfName, pnfName2, selflink, pnfName2Source, pnfId, equipType, equipVendor, equipModel, managementOption, ipaddressV4Oam, swVersion, inMaint, frameId, serialNumber, ipaddressV4Loopback0, ipaddressV6Loopback0, ipaddressV4Aim, ipaddressV6Aim, ipaddressV6Oam, invStatus, resourceVersion, provStatus, nfRole, relationshipList);
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class AaiPnfResultModel  {\n");

        sb.append("    pnfName: ").append(toIndentedString(pnfName)).append("\n");
        sb.append("    pnfName2: ").append(toIndentedString(pnfName2)).append("\n");
        sb.append("    selflink: ").append(toIndentedString(selflink)).append("\n");
        sb.append("    pnfName2Source: ").append(toIndentedString(pnfName2Source)).append("\n");
        sb.append("    pnfId: ").append(toIndentedString(pnfId)).append("\n");
        sb.append("    equipType: ").append(toIndentedString(equipType)).append("\n");
        sb.append("    equipVendor: ").append(toIndentedString(equipVendor)).append("\n");
        sb.append("    equipModel: ").append(toIndentedString(equipModel)).append("\n");
        sb.append("    managementOption: ").append(toIndentedString(managementOption)).append("\n");
        sb.append("    ipaddressV4Oam: ").append(toIndentedString(ipaddressV4Oam)).append("\n");
        sb.append("    swVersion: ").append(toIndentedString(swVersion)).append("\n");
        sb.append("    inMaint: ").append(toIndentedString(inMaint)).append("\n");
        sb.append("    frameId: ").append(toIndentedString(frameId)).append("\n");
        sb.append("    serialNumber: ").append(toIndentedString(serialNumber)).append("\n");
        sb.append("    ipaddressV4Loopback0: ").append(toIndentedString(ipaddressV4Loopback0)).append("\n");
        sb.append("    ipaddressV6Loopback0: ").append(toIndentedString(ipaddressV6Loopback0)).append("\n");
        sb.append("    ipaddressV4Aim: ").append(toIndentedString(ipaddressV4Aim)).append("\n");
        sb.append("    ipaddressV6Aim: ").append(toIndentedString(ipaddressV6Aim)).append("\n");
        sb.append("    ipaddressV6Oam: ").append(toIndentedString(ipaddressV6Oam)).append("\n");
        sb.append("    invStatus: ").append(toIndentedString(invStatus)).append("\n");
        sb.append("    resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n");
        sb.append("    provStatus: ").append(toIndentedString(provStatus)).append("\n");
        sb.append("    nfRole: ").append(toIndentedString(nfRole)).append("\n");
        sb.append("    relationshipList: ").append(toIndentedString(relationshipList)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }
}