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;
43 private String timestamp;
46 @ApiModelProperty(value = "Conditions")
47 public Map<String, Object> getConditions() {
51 public void setConditions(Map<String, Object> conditions) {
52 this.conditions = conditions;
55 @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
56 public Map<String, String> getConsistencyInfo() {
57 return consistencyInfo;
60 public void setConsistencyInfo(Map<String, String> consistencyInfo) {
61 this.consistencyInfo = consistencyInfo;
64 @ApiModelProperty(value = "Column values")
65 public List<String> getColumns() {
69 public void setColumns(List<String> columns) {
70 this.columns = columns;
74 @ApiModelProperty(value = "Time to live information")
75 public String getTtl() {
79 public void setTtl(String ttl) {
83 @ApiModelProperty(value = "Time stamp")
84 public String getTimestamp() {
88 public void setTimestamp(String timestamp) {
89 this.timestamp = timestamp;