@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class DownloadAttachmentDto extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DownloadAttachmentDto.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BASE64_FILE_CONTENTS |
static String |
SERIALIZED_NAME_CONTENT_TYPE |
static String |
SERIALIZED_NAME_SIZE_BYTES |
Constructor and Description |
---|
DownloadAttachmentDto() |
Modifier and Type | Method and Description |
---|---|
DownloadAttachmentDto |
base64FileContents(String base64FileContents) |
DownloadAttachmentDto |
contentType(String contentType) |
boolean |
equals(Object o) |
static DownloadAttachmentDto |
fromJson(String jsonString)
Create an instance of DownloadAttachmentDto given an JSON string
|
String |
getBase64FileContents()
Base64 encoded string of attachment bytes.
|
String |
getContentType()
Content type of attachment.
|
Long |
getSizeBytes()
Size in bytes of attachment content
|
int |
hashCode() |
void |
setBase64FileContents(String base64FileContents) |
void |
setContentType(String contentType) |
void |
setSizeBytes(Long sizeBytes) |
DownloadAttachmentDto |
sizeBytes(Long sizeBytes) |
String |
toJson()
Convert an instance of DownloadAttachmentDto 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_BASE64_FILE_CONTENTS
public static final String SERIALIZED_NAME_CONTENT_TYPE
public static final String SERIALIZED_NAME_SIZE_BYTES
public DownloadAttachmentDto base64FileContents(String base64FileContents)
@Nonnull public String getBase64FileContents()
public void setBase64FileContents(String base64FileContents)
public DownloadAttachmentDto contentType(String contentType)
@Nonnull public String getContentType()
public void setContentType(String contentType)
public DownloadAttachmentDto sizeBytes(Long sizeBytes)
@Nonnull public Long getSizeBytes()
public void setSizeBytes(Long sizeBytes)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to DownloadAttachmentDtopublic static DownloadAttachmentDto fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to DownloadAttachmentDtopublic String toJson()
Copyright © 2023. All rights reserved.