Merge "CLM Changes"
[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
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 for delete")
33 @JsonIgnoreProperties(ignoreUnknown = true)
34 public class JsonDelete {
35
36     private ArrayList<String> columns = null;
37     private Map<String, String> consistencyInfo;
38     private Map<String, Object> conditions;
39     String ttl, timestamp;
40
41
42     @ApiModelProperty(value = "Conditions")
43     public Map<String, Object> getConditions() {
44         return conditions;
45     }
46
47     public void setConditions(Map<String, Object> conditions) {
48         this.conditions = conditions;
49     }
50
51     @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
52     public Map<String, String> getConsistencyInfo() {
53         return consistencyInfo;
54     }
55
56     public void setConsistencyInfo(Map<String, String> consistencyInfo) {
57         this.consistencyInfo = consistencyInfo;
58     }
59
60     @ApiModelProperty(value = "Column values")
61     public ArrayList<String> getColumns() {
62         return columns;
63     }
64
65     public void setColumns(ArrayList<String> columns) {
66         this.columns = columns;
67     }
68
69
70     @ApiModelProperty(value = "Time to live information")
71     public String getTtl() {
72         return ttl;
73     }
74
75     public void setTtl(String ttl) {
76         this.ttl = ttl;
77     }
78
79     @ApiModelProperty(value = "Time stamp")
80     public String getTimestamp() {
81         return timestamp;
82     }
83
84     public void setTimestamp(String timestamp) {
85         this.timestamp = timestamp;
86     }
87 }