2 * ============LICENSE_START==========================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 * ============LICENSE_END=============================================
20 * ====================================================================
23 package org.onap.music.datastore.jsonobjects;
25 import java.util.ArrayList;
28 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
30 import io.swagger.annotations.ApiModel;
31 import io.swagger.annotations.ApiModelProperty;
33 @ApiModel(value = "JsonTable", description = "Json model for delete")
34 @JsonIgnoreProperties(ignoreUnknown = true)
35 public class JsonDelete {
37 private ArrayList<String> columns = null;
38 private Map<String, String> consistencyInfo;
39 private Map<String, Object> conditions;
40 String ttl, timestamp;
43 @ApiModelProperty(value = "Conditions")
44 public Map<String, Object> getConditions() {
48 public void setConditions(Map<String, Object> conditions) {
49 this.conditions = conditions;
52 @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
53 public Map<String, String> getConsistencyInfo() {
54 return consistencyInfo;
57 public void setConsistencyInfo(Map<String, String> consistencyInfo) {
58 this.consistencyInfo = consistencyInfo;
61 @ApiModelProperty(value = "Column values")
62 public ArrayList<String> getColumns() {
66 public void setColumns(ArrayList<String> columns) {
67 this.columns = columns;
71 @ApiModelProperty(value = "Time to live information")
72 public String getTtl() {
76 public void setTtl(String ttl) {
80 @ApiModelProperty(value = "Time stamp")
81 public String getTimestamp() {
85 public void setTimestamp(String timestamp) {
86 this.timestamp = timestamp;