Initial code Import.
[music.git] / src / main / java / org / onap / music / datastore / jsonobjects / JsonDelete.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.ArrayList;
25 import java.util.Map;
26 import io.swagger.annotations.ApiModel;
27 import io.swagger.annotations.ApiModelProperty;
28
29 @ApiModel(value = "JsonTable", description = "Json model for delete")
30 public class JsonDelete {
31
32     private ArrayList<String> columns = null;
33     private Map<String, String> consistencyInfo;
34     private Map<String, Object> conditions;
35     String ttl, timestamp;
36
37
38     @ApiModelProperty(value = "Conditions")
39     public Map<String, Object> getConditions() {
40         return conditions;
41     }
42
43     public void setConditions(Map<String, Object> conditions) {
44         this.conditions = conditions;
45     }
46
47     @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
48     public Map<String, String> getConsistencyInfo() {
49         return consistencyInfo;
50     }
51
52     public void setConsistencyInfo(Map<String, String> consistencyInfo) {
53         this.consistencyInfo = consistencyInfo;
54     }
55
56     @ApiModelProperty(value = "Column values")
57     public ArrayList<String> getColumns() {
58         return columns;
59     }
60
61     public void setColumns(ArrayList<String> columns) {
62         this.columns = columns;
63     }
64
65
66     @ApiModelProperty(value = "Time to live information")
67     public String getTtl() {
68         return ttl;
69     }
70
71     public void setTtl(String ttl) {
72         this.ttl = ttl;
73     }
74
75     @ApiModelProperty(value = "Time stamp")
76     public String getTimestamp() {
77         return timestamp;
78     }
79
80     public void setTimestamp(String timestamp) {
81         this.timestamp = timestamp;
82     }
83 }