Added oparent to sdc main
[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
21 package org.openecomp.sdc.asdctool.simulator.tenant;
22
23 import com.opencsv.bean.CsvBindByPosition;
24 import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum;
25
26 /**
27  * Represents line in CSV file should be imported into "operationalenvironment" table.
28  * @author dr2032
29  *
30  */
31 public class OperationalEnvironment {
32         @CsvBindByPosition(position = 0)
33     private String environmentId;
34
35         @CsvBindByPosition(position = 1)
36         private String dmaapUebAddress;
37
38         @CsvBindByPosition(position = 2)
39         private String ecompWorkloadContext;
40         
41         @CsvBindByPosition(position = 3)
42         private Boolean isProduction;
43         
44         @CsvBindByPosition(position = 4)
45         private String lastModified;
46
47         @CsvBindByPosition(position = 5)
48     private String status;
49         
50         @CsvBindByPosition(position = 6)
51         private String tenant;
52
53         @CsvBindByPosition(position = 7)
54     private String uebApikey;
55
56     @CsvBindByPosition(position = 8)
57     private String uebSecretKey;
58
59
60
61     public String getLastModified() {
62         return lastModified;
63     }
64
65     public void setLastModified(String lastModified) {
66         this.lastModified = lastModified;
67     }
68
69    
70     public String getEnvironmentId() {
71         return environmentId;
72     }
73
74     public void setEnvironmentId(String environmentId) {
75         this.environmentId = environmentId;
76     }
77
78     public String getTenant() {
79         return tenant;
80     }
81
82     public void setTenant(String tenant) {
83         this.tenant = tenant;
84     }
85
86     public Boolean getIsProduction() {
87         return isProduction;
88     }
89
90     public void setIsProduction(Boolean production) {
91         isProduction = production;
92     }
93
94     public String getEcompWorkloadContext() {
95         return ecompWorkloadContext;
96     }
97
98     public void setEcompWorkloadContext(String ecompWorkloadContext) {
99         this.ecompWorkloadContext = ecompWorkloadContext;
100     }
101
102     public String getStatus() {
103         return status;
104     }
105
106     public void setStatus(String status) {
107         this.status = status;
108     }
109
110     public void setStatus(EnvironmentStatusEnum status) {
111         this.status = status.getName();
112     }
113
114     public String getDmaapUebAddress() {
115         return dmaapUebAddress;
116     }
117
118     public void setDmaapUebAddress(String dmaapUebAddress) {
119         this.dmaapUebAddress = dmaapUebAddress;
120     }
121
122     public String getUebApikey() {
123         return uebApikey;
124     }
125
126     public void setUebApikey(String uebApikey) {
127         this.uebApikey = uebApikey;
128     }
129
130     public String getUebSecretKey() {
131         return uebSecretKey;
132     }
133
134     public void setUebSecretKey(String uebSecretKey) {
135         this.uebSecretKey = uebSecretKey;
136     }
137
138 }