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;
26 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 import io.swagger.annotations.ApiModel;
29 import io.swagger.annotations.ApiModelProperty;
31 @ApiModel(value = "JsonTable", description = "Json model creating new keyspace")
32 @JsonIgnoreProperties(ignoreUnknown = true)
33 public class JsonKeySpace {
34 private String keyspaceName;
35 private Map<String, Object> replicationInfo;
36 private String durabilityOfWrites;
37 private Map<String, String> consistencyInfo;
39 @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
40 public Map<String, String> getConsistencyInfo() {
41 return consistencyInfo;
44 public void setConsistencyInfo(Map<String, String> consistencyInfo) {
45 this.consistencyInfo = consistencyInfo;
48 @ApiModelProperty(value = "Replication information")
49 public Map<String, Object> getReplicationInfo() {
50 return replicationInfo;
53 public void setReplicationInfo(Map<String, Object> replicationInfo) {
54 this.replicationInfo = replicationInfo;
57 @ApiModelProperty(value = "Durability", allowableValues = "true,false")
58 public String getDurabilityOfWrites() {
59 return durabilityOfWrites;
62 public void setDurabilityOfWrites(String durabilityOfWrites) {
63 this.durabilityOfWrites = durabilityOfWrites;
66 @ApiModelProperty(value = "Keyspace name")
67 public String getKeyspaceName() {
71 public void setKeyspaceName(String keyspaceName) {
72 this.keyspaceName = keyspaceName;