@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-11-04T01:02:11.281898+03:00[Europe/Moscow]") public class Attachment extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Attachment.CustomTypeAdapterFactory |
| Modifier and Type | Field and Description |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_FILENAME |
static String |
SERIALIZED_NAME_MIME |
static String |
SERIALIZED_NAME_SIZE |
static String |
SERIALIZED_NAME_URL |
| Constructor and Description |
|---|
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Attachment |
filename(String filename) |
static Attachment |
fromJson(String jsonString)
Create an instance of Attachment given an JSON string
|
String |
getFilename()
Get filename
|
String |
getMime()
Get mime
|
Integer |
getSize()
Get size
|
URI |
getUrl()
Get url
|
int |
hashCode() |
Attachment |
mime(String mime) |
void |
setFilename(String filename) |
void |
setMime(String mime) |
void |
setSize(Integer size) |
void |
setUrl(URI url) |
Attachment |
size(Integer size) |
String |
toJson()
Convert an instance of Attachment to an JSON string
|
String |
toString() |
Attachment |
url(URI url) |
public static final String SERIALIZED_NAME_SIZE
public static final String SERIALIZED_NAME_MIME
public static final String SERIALIZED_NAME_FILENAME
public static final String SERIALIZED_NAME_URL
public Attachment size(Integer size)
public void setSize(Integer size)
public Attachment mime(String mime)
public void setMime(String mime)
public Attachment filename(String filename)
public void setFilename(String filename)
public Attachment url(URI url)
public void setUrl(URI url)
public static Attachment fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to Attachmentpublic String toJson()
Copyright © 2023. All rights reserved.