001// Generated by delombok at Wed Feb 12 09:04:33 CET 2025 002/* 003 * Copyright (c) 2010-2025 Mark Allen, Norbert Bartels. 004 * 005 * Permission is hereby granted, free of charge, to any person obtaining a copy 006 * of this software and associated documentation files (the "Software"), to deal 007 * in the Software without restriction, including without limitation the rights 008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 009 * copies of the Software, and to permit persons to whom the Software is 010 * furnished to do so, subject to the following conditions: 011 * 012 * The above copyright notice and this permission notice shall be included in 013 * all copies or substantial portions of the Software. 014 * 015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 021 * THE SOFTWARE. 022 */ 023package com.restfb.types.whatsapp.platform.message; 024 025import com.restfb.Facebook; 026import com.restfb.types.AbstractFacebookType; 027 028public class Document extends AbstractFacebookType { 029 /** 030 * ID for the document 031 */ 032 @Facebook 033 private String id; 034 /** 035 * Mime type for the document 036 */ 037 @Facebook("mime_type") 038 private String mimeType; 039 /** 040 * Document hash 041 */ 042 @Facebook 043 private String sha256; 044 /** 045 * Caption for the document, if provided 046 */ 047 @Facebook 048 private String caption; 049 /** 050 * Name for the file on the sender's device 051 */ 052 @Facebook 053 private String filename; 054 055 /** 056 * ID for the document 057 */ 058 @java.lang.SuppressWarnings("all") 059 public String getId() { 060 return this.id; 061 } 062 063 /** 064 * ID for the document 065 */ 066 @java.lang.SuppressWarnings("all") 067 public void setId(final String id) { 068 this.id = id; 069 } 070 071 /** 072 * Mime type for the document 073 */ 074 @java.lang.SuppressWarnings("all") 075 public String getMimeType() { 076 return this.mimeType; 077 } 078 079 /** 080 * Mime type for the document 081 */ 082 @java.lang.SuppressWarnings("all") 083 public void setMimeType(final String mimeType) { 084 this.mimeType = mimeType; 085 } 086 087 /** 088 * Document hash 089 */ 090 @java.lang.SuppressWarnings("all") 091 public String getSha256() { 092 return this.sha256; 093 } 094 095 /** 096 * Document hash 097 */ 098 @java.lang.SuppressWarnings("all") 099 public void setSha256(final String sha256) { 100 this.sha256 = sha256; 101 } 102 103 /** 104 * Caption for the document, if provided 105 */ 106 @java.lang.SuppressWarnings("all") 107 public String getCaption() { 108 return this.caption; 109 } 110 111 /** 112 * Caption for the document, if provided 113 */ 114 @java.lang.SuppressWarnings("all") 115 public void setCaption(final String caption) { 116 this.caption = caption; 117 } 118 119 /** 120 * Name for the file on the sender's device 121 */ 122 @java.lang.SuppressWarnings("all") 123 public String getFilename() { 124 return this.filename; 125 } 126 127 /** 128 * Name for the file on the sender's device 129 */ 130 @java.lang.SuppressWarnings("all") 131 public void setFilename(final String filename) { 132 this.filename = filename; 133 } 134}