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