b9b82e08f45ce516af880b649d4a7817bd1b4f89
[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     private String ttl;
43     private String timestamp;
44
45
46     @ApiModelProperty(value = "Conditions")
47     public Map<String, Object> getConditions() {
48         return conditions;
49     }
50
51     public void setConditions(Map<String, Object> conditions) {
52         this.conditions = conditions;
53     }
54
55     @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
56     public Map<String, String> getConsistencyInfo() {
57         return consistencyInfo;
58     }
59
60     public void setConsistencyInfo(Map<String, String> consistencyInfo) {
61         this.consistencyInfo = consistencyInfo;
62     }
63
64     @ApiModelProperty(value = "Column values")
65     public List<String> getColumns() {
66         return columns;
67     }
68
69     public void setColumns(List<String> columns) {
70         this.columns = columns;
71     }
72
73
74     @ApiModelProperty(value = "Time to live information")
75     public String getTtl() {
76         return ttl;
77     }
78
79     public void setTtl(String ttl) {
80         this.ttl = ttl;
81     }
82
83     @ApiModelProperty(value = "Time stamp")
84     public String getTimestamp() {
85         return timestamp;
86     }
87
88     public void setTimestamp(String timestamp) {
89         this.timestamp = timestamp;
90     }
91 }