@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class UploadAttachmentOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UploadAttachmentOptions.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_BASE64_CONTENTS |
static String |
SERIALIZED_NAME_CONTENT_TYPE |
static String |
SERIALIZED_NAME_FILENAME |
Constructor and Description |
---|
UploadAttachmentOptions() |
Modifier and Type | Method and Description |
---|---|
UploadAttachmentOptions |
base64Contents(String base64Contents) |
UploadAttachmentOptions |
contentType(String contentType) |
boolean |
equals(Object o) |
UploadAttachmentOptions |
filename(String filename) |
static UploadAttachmentOptions |
fromJson(String jsonString)
Create an instance of UploadAttachmentOptions given an JSON string
|
String |
getBase64Contents()
Base64 encoded string of file contents.
|
String |
getContentType()
Optional contentType for file.
|
String |
getFilename()
Optional filename to save upload with.
|
int |
hashCode() |
void |
setBase64Contents(String base64Contents) |
void |
setContentType(String contentType) |
void |
setFilename(String filename) |
String |
toJson()
Convert an instance of UploadAttachmentOptions 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_CONTENT_TYPE
public static final String SERIALIZED_NAME_FILENAME
public static final String SERIALIZED_NAME_BASE64_CONTENTS
public UploadAttachmentOptions contentType(String contentType)
@Nullable public String getContentType()
public void setContentType(String contentType)
public UploadAttachmentOptions filename(String filename)
@Nullable public String getFilename()
public void setFilename(String filename)
public UploadAttachmentOptions base64Contents(String base64Contents)
@Nonnull public String getBase64Contents()
public void setBase64Contents(String base64Contents)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to UploadAttachmentOptionspublic static UploadAttachmentOptions fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to UploadAttachmentOptionspublic String toJson()
Copyright © 2023. All rights reserved.