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