2 * ============LICENSE_START==========================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 * ============LICENSE_END=============================================
20 * ====================================================================
22 package org.onap.music.datastore.jsonobjects;
25 import io.swagger.annotations.ApiModel;
26 import io.swagger.annotations.ApiModelProperty;
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;
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;
40 @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
41 public Map<String, String> getConsistencyInfo() {
42 return consistencyInfo;
45 public void setConsistencyInfo(Map<String, String> consistencyInfo) {
46 this.consistencyInfo = consistencyInfo;
49 @ApiModelProperty(value = "Properties")
50 public Map<String, Object> getProperties() {
54 public void setProperties(Map<String, Object> properties) {
55 this.properties = properties;
58 @ApiModelProperty(value = "Fields")
59 public Map<String, String> getFields() {
63 public void setFields(Map<String, String> fields) {
67 @ApiModelProperty(value = "KeySpace Name")
68 public String getKeyspaceName() {
72 public void setKeyspaceName(String keyspaceName) {
73 this.keyspaceName = keyspaceName;
76 @ApiModelProperty(value = "Table Name")
77 public String getTableName() {
81 public void setTableName(String tableName) {
82 this.tableName = tableName;
85 @ApiModelProperty(value = "Sorting Key")
86 public String getSortingKey() {
90 public void setSortingKey(String sortingKey) {
91 this.sortingKey = sortingKey;
94 @ApiModelProperty(value = "Clustering Order", notes = "")
95 public String getClusteringOrder() {
96 return clusteringOrder;
99 public void setClusteringOrder(String clusteringOrder) {
100 this.clusteringOrder = clusteringOrder;
103 @ApiModelProperty(value = "Primary Key")
104 public String getPrimaryKey() {
108 public void setPrimaryKey(String primaryKey) {
109 this.primaryKey = primaryKey;