Package com.stripe.model
Class FileLink
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.FileLink
-
- All Implemented Interfaces:
HasId
,MetadataStore<FileLink>
,StripeObjectInterface
public class FileLink extends ApiResource implements HasId, MetadataStore<FileLink>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description FileLink()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
static FileLink
create(FileLinkCreateParams params)
Creates a new file link object.static FileLink
create(FileLinkCreateParams params, RequestOptions options)
Creates a new file link object.static FileLink
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a new file link object.static FileLink
create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Creates a new file link object.boolean
equals(java.lang.Object o)
java.lang.Long
getCreated()
Time at which the object was created.java.lang.Boolean
getExpired()
Whether this link is already expired.java.lang.Long
getExpiresAt()
Time at which the link expires.java.lang.String
getFile()
Get ID of expandablefile
object.File
getFileObject()
Get expandedfile
.java.lang.String
getId()
Unique identifier for the object.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.java.util.Map<java.lang.String,java.lang.String>
getMetadata()
Set of key-value pairs that you can attach to an object.java.lang.String
getObject()
String representing the object's type.java.lang.String
getUrl()
The publicly accessible URL to download the file.int
hashCode()
static FileLinkCollection
list(FileLinkListParams params)
Returns a list of file links.static FileLinkCollection
list(FileLinkListParams params, RequestOptions options)
Returns a list of file links.static FileLinkCollection
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of file links.static FileLinkCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Returns a list of file links.static FileLink
retrieve(java.lang.String link)
Retrieves the file link with the given ID.static FileLink
retrieve(java.lang.String link, RequestOptions options)
Retrieves the file link with the given ID.static FileLink
retrieve(java.lang.String link, FileLinkRetrieveParams params, RequestOptions options)
Retrieves the file link with the given ID.static FileLink
retrieve(java.lang.String link, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieves the file link with the given ID.void
setCreated(java.lang.Long created)
Time at which the object was created.void
setExpired(java.lang.Boolean expired)
Whether this link is already expired.void
setExpiresAt(java.lang.Long expiresAt)
Time at which the link expires.void
setFile(java.lang.String id)
void
setFileObject(File expandableObject)
void
setId(java.lang.String id)
Unique identifier for the object.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.void
setObject(java.lang.String object)
String representing the object's type.void
setUrl(java.lang.String url)
The publicly accessible URL to download the file.FileLink
update(FileLinkUpdateParams params)
Updates an existing file link object.FileLink
update(FileLinkUpdateParams params, RequestOptions options)
Updates an existing file link object.FileLink
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates an existing file link object.FileLink
update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Updates an existing file link object.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getFile
public java.lang.String getFile()
Get ID of expandablefile
object.
-
setFile
public void setFile(java.lang.String id)
-
getFileObject
public File getFileObject()
Get expandedfile
.
-
setFileObject
public void setFileObject(File expandableObject)
-
retrieve
public static FileLink retrieve(java.lang.String link) throws StripeException
Retrieves the file link with the given ID.- Throws:
StripeException
-
retrieve
public static FileLink retrieve(java.lang.String link, RequestOptions options) throws StripeException
Retrieves the file link with the given ID.- Throws:
StripeException
-
retrieve
public static FileLink retrieve(java.lang.String link, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves the file link with the given ID.- Throws:
StripeException
-
retrieve
public static FileLink retrieve(java.lang.String link, FileLinkRetrieveParams params, RequestOptions options) throws StripeException
Retrieves the file link with the given ID.- Throws:
StripeException
-
create
public static FileLink create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Creates a new file link object.- Throws:
StripeException
-
create
public static FileLink create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Creates a new file link object.- Throws:
StripeException
-
create
public static FileLink create(FileLinkCreateParams params) throws StripeException
Creates a new file link object.- Throws:
StripeException
-
create
public static FileLink create(FileLinkCreateParams params, RequestOptions options) throws StripeException
Creates a new file link object.- Throws:
StripeException
-
update
public FileLink update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Updates an existing file link object. Expired links can no longer be updated.- Specified by:
update
in interfaceMetadataStore<FileLink>
- Throws:
StripeException
-
update
public FileLink update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Updates an existing file link object. Expired links can no longer be updated.- Specified by:
update
in interfaceMetadataStore<FileLink>
- Throws:
StripeException
-
update
public FileLink update(FileLinkUpdateParams params) throws StripeException
Updates an existing file link object. Expired links can no longer be updated.- Throws:
StripeException
-
update
public FileLink update(FileLinkUpdateParams params, RequestOptions options) throws StripeException
Updates an existing file link object. Expired links can no longer be updated.- Throws:
StripeException
-
list
public static FileLinkCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Returns a list of file links.- Throws:
StripeException
-
list
public static FileLinkCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns a list of file links.- Throws:
StripeException
-
list
public static FileLinkCollection list(FileLinkListParams params) throws StripeException
Returns a list of file links.- Throws:
StripeException
-
list
public static FileLinkCollection list(FileLinkListParams params, RequestOptions options) throws StripeException
Returns a list of file links.- Throws:
StripeException
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getExpired
public java.lang.Boolean getExpired()
Whether this link is already expired.
-
getExpiresAt
public java.lang.Long getExpiresAt()
Time at which the link expires.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
file_link
.
-
getUrl
public java.lang.String getUrl()
The publicly accessible URL to download the file.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setExpired
public void setExpired(java.lang.Boolean expired)
Whether this link is already expired.
-
setExpiresAt
public void setExpiresAt(java.lang.Long expiresAt)
Time at which the link expires.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
file_link
.
-
setUrl
public void setUrl(java.lang.String url)
The publicly accessible URL to download the file.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getId
public java.lang.String getId()
Unique identifier for the object.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<FileLink>
-
-