98f02ec7abcc0985399225000efcfbb720e2035e
[ccsdk/features.git] / sdnr / wt / mountpoint-registrar / provider / src / main / java / org / onap / ccsdk / features / sdnr / wt / mountpointregistrar / impl / CMBasicHeaderFieldsNotification.java
1 /*
2  * ============LICENSE_START========================================================================
3  * ONAP : ccsdk feature sdnr wt mountpoint-registrar
4  * =================================================================================================
5  * Copyright (C) 2021 Samsung Electronics Intellectual Property. All rights reserved.
6  * =================================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8  * in compliance with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License
13  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing permissions and limitations under
15  * the License.
16  * ============LICENSE_END==========================================================================
17  */
18 package org.onap.ccsdk.features.sdnr.wt.mountpointregistrar.impl;
19
20 public class CMBasicHeaderFieldsNotification {
21     private String cmNodeId;
22     private String cmSequence;
23     private String cmOccurrenceTime;
24     private String sourceId;
25     private String notificationType;
26
27     public static CMBasicHeaderFieldsNotificationBuilder builder() {
28         return new CMBasicHeaderFieldsNotificationBuilder();
29     }
30
31     private CMBasicHeaderFieldsNotification(
32         CMBasicHeaderFieldsNotification.CMBasicHeaderFieldsNotificationBuilder builder) {
33         this.cmNodeId = builder.cmNodeId;
34         this.cmSequence = builder.cmSequence;
35         this.cmOccurrenceTime = builder.cmOccurrenceTime;
36         this.sourceId = builder.sourceId;
37         this.notificationType = builder.notificationType;
38     }
39
40     public static class CMBasicHeaderFieldsNotificationBuilder {
41         private String cmNodeId;
42         private String cmSequence;
43         private String cmOccurrenceTime;
44         private String sourceId;
45         private String notificationType;
46
47         public CMBasicHeaderFieldsNotification build() {
48             return new CMBasicHeaderFieldsNotification(this);
49         }
50
51         public CMBasicHeaderFieldsNotificationBuilder withCMNodeId(String cmNodeId) {
52             this.cmNodeId = cmNodeId;
53             return this;
54         }
55
56         public CMBasicHeaderFieldsNotificationBuilder withCMSequence(
57             String cmSequence) {
58             this.cmSequence = cmSequence;
59             return this;
60         }
61
62         public CMBasicHeaderFieldsNotificationBuilder withCMOccurrenceTime(
63             String cmOccurrenceTime) {
64             this.cmOccurrenceTime = cmOccurrenceTime;
65             return this;
66         }
67
68         public CMBasicHeaderFieldsNotificationBuilder withSourceId(String sourceId) {
69             this.sourceId = sourceId;
70             return this;
71         }
72
73         public CMBasicHeaderFieldsNotificationBuilder withNotificationType(
74             String notificationType) {
75             this.notificationType = notificationType;
76             return this;
77         }
78             }
79
80     public String getCmNodeId() {
81         return cmNodeId;
82     }
83
84     public String getCmSequence() {
85         return cmSequence;
86     }
87
88     public String getCmOccurrenceTime() {
89         return cmOccurrenceTime;
90     }
91
92     public String getNotificationType() {
93         return notificationType;
94     }
95
96     public String getSourceId() {
97         return sourceId;
98     }
99
100 }