@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class AttachmentMetaData extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AttachmentMetaData.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CONTENT_LENGTH |
static String |
SERIALIZED_NAME_CONTENT_TYPE |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_NAME |
Constructor and Description |
---|
AttachmentMetaData() |
Modifier and Type | Method and Description |
---|---|
AttachmentMetaData |
contentLength(Long contentLength) |
AttachmentMetaData |
contentType(String contentType) |
boolean |
equals(Object o) |
static AttachmentMetaData |
fromJson(String jsonString)
Create an instance of AttachmentMetaData given an JSON string
|
Long |
getContentLength()
Size of attachment in bytes
|
String |
getContentType()
Content type of attachment such as `image/png`
|
String |
getId()
ID of attachment.
|
String |
getName()
Name of attachment if given
|
int |
hashCode() |
AttachmentMetaData |
id(String id) |
AttachmentMetaData |
name(String name) |
void |
setContentLength(Long contentLength) |
void |
setContentType(String contentType) |
void |
setId(String id) |
void |
setName(String name) |
String |
toJson()
Convert an instance of AttachmentMetaData to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_CONTENT_TYPE
public static final String SERIALIZED_NAME_CONTENT_LENGTH
public static final String SERIALIZED_NAME_ID
public AttachmentMetaData name(String name)
public void setName(String name)
public AttachmentMetaData contentType(String contentType)
@Nonnull public String getContentType()
public void setContentType(String contentType)
public AttachmentMetaData contentLength(Long contentLength)
@Nonnull public Long getContentLength()
public void setContentLength(Long contentLength)
public AttachmentMetaData id(String id)
@Nonnull public String getId()
public void setId(String id)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to AttachmentMetaDatapublic static AttachmentMetaData fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to AttachmentMetaDatapublic String toJson()
Copyright © 2023. All rights reserved.