Sonar Fixes - MusicDataStoreHandle.java
[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
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 partitionKey;
43     private String clusteringKey;
44     private String filteringKey;
45     private String clusteringOrder;
46     private Map<String, String> consistencyInfo;
47
48     @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
49     public Map<String, String> getConsistencyInfo() {
50         return consistencyInfo;
51     }
52
53     public void setConsistencyInfo(Map<String, String> consistencyInfo) {
54         this.consistencyInfo = consistencyInfo;
55     }
56
57     @ApiModelProperty(value = "Properties")
58     public Map<String, Object> getProperties() {
59         return properties;
60     }
61
62     public void setProperties(Map<String, Object> properties) {
63         this.properties = properties;
64     }
65
66     @ApiModelProperty(value = "Fields")
67     public Map<String, String> getFields() {
68         return fields;
69     }
70
71     public void setFields(Map<String, String> fields) {
72         this.fields = fields;
73     }
74
75     @ApiModelProperty(value = "KeySpace Name")
76     public String getKeyspaceName() {
77         return keyspaceName;
78     }
79
80     public void setKeyspaceName(String keyspaceName) {
81         this.keyspaceName = keyspaceName;
82     }
83
84     @ApiModelProperty(value = "Table Name")
85     public String getTableName() {
86         return tableName;
87     }
88
89     public void setTableName(String tableName) {
90         this.tableName = tableName;
91     }
92
93     @ApiModelProperty(value = "Sorting Key")
94     public String getSortingKey() {
95         return sortingKey;
96     }
97
98     public void setSortingKey(String sortingKey) {
99         this.sortingKey = sortingKey;
100     }
101
102     @ApiModelProperty(value = "Clustering Order", notes = "")
103     public String getClusteringOrder() {
104         return clusteringOrder;
105     }
106
107     public void setClusteringOrder(String clusteringOrder) {
108         this.clusteringOrder = clusteringOrder;
109     }
110
111     @ApiModelProperty(value = "Primary Key")
112     public String getPrimaryKey() {
113         return primaryKey;
114     }
115
116     public void setPrimaryKey(String primaryKey) {
117         this.primaryKey = primaryKey;
118     }
119
120     public String getClusteringKey() {
121         return clusteringKey;
122     }
123
124     public void setClusteringKey(String clusteringKey) {
125         this.clusteringKey = clusteringKey;
126     }
127
128     public String getFilteringKey() {
129         return filteringKey;
130     }
131
132     public void setFilteringKey(String filteringKey) {
133         this.filteringKey = filteringKey;
134     }
135
136     public String getPartitionKey() {
137         return partitionKey;
138     }
139
140     public void setPartitionKey(String partitionKey) {
141         this.partitionKey = partitionKey;
142     }
143
144
145 }