re base code
[sdc.git] / asdctool / src / main / java / org / openecomp / sdc / asdctool / simulator / tenant / OperationalEnvironment.java
1 package org.openecomp.sdc.asdctool.simulator.tenant;
2
3 import com.opencsv.bean.CsvBindByPosition;
4 import org.openecomp.sdc.be.datatypes.enums.EnvironmentStatusEnum;
5
6 /**
7  * Represents line in CSV file should be imported into "operationalenvironment" table.
8  * @author dr2032
9  *
10  */
11 public class OperationalEnvironment {
12         @CsvBindByPosition(position = 0)
13     private String environmentId;
14
15         @CsvBindByPosition(position = 1)
16         private String dmaapUebAddress;
17
18         @CsvBindByPosition(position = 2)
19         private String ecompWorkloadContext;
20         
21         @CsvBindByPosition(position = 3)
22         private Boolean isProduction;
23         
24         @CsvBindByPosition(position = 4)
25         private String lastModified;
26
27         @CsvBindByPosition(position = 5)
28     private String status;
29         
30         @CsvBindByPosition(position = 6)
31         private String tenant;
32
33         @CsvBindByPosition(position = 7)
34     private String uebApikey;
35
36     @CsvBindByPosition(position = 8)
37     private String uebSecretKey;
38
39
40
41     public String getLastModified() {
42         return lastModified;
43     }
44
45     public void setLastModified(String lastModified) {
46         this.lastModified = lastModified;
47     }
48
49    
50     public String getEnvironmentId() {
51         return environmentId;
52     }
53
54     public void setEnvironmentId(String environmentId) {
55         this.environmentId = environmentId;
56     }
57
58     public String getTenant() {
59         return tenant;
60     }
61
62     public void setTenant(String tenant) {
63         this.tenant = tenant;
64     }
65
66     public Boolean getIsProduction() {
67         return isProduction;
68     }
69
70     public void setIsProduction(Boolean production) {
71         isProduction = production;
72     }
73
74     public String getEcompWorkloadContext() {
75         return ecompWorkloadContext;
76     }
77
78     public void setEcompWorkloadContext(String ecompWorkloadContext) {
79         this.ecompWorkloadContext = ecompWorkloadContext;
80     }
81
82     public String getStatus() {
83         return status;
84     }
85
86     public void setStatus(String status) {
87         this.status = status;
88     }
89
90     public void setStatus(EnvironmentStatusEnum status) {
91         this.status = status.getName();
92     }
93
94     public String getDmaapUebAddress() {
95         return dmaapUebAddress;
96     }
97
98     public void setDmaapUebAddress(String dmaapUebAddress) {
99         this.dmaapUebAddress = dmaapUebAddress;
100     }
101
102     public String getUebApikey() {
103         return uebApikey;
104     }
105
106     public void setUebApikey(String uebApikey) {
107         this.uebApikey = uebApikey;
108     }
109
110     public String getUebSecretKey() {
111         return uebSecretKey;
112     }
113
114     public void setUebSecretKey(String uebSecretKey) {
115         this.uebSecretKey = uebSecretKey;
116     }
117
118 }