2 * ============LICENSE_START==========================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ============LICENSE_END=============================================
22 * ====================================================================
25 package org.onap.music.datastore.jsonobjects;
27 import java.util.List;
30 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
32 import io.swagger.annotations.ApiModel;
33 import io.swagger.annotations.ApiModelProperty;
35 @ApiModel(value = "JsonTable", description = "Json model for delete")
36 @JsonIgnoreProperties(ignoreUnknown = true)
37 public class JsonDelete {
39 private List<String> columns = null;
40 private Map<String, String> consistencyInfo;
41 private Map<String, Object> conditions;
42 String ttl, timestamp;
45 @ApiModelProperty(value = "Conditions")
46 public Map<String, Object> getConditions() {
50 public void setConditions(Map<String, Object> conditions) {
51 this.conditions = conditions;
54 @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
55 public Map<String, String> getConsistencyInfo() {
56 return consistencyInfo;
59 public void setConsistencyInfo(Map<String, String> consistencyInfo) {
60 this.consistencyInfo = consistencyInfo;
63 @ApiModelProperty(value = "Column values")
64 public List<String> getColumns() {
68 public void setColumns(List<String> columns) {
69 this.columns = columns;
73 @ApiModelProperty(value = "Time to live information")
74 public String getTtl() {
78 public void setTtl(String ttl) {
82 @ApiModelProperty(value = "Time stamp")
83 public String getTimestamp() {
87 public void setTimestamp(String timestamp) {
88 this.timestamp = timestamp;