aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org/openecomp/sdc/be/components/distribution/engine/EnvironmentMessageBusData.java
blob: 67977b63618d3c16b5e683316da467288d60c061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package org.openecomp.sdc.be.components.distribution.engine;

import org.openecomp.sdc.be.resources.data.OperationalEnvironmentEntry;

import java.util.ArrayList;
import java.util.List;

/**
 * a pojo which holds all the necessary data to communicate with the message bus
 * this class is a reflection ot the {@link OperationalEnvironmentEntry} class
 */
public class EnvironmentMessageBusData {

    private List<String> dmaaPuebEndpoints;

    private String uebPublicKey;

    private String uebPrivateKey;

    private String envId;

    private String tenant;

    public EnvironmentMessageBusData() {
    }

    public EnvironmentMessageBusData(OperationalEnvironmentEntry operationalEnvironment) {
        this.dmaaPuebEndpoints = new ArrayList<>(operationalEnvironment.getDmaapUebAddress());
        this.uebPublicKey = operationalEnvironment.getUebApikey();
        this.uebPrivateKey = operationalEnvironment.getUebSecretKey();
        this.envId = operationalEnvironment.getEnvironmentId();
        this.tenant = operationalEnvironment.getTenant();
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public List<String> getDmaaPuebEndpoints() {
        return dmaaPuebEndpoints;
    }

    public void setDmaaPuebEndpoints(List<String> dmaaPuebEndpoints) {
        this.dmaaPuebEndpoints = dmaaPuebEndpoints;
    }

    public String getUebPublicKey() {
        return uebPublicKey;
    }

    public void setUebPublicKey(String uebPublicKey) {
        this.uebPublicKey = uebPublicKey;
    }

    public String getUebPrivateKey() {
        return uebPrivateKey;
    }

    public void setUebPrivateKey(String uebPrivateKey) {
        this.uebPrivateKey = uebPrivateKey;
    }

    public String getEnvId() {
        return envId;
    }

    public void setEnvId(String envId) {
        this.envId = envId;
    }

}