Release version 1.1.0 of sli/plugins
[ccsdk/sli/plugins.git] / restconf-client / provider / src / main / java / org / onap / ccsdk / sli / plugins / restconfdiscovery / SubscriptionInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - CCSDK
4  * ================================================================================
5  * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.ccsdk.sli.plugins.restconfdiscovery;
22
23 /**
24  * Holder to store information of subscription.
25  */
26 public class SubscriptionInfo {
27     private String subscriptionId;
28     private String subscriberId;
29     private SvcLogicGraphInfo callbackDG;
30     private String yangFilePath;
31     private String filterUrl;
32
33     /**
34      * Returns callback DG.
35      *
36      * @return callback DG
37      */
38     public SvcLogicGraphInfo callBackDG() {
39         return callbackDG;
40     }
41
42     /**
43      * Sets callback DG.
44      *
45      * @param callbackDg callback DG
46      */
47     public void callBackDG(SvcLogicGraphInfo callbackDg) {
48         this.callbackDG = callbackDg;
49     }
50
51     /**
52      * Returns YANG file path.
53      *
54      * @return YANG file path
55      */
56     public String yangFilePath() {
57         return yangFilePath;
58     }
59
60     /**
61      * Sets YANG file path.
62      *
63      * @param yangFilePath yang file path
64      */
65     public void yangFilePath(String yangFilePath) {
66         this.yangFilePath = yangFilePath;
67     }
68
69     /**
70      * Returns filter URL.
71      *
72      * @return filter URL
73      */
74     public String filterUrl() {
75         return filterUrl;
76     }
77
78     /**
79      * Sets filter URL.
80      *
81      * @param filterUrl filter URL
82      */
83     public void filterUrl(String filterUrl) {
84         this.filterUrl = filterUrl;
85     }
86
87     /**
88      * Returns subscription Id.
89      *
90      * @return subscription Id
91      */
92     public String subscriptionId() {
93         return subscriptionId;
94     }
95
96     /**
97      * Sets subscription id.
98      *
99      * @param subscriptionId subscription id
100      */
101     public void subscriptionId(String subscriptionId) {
102         this.subscriptionId = subscriptionId;
103     }
104
105     /**
106      * Returns subscription Id.
107      *
108      * @return subscription Id
109      */
110     public String subscriberId() {
111         return subscriberId;
112     }
113
114     /**
115      * Sets subscriber id.
116      *
117      * @param subscriberId subscriber id
118      */
119     public void subscriberId(String subscriberId) {
120         this.subscriberId = subscriberId;
121     }
122 }