Package com.boldsign.model
Class AttachmentInfo
- java.lang.Object
-
- com.boldsign.model.AttachmentInfo
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.8.0") public class AttachmentInfo extends Object
AttachmentInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttachmentInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ACCEPTED_FILE_TYPESstatic StringSERIALIZED_NAME_ALLOWED_FILE_TYPESstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_TITLE
-
Constructor Summary
Constructors Constructor Description AttachmentInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttachmentInfoacceptedFileTypes(List<String> acceptedFileTypes)AttachmentInfoaddAcceptedFileTypesItem(String acceptedFileTypesItem)AttachmentInfoallowedFileTypes(String allowedFileTypes)Deprecated.Map<String,Object>createFormData()AttachmentInfodescription(String description)booleanequals(Object o)static AttachmentInfofromJson(String jsonString)Create an instance of AttachmentInfo given an JSON stringList<String>getAcceptedFileTypes()Get acceptedFileTypesStringgetAllowedFileTypes()Deprecated.StringgetDescription()Get descriptionStringgetTitle()Get titleinthashCode()voidsetAcceptedFileTypes(List<String> acceptedFileTypes)voidsetAllowedFileTypes(String allowedFileTypes)Deprecated.voidsetDescription(String description)voidsetTitle(String title)AttachmentInfotitle(String title)StringtoJson()Convert an instance of AttachmentInfo to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TITLE
public static final String SERIALIZED_NAME_TITLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCEPTED_FILE_TYPES
public static final String SERIALIZED_NAME_ACCEPTED_FILE_TYPES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALLOWED_FILE_TYPES
public static final String SERIALIZED_NAME_ALLOWED_FILE_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
title
public AttachmentInfo title(String title)
-
setTitle
public void setTitle(String title)
-
acceptedFileTypes
public AttachmentInfo acceptedFileTypes(List<String> acceptedFileTypes)
-
addAcceptedFileTypesItem
public AttachmentInfo addAcceptedFileTypesItem(String acceptedFileTypesItem)
-
getAcceptedFileTypes
@Nullable public List<String> getAcceptedFileTypes()
Get acceptedFileTypes- Returns:
- acceptedFileTypes
-
description
public AttachmentInfo description(String description)
-
setDescription
public void setDescription(String description)
-
allowedFileTypes
@Deprecated public AttachmentInfo allowedFileTypes(String allowedFileTypes)
Deprecated.
-
getAllowedFileTypes
@Deprecated @Nullable public String getAllowedFileTypes()
Deprecated.Get allowedFileTypes- Returns:
- allowedFileTypes
-
setAllowedFileTypes
@Deprecated public void setAllowedFileTypes(String allowedFileTypes)
Deprecated.
-
createFormData
public Map<String,Object> createFormData() throws ApiException
- Throws:
ApiException
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to AttachmentInfo
-
fromJson
public static AttachmentInfo fromJson(String jsonString) throws IOException
Create an instance of AttachmentInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AttachmentInfo
- Throws:
IOException- if the JSON string is invalid with respect to AttachmentInfo
-
toJson
public String toJson()
Convert an instance of AttachmentInfo to an JSON string- Returns:
- JSON string
-
-