Package model
Class CreateExternalLinkRequest
- java.lang.Object
-
- model.CreateExternalLinkRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateExternalLinkRequest extends Object
CreateExternalLinkRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateExternalLinkRequest.CustomTypeAdapterFactorystatic classCreateExternalLinkRequest.TypeEnum<ul><li>Set to <strong>UPLOAD</strong> to create a link that can be used to upload files to Finix.<li>Set to <strong>DOWNLOAD</strong> to create a link where the uploaded file can be downloaded from.<li>Set to <strong>VIEW</strong> to create a link that displays the file in browser.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DURATIONstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description CreateExternalLinkRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateExternalLinkRequestduration(Long duration)booleanequals(Object o)static CreateExternalLinkRequestfromJson(String jsonString)Create an instance of CreateExternalLinkRequest given an JSON stringLonggetDuration()Set how long (in minutes) the external link should be active for.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.CreateExternalLinkRequest.TypeEnumgetType()<ul><li>Set to <strong>UPLOAD</strong> to create a link that can be used to upload files to Finix.<li>Set to <strong>DOWNLOAD</strong> to create a link where the uploaded file can be downloaded from.<li>Set to <strong>VIEW</strong> to create a link that displays the file in browser.inthashCode()CreateExternalLinkRequestputTagsItem(String key, String tagsItem)voidsetDuration(Long duration)voidsetTags(Map<String,String> tags)voidsetType(CreateExternalLinkRequest.TypeEnum type)CreateExternalLinkRequesttags(Map<String,String> tags)StringtoJson()Convert an instance of CreateExternalLinkRequest to an JSON stringStringtoString()CreateExternalLinkRequesttype(CreateExternalLinkRequest.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DURATION
public static final String SERIALIZED_NAME_DURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
duration
public CreateExternalLinkRequest duration(Long duration)
-
getDuration
@Nullable public Long getDuration()
Set how long (in minutes) the external link should be active for. The link can be active for up to 7 days in the future.- Returns:
- duration
-
setDuration
public void setDuration(Long duration)
-
tags
public CreateExternalLinkRequest tags(Map<String,String> tags)
-
putTagsItem
public CreateExternalLinkRequest putTagsItem(String key, String tagsItem)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
type
public CreateExternalLinkRequest type(CreateExternalLinkRequest.TypeEnum type)
-
getType
@Nullable public CreateExternalLinkRequest.TypeEnum getType()
<ul><li>Set to <strong>UPLOAD</strong> to create a link that can be used to upload files to Finix.<li>Set to <strong>DOWNLOAD</strong> to create a link where the uploaded file can be downloaded from.<li>Set to <strong>VIEW</strong> to create a link that displays the file in browser.- Returns:
- type
-
setType
public void setType(CreateExternalLinkRequest.TypeEnum type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CreateExternalLinkRequest
-
fromJson
public static CreateExternalLinkRequest fromJson(String jsonString) throws IOException
Create an instance of CreateExternalLinkRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateExternalLinkRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateExternalLinkRequest
-
toJson
public String toJson()
Convert an instance of CreateExternalLinkRequest to an JSON string- Returns:
- JSON string
-
-