Release version 1.13.7
[sdc.git] / asdctool / src / main / java / org / openecomp / sdc / asdctool / simulator / tenant / OperationalEnvironment.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 package org.openecomp.sdc.asdctool.simulator.tenant;
21
22 import com.opencsv.bean.CsvBindByPosition;
23 import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum;
24
25 /**
26  * Represents line in CSV file should be imported into "operationalenvironment" table.
27  *
28  * @author dr2032
29  */
30 public class OperationalEnvironment {
31
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;
50
51     public String getLastModified() {
52         return lastModified;
53     }
54
55     public void setLastModified(String lastModified) {
56         this.lastModified = lastModified;
57     }
58
59     public String getEnvironmentId() {
60         return environmentId;
61     }
62
63     public void setEnvironmentId(String environmentId) {
64         this.environmentId = environmentId;
65     }
66
67     public String getTenant() {
68         return tenant;
69     }
70
71     public void setTenant(String tenant) {
72         this.tenant = tenant;
73     }
74
75     public Boolean getIsProduction() {
76         return isProduction;
77     }
78
79     public void setIsProduction(Boolean production) {
80         isProduction = production;
81     }
82
83     public String getEcompWorkloadContext() {
84         return ecompWorkloadContext;
85     }
86
87     public void setEcompWorkloadContext(String ecompWorkloadContext) {
88         this.ecompWorkloadContext = ecompWorkloadContext;
89     }
90
91     public String getStatus() {
92         return status;
93     }
94
95     public void setStatus(String status) {
96         this.status = status;
97     }
98
99     public void setStatus(EnvironmentStatusEnum status) {
100         this.status = status.getName();
101     }
102
103     public String getDmaapUebAddress() {
104         return dmaapUebAddress;
105     }
106
107     public void setDmaapUebAddress(String dmaapUebAddress) {
108         this.dmaapUebAddress = dmaapUebAddress;
109     }
110
111     public String getUebApikey() {
112         return uebApikey;
113     }
114
115     public void setUebApikey(String uebApikey) {
116         this.uebApikey = uebApikey;
117     }
118
119     public String getUebSecretKey() {
120         return uebSecretKey;
121     }
122
123     public void setUebSecretKey(String uebSecretKey) {
124         this.uebSecretKey = uebSecretKey;
125     }
126 }