Push variuos changes
[music.git] / jar / src / main / java / org / onap / music / datastore / jsonobjects / JsonTable.java
1 /*
2  * ============LICENSE_START==========================================
3  * org.onap.music
4  * ===================================================================
5  *  Copyright (c) 2017 AT&T Intellectual Property
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  * 
19  * ============LICENSE_END=============================================
20  * ====================================================================
21  */
22
23 package org.onap.music.datastore.jsonobjects;
24
25 import java.util.Map;
26
27 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28
29 import io.swagger.annotations.ApiModel;
30 import io.swagger.annotations.ApiModelProperty;
31
32 @ApiModel(value = "JsonTable", description = "Defines the Json for Creating a new Table.")
33 @JsonIgnoreProperties(ignoreUnknown = true)
34 public class JsonTable {
35     private String keyspaceName;
36     private String tableName;
37
38     private Map<String, String> fields;
39     private Map<String, Object> properties;
40     private String primaryKey;
41     private String sortingKey;
42     private String clusteringOrder;
43     private Map<String, String> consistencyInfo;
44
45     @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
46     public Map<String, String> getConsistencyInfo() {
47         return consistencyInfo;
48     }
49
50     public void setConsistencyInfo(Map<String, String> consistencyInfo) {
51         this.consistencyInfo = consistencyInfo;
52     }
53
54     @ApiModelProperty(value = "Properties")
55     public Map<String, Object> getProperties() {
56         return properties;
57     }
58
59     public void setProperties(Map<String, Object> properties) {
60         this.properties = properties;
61     }
62
63     @ApiModelProperty(value = "Fields")
64     public Map<String, String> getFields() {
65         return fields;
66     }
67
68     public void setFields(Map<String, String> fields) {
69         this.fields = fields;
70     }
71
72     @ApiModelProperty(value = "KeySpace Name")
73     public String getKeyspaceName() {
74         return keyspaceName;
75     }
76
77     public void setKeyspaceName(String keyspaceName) {
78         this.keyspaceName = keyspaceName;
79     }
80
81     @ApiModelProperty(value = "Table Name")
82     public String getTableName() {
83         return tableName;
84     }
85
86     public void setTableName(String tableName) {
87         this.tableName = tableName;
88     }
89
90     @ApiModelProperty(value = "Sorting Key")
91     public String getSortingKey() {
92         return sortingKey;
93     }
94
95     public void setSortingKey(String sortingKey) {
96         this.sortingKey = sortingKey;
97     }
98
99     @ApiModelProperty(value = "Clustering Order", notes = "")
100     public String getClusteringOrder() {
101         return clusteringOrder;
102     }
103
104     public void setClusteringOrder(String clusteringOrder) {
105         this.clusteringOrder = clusteringOrder;
106     }
107
108     @ApiModelProperty(value = "Primary Key")
109     public String getPrimaryKey() {
110         return primaryKey;
111     }
112
113     public void setPrimaryKey(String primaryKey) {
114         this.primaryKey = primaryKey;
115     }
116
117
118 }