2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.components.distribution.engine;
23 import org.openecomp.sdc.be.resources.data.OperationalEnvironmentEntry;
25 import java.util.ArrayList;
26 import java.util.List;
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
32 public class EnvironmentMessageBusData {
34 private List<String> dmaaPuebEndpoints;
36 private String uebPublicKey;
38 private String uebPrivateKey;
42 private String tenant;
44 public EnvironmentMessageBusData() {
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();
55 public String getTenant() {
59 public void setTenant(String tenant) {
63 public List<String> getDmaaPuebEndpoints() {
64 return dmaaPuebEndpoints;
67 public void setDmaaPuebEndpoints(List<String> dmaaPuebEndpoints) {
68 this.dmaaPuebEndpoints = dmaaPuebEndpoints;
71 public String getUebPublicKey() {
75 public void setUebPublicKey(String uebPublicKey) {
76 this.uebPublicKey = uebPublicKey;
79 public String getUebPrivateKey() {
83 public void setUebPrivateKey(String uebPrivateKey) {
84 this.uebPrivateKey = uebPrivateKey;
87 public String getEnvId() {
91 public void setEnvId(String envId) {