Added oparent to sdc main
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / components / distribution / engine / EnvironmentMessageBusData.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. 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.openecomp.sdc.be.components.distribution.engine;
22
23 import org.openecomp.sdc.be.resources.data.OperationalEnvironmentEntry;
24
25 import java.util.ArrayList;
26 import java.util.List;
27
28 /**
29  * a pojo which holds all the necessary data to communicate with the message bus
30  * this class is a reflection ot the {@link OperationalEnvironmentEntry} class
31  */
32 public class EnvironmentMessageBusData {
33
34     private List<String> dmaaPuebEndpoints;
35
36     private String uebPublicKey;
37
38     private String uebPrivateKey;
39
40     private String envId;
41
42     private String tenant;
43
44     public EnvironmentMessageBusData() {
45     }
46
47     public EnvironmentMessageBusData(OperationalEnvironmentEntry operationalEnvironment) {
48         this.dmaaPuebEndpoints = new ArrayList<>(operationalEnvironment.getDmaapUebAddress());
49         this.uebPublicKey = operationalEnvironment.getUebApikey();
50         this.uebPrivateKey = operationalEnvironment.getUebSecretKey();
51         this.envId = operationalEnvironment.getEnvironmentId();
52         this.tenant = operationalEnvironment.getTenant();
53     }
54
55     public String getTenant() {
56         return tenant;
57     }
58
59     public void setTenant(String tenant) {
60         this.tenant = tenant;
61     }
62
63     public List<String> getDmaaPuebEndpoints() {
64         return dmaaPuebEndpoints;
65     }
66
67     public void setDmaaPuebEndpoints(List<String> dmaaPuebEndpoints) {
68         this.dmaaPuebEndpoints = dmaaPuebEndpoints;
69     }
70
71     public String getUebPublicKey() {
72         return uebPublicKey;
73     }
74
75     public void setUebPublicKey(String uebPublicKey) {
76         this.uebPublicKey = uebPublicKey;
77     }
78
79     public String getUebPrivateKey() {
80         return uebPrivateKey;
81     }
82
83     public void setUebPrivateKey(String uebPrivateKey) {
84         this.uebPrivateKey = uebPrivateKey;
85     }
86
87     public String getEnvId() {
88         return envId;
89     }
90
91     public void setEnvId(String envId) {
92         this.envId = envId;
93     }
94
95 }