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.asdctool.simulator.tenant;
23 import com.opencsv.bean.CsvBindByPosition;
24 import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum;
27 * Represents line in CSV file should be imported into "operationalenvironment" table.
31 public class OperationalEnvironment {
32 @CsvBindByPosition(position = 0)
33 private String environmentId;
35 @CsvBindByPosition(position = 1)
36 private String dmaapUebAddress;
38 @CsvBindByPosition(position = 2)
39 private String ecompWorkloadContext;
41 @CsvBindByPosition(position = 3)
42 private Boolean isProduction;
44 @CsvBindByPosition(position = 4)
45 private String lastModified;
47 @CsvBindByPosition(position = 5)
48 private String status;
50 @CsvBindByPosition(position = 6)
51 private String tenant;
53 @CsvBindByPosition(position = 7)
54 private String uebApikey;
56 @CsvBindByPosition(position = 8)
57 private String uebSecretKey;
61 public String getLastModified() {
65 public void setLastModified(String lastModified) {
66 this.lastModified = lastModified;
70 public String getEnvironmentId() {
74 public void setEnvironmentId(String environmentId) {
75 this.environmentId = environmentId;
78 public String getTenant() {
82 public void setTenant(String tenant) {
86 public Boolean getIsProduction() {
90 public void setIsProduction(Boolean production) {
91 isProduction = production;
94 public String getEcompWorkloadContext() {
95 return ecompWorkloadContext;
98 public void setEcompWorkloadContext(String ecompWorkloadContext) {
99 this.ecompWorkloadContext = ecompWorkloadContext;
102 public String getStatus() {
106 public void setStatus(String status) {
107 this.status = status;
110 public void setStatus(EnvironmentStatusEnum status) {
111 this.status = status.getName();
114 public String getDmaapUebAddress() {
115 return dmaapUebAddress;
118 public void setDmaapUebAddress(String dmaapUebAddress) {
119 this.dmaapUebAddress = dmaapUebAddress;
122 public String getUebApikey() {
126 public void setUebApikey(String uebApikey) {
127 this.uebApikey = uebApikey;
130 public String getUebSecretKey() {
134 public void setUebSecretKey(String uebSecretKey) {
135 this.uebSecretKey = uebSecretKey;