001/* 002 * JKNIV, whinstone one contract to access your database. 003 * 004 * Copyright (C) 2017, the original author or authors. 005 * 006 * This library is free software; you can redistribute it and/or 007 * modify it under the terms of the GNU Lesser General Public 008 * License as published by the Free Software Foundation; either 009 * version 2.1 of the License. 010 * 011 * This library is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 014 * Lesser General Public License for more details. 015 * 016 * You should have received a copy of the GNU Lesser General Public 017 * License along with this library; if not, write to the Free Software Foundation, Inc., 018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 019 */ 020package net.sf.jkniv.whinstone.couchdb.commands; 021 022import java.util.HashMap; 023import java.util.Map; 024import com.fasterxml.jackson.annotation.JsonAnyGetter; 025import com.fasterxml.jackson.annotation.JsonAnySetter; 026import com.fasterxml.jackson.annotation.JsonIgnore; 027import com.fasterxml.jackson.annotation.JsonInclude; 028import com.fasterxml.jackson.annotation.JsonProperty; 029import com.fasterxml.jackson.annotation.JsonPropertyOrder; 030 031@JsonInclude(JsonInclude.Include.NON_NULL) 032@JsonPropertyOrder( 033{ "ok", "id", "rev" }) 034public class DesignAnswer 035{ 036 @JsonProperty("ok") 037 private Boolean ok; 038 @JsonProperty("id") 039 private String id; 040 @JsonProperty("rev") 041 private String rev; 042 @JsonIgnore 043 private Map<String, Object> additionalProperties = new HashMap<String, Object>(); 044 045 @JsonProperty("ok") 046 public Boolean getOk() 047 { 048 return ok; 049 } 050 051 @JsonProperty("ok") 052 public void setOk(Boolean ok) 053 { 054 this.ok = ok; 055 } 056 057 @JsonProperty("id") 058 public String getId() 059 { 060 return id; 061 } 062 063 @JsonProperty("id") 064 public void setId(String id) 065 { 066 this.id = id; 067 } 068 069 @JsonProperty("rev") 070 public String getRev() 071 { 072 return rev; 073 } 074 075 @JsonProperty("rev") 076 public void setRev(String rev) 077 { 078 this.rev = rev; 079 } 080 081 @JsonAnyGetter 082 public Map<String, Object> getAdditionalProperties() 083 { 084 return this.additionalProperties; 085 } 086 087 @JsonAnySetter 088 public void setAdditionalProperty(String name, Object value) 089 { 090 this.additionalProperties.put(name, value); 091 } 092 093}