re base code
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / distribution / engine / EnvironmentMessageBusData.java
1 package org.openecomp.sdc.be.components.distribution.engine;
2
3 import org.openecomp.sdc.be.resources.data.OperationalEnvironmentEntry;
4
5 import java.util.ArrayList;
6 import java.util.List;
7
8 /**
9  * a pojo which holds all the necessary data to communicate with the message bus
10  * this class is a reflection ot the {@link OperationalEnvironmentEntry} class
11  */
12 public class EnvironmentMessageBusData {
13
14     private List<String> dmaaPuebEndpoints;
15
16     private String uebPublicKey;
17
18     private String uebPrivateKey;
19
20     private String envId;
21
22     private String tenant;
23
24     public EnvironmentMessageBusData() {
25     }
26
27     public EnvironmentMessageBusData(OperationalEnvironmentEntry operationalEnvironment) {
28         this.dmaaPuebEndpoints = new ArrayList<>(operationalEnvironment.getDmaapUebAddress());
29         this.uebPublicKey = operationalEnvironment.getUebApikey();
30         this.uebPrivateKey = operationalEnvironment.getUebSecretKey();
31         this.envId = operationalEnvironment.getEnvironmentId();
32         this.tenant = operationalEnvironment.getTenant();
33     }
34
35     public String getTenant() {
36         return tenant;
37     }
38
39     public void setTenant(String tenant) {
40         this.tenant = tenant;
41     }
42
43     public List<String> getDmaaPuebEndpoints() {
44         return dmaaPuebEndpoints;
45     }
46
47     public void setDmaaPuebEndpoints(List<String> dmaaPuebEndpoints) {
48         this.dmaaPuebEndpoints = dmaaPuebEndpoints;
49     }
50
51     public String getUebPublicKey() {
52         return uebPublicKey;
53     }
54
55     public void setUebPublicKey(String uebPublicKey) {
56         this.uebPublicKey = uebPublicKey;
57     }
58
59     public String getUebPrivateKey() {
60         return uebPrivateKey;
61     }
62
63     public void setUebPrivateKey(String uebPrivateKey) {
64         this.uebPrivateKey = uebPrivateKey;
65     }
66
67     public String getEnvId() {
68         return envId;
69     }
70
71     public void setEnvId(String envId) {
72         this.envId = envId;
73     }
74
75 }