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;
27 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
29 import io.swagger.annotations.ApiModel;
30 import io.swagger.annotations.ApiModelProperty;
32 @ApiModel(value = "JsonTable", description = "Json model for delete")
33 @JsonIgnoreProperties(ignoreUnknown = true)
34 public class JsonDelete {
36 private ArrayList<String> columns = null;
37 private Map<String, String> consistencyInfo;
38 private Map<String, Object> conditions;
39 String ttl, timestamp;
42 @ApiModelProperty(value = "Conditions")
43 public Map<String, Object> getConditions() {
47 public void setConditions(Map<String, Object> conditions) {
48 this.conditions = conditions;
51 @ApiModelProperty(value = "Consistency level", allowableValues = "eventual,critical,atomic")
52 public Map<String, String> getConsistencyInfo() {
53 return consistencyInfo;
56 public void setConsistencyInfo(Map<String, String> consistencyInfo) {
57 this.consistencyInfo = consistencyInfo;
60 @ApiModelProperty(value = "Column values")
61 public ArrayList<String> getColumns() {
65 public void setColumns(ArrayList<String> columns) {
66 this.columns = columns;
70 @ApiModelProperty(value = "Time to live information")
71 public String getTtl() {
75 public void setTtl(String ttl) {
79 @ApiModelProperty(value = "Time stamp")
80 public String getTimestamp() {
84 public void setTimestamp(String timestamp) {
85 this.timestamp = timestamp;