b98a391d96efe6df5cde20541ffb9d4fb0c87c78
[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  *  Modifications Copyright (c) 2019 Samsung
8  * ===================================================================
9  *  Licensed under the Apache License, Version 2.0 (the "License");
10  *  you may not use this file except in compliance with the License.
11  *  You may obtain a copy of the License at
12  * 
13  *     http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  *  Unless required by applicable law or agreed to in writing, software
16  *  distributed under the License is distributed on an "AS IS" BASIS,
17  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  *  See the License for the specific language governing permissions and
19  *  limitations under the License.
20  * 
21  * ============LICENSE_END=============================================
22  * ====================================================================
23  */
24
25 package org.onap.music.datastore.jsonobjects;
26
27 import java.util.List;
28 import java.util.Map;
29
30 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
31
32 import io.swagger.annotations.ApiModel;
33 import io.swagger.annotations.ApiModelProperty;
34
35 @ApiModel(value = "JsonTable", description = "Json model for delete")
36 @JsonIgnoreProperties(ignoreUnknown = true)
37 public class JsonDelete {
38
39     private List<String> columns = null;
40     private Map<String, String> consistencyInfo;
41     private Map<String, Object> conditions;
42     String ttl, timestamp;
43
44
45     @ApiModelProperty(value = "Conditions")
46     public Map<String, Object> getConditions() {
47         return conditions;
48     }
49
50     public void setConditions(Map<String, Object> conditions) {
51         this.conditions = conditions;
52     }
53
54     @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
55     public Map<String, String> getConsistencyInfo() {
56         return consistencyInfo;
57     }
58
59     public void setConsistencyInfo(Map<String, String> consistencyInfo) {
60         this.consistencyInfo = consistencyInfo;
61     }
62
63     @ApiModelProperty(value = "Column values")
64     public List<String> getColumns() {
65         return columns;
66     }
67
68     public void setColumns(List<String> columns) {
69         this.columns = columns;
70     }
71
72
73     @ApiModelProperty(value = "Time to live information")
74     public String getTtl() {
75         return ttl;
76     }
77
78     public void setTtl(String ttl) {
79         this.ttl = ttl;
80     }
81
82     @ApiModelProperty(value = "Time stamp")
83     public String getTimestamp() {
84         return timestamp;
85     }
86
87     public void setTimestamp(String timestamp) {
88         this.timestamp = timestamp;
89     }
90 }