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 * ====================================================================
22 package org.onap.music.datastore.jsonobjects;
24 import java.util.ArrayList;
26 import io.swagger.annotations.ApiModel;
27 import io.swagger.annotations.ApiModelProperty;
29 @ApiModel(value = "JsonTable", description = "Json model for delete")
30 public class JsonDelete {
32 private ArrayList<String> columns = null;
33 private Map<String, String> consistencyInfo;
34 private Map<String, Object> conditions;
35 String ttl, timestamp;
38 @ApiModelProperty(value = "Conditions")
39 public Map<String, Object> getConditions() {
43 public void setConditions(Map<String, Object> conditions) {
44 this.conditions = conditions;
47 @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
48 public Map<String, String> getConsistencyInfo() {
49 return consistencyInfo;
52 public void setConsistencyInfo(Map<String, String> consistencyInfo) {
53 this.consistencyInfo = consistencyInfo;
56 @ApiModelProperty(value = "Column values")
57 public ArrayList<String> getColumns() {
61 public void setColumns(ArrayList<String> columns) {
62 this.columns = columns;
66 @ApiModelProperty(value = "Time to live information")
67 public String getTtl() {
71 public void setTtl(String ttl) {
75 @ApiModelProperty(value = "Time stamp")
76 public String getTimestamp() {
80 public void setTimestamp(String timestamp) {
81 this.timestamp = timestamp;