Package model
Class ExternalLink
- java.lang.Object
-
- model.ExternalLink
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ExternalLink extends Object
ExternalLink
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExternalLink.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DURATIONstatic StringSERIALIZED_NAME_EXPIREDstatic StringSERIALIZED_NAME_EXPIRES_ATstatic StringSERIALIZED_NAME_FILE_IDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_TAGSstatic StringSERIALIZED_NAME_TYPEstatic StringSERIALIZED_NAME_URLstatic StringSERIALIZED_NAME_USER_ID
-
Constructor Summary
Constructors Constructor Description ExternalLink()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalLinkcreatedAt(OffsetDateTime createdAt)ExternalLinkduration(String duration)booleanequals(Object o)ExternalLinkexpired(Boolean expired)ExternalLinkexpiresAt(String expiresAt)ExternalLinkfileId(String fileId)static ExternalLinkfromJson(String jsonString)Create an instance of ExternalLink given an JSON stringOffsetDateTimegetCreatedAt()Timestamp of when the object was created.StringgetDuration()Details how long the `url` will be avalible for users to upload files to.BooleangetExpired()<ul><li>If <strong>TRUE</strong> the link has expired<br><li>If <strong>FALSE</strong>, the link is active and files can still be uploaded or downloaded from the link.StringgetExpiresAt()The timestamp that the external link expires at.StringgetFileId()The `File` ID the `external_link` is related to.StringgetId()The ID of the `external_Link` resource.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.StringgetType()Sets if the link is for uploading or downloading files from Finix.StringgetUrl()The URL you can share with merchants to **UPLOAD** or **DOWNLOAD** files depending on the request sent.StringgetUserId()The ID of the `user` that requested to create this link.inthashCode()ExternalLinkid(String id)ExternalLinkputTagsItem(String key, String tagsItem)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDuration(String duration)voidsetExpired(Boolean expired)voidsetExpiresAt(String expiresAt)voidsetFileId(String fileId)voidsetId(String id)voidsetTags(Map<String,String> tags)voidsetType(String type)voidsetUrl(String url)voidsetUserId(String userId)ExternalLinktags(Map<String,String> tags)StringtoJson()Convert an instance of ExternalLink to an JSON stringStringtoString()ExternalLinktype(String type)ExternalLinkurl(String url)ExternalLinkuserId(String userId)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DURATION
public static final String SERIALIZED_NAME_DURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRED
public static final String SERIALIZED_NAME_EXPIRED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRES_AT
public static final String SERIALIZED_NAME_EXPIRES_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FILE_ID
public static final String SERIALIZED_NAME_FILE_ID
- 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
-
SERIALIZED_NAME_URL
public static final String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USER_ID
public static final String SERIALIZED_NAME_USER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public ExternalLink id(String id)
-
setId
public void setId(String id)
-
createdAt
public ExternalLink createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Timestamp of when the object was created.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
duration
public ExternalLink duration(String duration)
-
getDuration
@Nullable public String getDuration()
Details how long the `url` will be avalible for users to upload files to.- Returns:
- duration
-
setDuration
public void setDuration(String duration)
-
expired
public ExternalLink expired(Boolean expired)
-
getExpired
@Nullable public Boolean getExpired()
<ul><li>If <strong>TRUE</strong> the link has expired<br><li>If <strong>FALSE</strong>, the link is active and files can still be uploaded or downloaded from the link.- Returns:
- expired
-
setExpired
public void setExpired(Boolean expired)
-
expiresAt
public ExternalLink expiresAt(String expiresAt)
-
getExpiresAt
@Nullable public String getExpiresAt()
The timestamp that the external link expires at.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(String expiresAt)
-
fileId
public ExternalLink fileId(String fileId)
-
getFileId
@Nullable public String getFileId()
The `File` ID the `external_link` is related to.- Returns:
- fileId
-
setFileId
public void setFileId(String fileId)
-
tags
public ExternalLink tags(Map<String,String> tags)
-
putTagsItem
public ExternalLink 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 ExternalLink type(String type)
-
getType
@Nullable public String getType()
Sets if the link is for uploading or downloading files from Finix.- Returns:
- type
-
setType
public void setType(String type)
-
url
public ExternalLink url(String url)
-
getUrl
@Nullable public String getUrl()
The URL you can share with merchants to **UPLOAD** or **DOWNLOAD** files depending on the request sent.- Returns:
- url
-
setUrl
public void setUrl(String url)
-
userId
public ExternalLink userId(String userId)
-
getUserId
@Nullable public String getUserId()
The ID of the `user` that requested to create this link.- Returns:
- userId
-
setUserId
public void setUserId(String userId)
-
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 ExternalLink
-
fromJson
public static ExternalLink fromJson(String jsonString) throws IOException
Create an instance of ExternalLink given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ExternalLink
- Throws:
IOException- if the JSON string is invalid with respect to ExternalLink
-
toJson
public String toJson()
Convert an instance of ExternalLink to an JSON string- Returns:
- JSON string
-
-