Initial code Import.
[music.git] / src / main / java / org / onap / music / datastore / jsonobjects / JsonKeySpace.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 = "Json model creating new keyspace")
29 public class JsonKeySpace {
30     private String keyspaceName;
31     private Map<String, Object> replicationInfo;
32     private String durabilityOfWrites;
33     private Map<String, String> consistencyInfo;
34
35     @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
36     public Map<String, String> getConsistencyInfo() {
37         return consistencyInfo;
38     }
39
40     public void setConsistencyInfo(Map<String, String> consistencyInfo) {
41         this.consistencyInfo = consistencyInfo;
42     }
43
44     @ApiModelProperty(value = "Replication information")
45     public Map<String, Object> getReplicationInfo() {
46         return replicationInfo;
47     }
48
49     public void setReplicationInfo(Map<String, Object> replicationInfo) {
50         this.replicationInfo = replicationInfo;
51     }
52
53     @ApiModelProperty(value = "Durability", allowableValues = "true,false")
54     public String getDurabilityOfWrites() {
55         return durabilityOfWrites;
56     }
57
58     public void setDurabilityOfWrites(String durabilityOfWrites) {
59         this.durabilityOfWrites = durabilityOfWrites;
60     }
61
62     @ApiModelProperty(value = "Keyspace name")
63     public String getKeyspaceName() {
64         return keyspaceName;
65     }
66
67     public void setKeyspaceName(String keyspaceName) {
68         this.keyspaceName = keyspaceName;
69     }
70
71
72
73 }