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=========================================================
20 package org.openecomp.sdc.asdctool.simulator.tenant;
22 import com.opencsv.bean.CsvBindByPosition;
23 import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum;
26 * Represents line in CSV file should be imported into "operationalenvironment" table.
30 public class OperationalEnvironment {
32 @CsvBindByPosition(position = 0)
33 private String environmentId;
34 @CsvBindByPosition(position = 1)
35 private String dmaapUebAddress;
36 @CsvBindByPosition(position = 2)
37 private String ecompWorkloadContext;
38 @CsvBindByPosition(position = 3)
39 private Boolean isProduction;
40 @CsvBindByPosition(position = 4)
41 private String lastModified;
42 @CsvBindByPosition(position = 5)
43 private String status;
44 @CsvBindByPosition(position = 6)
45 private String tenant;
46 @CsvBindByPosition(position = 7)
47 private String uebApikey;
48 @CsvBindByPosition(position = 8)
49 private String uebSecretKey;
51 public String getLastModified() {
55 public void setLastModified(String lastModified) {
56 this.lastModified = lastModified;
59 public String getEnvironmentId() {
63 public void setEnvironmentId(String environmentId) {
64 this.environmentId = environmentId;
67 public String getTenant() {
71 public void setTenant(String tenant) {
75 public Boolean getIsProduction() {
79 public void setIsProduction(Boolean production) {
80 isProduction = production;
83 public String getEcompWorkloadContext() {
84 return ecompWorkloadContext;
87 public void setEcompWorkloadContext(String ecompWorkloadContext) {
88 this.ecompWorkloadContext = ecompWorkloadContext;
91 public String getStatus() {
95 public void setStatus(String status) {
99 public void setStatus(EnvironmentStatusEnum status) {
100 this.status = status.getName();
103 public String getDmaapUebAddress() {
104 return dmaapUebAddress;
107 public void setDmaapUebAddress(String dmaapUebAddress) {
108 this.dmaapUebAddress = dmaapUebAddress;
111 public String getUebApikey() {
115 public void setUebApikey(String uebApikey) {
116 this.uebApikey = uebApikey;
119 public String getUebSecretKey() {
123 public void setUebSecretKey(String uebSecretKey) {
124 this.uebSecretKey = uebSecretKey;