f2232ffdd7899ee9264bffd4f7162fdf5815b16a
[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
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 = "Json model creating new keyspace")
33 @JsonIgnoreProperties(ignoreUnknown = true)
34 public class JsonKeySpace {
35     private String keyspaceName;
36     private Map<String, Object> replicationInfo;
37     private String durabilityOfWrites;
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 = "Replication information")
50     public Map<String, Object> getReplicationInfo() {
51         return replicationInfo;
52     }
53
54     public void setReplicationInfo(Map<String, Object> replicationInfo) {
55         this.replicationInfo = replicationInfo;
56     }
57
58     @ApiModelProperty(value = "Durability", allowableValues = "true,false")
59     public String getDurabilityOfWrites() {
60         return durabilityOfWrites;
61     }
62
63     public void setDurabilityOfWrites(String durabilityOfWrites) {
64         this.durabilityOfWrites = durabilityOfWrites;
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
77
78 }