Package model
Class CreateExternalLinkRequest
java.lang.Object
model.CreateExternalLinkRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class CreateExternalLinkRequest
extends Object
CreateExternalLinkRequest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum<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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateExternalLinkRequestCreate an instance of CreateExternalLinkRequest given an JSON stringSet how long (in minutes) the external link should be active for.getTags()Key value pair for annotating custom meta data (e.g.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.inthashCode()putTagsItem(String key, String tagsItem) voidsetDuration(Long duration) voidvoidtoJson()Convert an instance of CreateExternalLinkRequest to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_DURATION
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateExternalLinkRequest
public CreateExternalLinkRequest()
-
-
Method Details
-
type
-
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
-
duration
-
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
-
tags
-
putTagsItem
-
getTags
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
setTags
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates 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
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
Convert an instance of CreateExternalLinkRequest to an JSON string- Returns:
- JSON string
-