Son-handler microservice seed code
[dcaegen2/services/son-handler.git] / src / main / java / com / wipro / www / sonhms / Topic.java
1 /*******************************************************************************
2  * ============LICENSE_START=======================================================
3  * pcims
4  *  ================================================================================
5  *  Copyright (C) 2018 Wipro Limited.
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 com.wipro.www.sonhms;
22
23 public class Topic {
24
25     private String name;
26     private String producer;
27     private String consumer;
28
29     public Topic() {
30
31     }
32
33     /**
34      * Parameterized constructor.
35      */
36     public Topic(String name, String producer, String consumer) {
37         super();
38         this.name = name;
39         this.producer = producer;
40         this.consumer = consumer;
41     }
42
43     @Override
44     public String toString() {
45         return "topic [name=" + name + ", producer=" + producer + ", consumer=" + consumer + "]";
46     }
47
48     public String getName() {
49         return name;
50     }
51
52     public void setName(String name) {
53         this.name = name;
54     }
55
56     public String getProducer() {
57         return producer;
58     }
59
60     public void setProducer(String producer) {
61         this.producer = producer;
62     }
63
64     public String getConsumer() {
65         return consumer;
66     }
67
68     public void setConsumer(String consumer) {
69         this.consumer = consumer;
70     }
71
72 }