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