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 booleancanEqual(java.lang.Object other)static FileLinkcreate(FileLinkCreateParams params)Creates a new file link object.static FileLinkcreate(FileLinkCreateParams params, RequestOptions options)Creates a new file link object.static FileLinkcreate(java.util.Map<java.lang.String,java.lang.Object> params)Creates a new file link object.static FileLinkcreate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Creates a new file link object.booleanequals(java.lang.Object o)java.lang.LonggetCreated()Time at which the object was created.java.lang.BooleangetExpired()Whether this link is already expired.java.lang.LonggetExpiresAt()Time at which the link expires.java.lang.StringgetFile()Get ID of expandablefileobject.FilegetFileObject()Get expandedfile.java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif 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.StringgetObject()String representing the object's type.java.lang.StringgetUrl()The publicly accessible URL to download the file.inthashCode()static FileLinkCollectionlist(FileLinkListParams params)Returns a list of file links.static FileLinkCollectionlist(FileLinkListParams params, RequestOptions options)Returns a list of file links.static FileLinkCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list of file links.static FileLinkCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Returns a list of file links.static FileLinkretrieve(java.lang.String link)Retrieves the file link with the given ID.static FileLinkretrieve(java.lang.String link, RequestOptions options)Retrieves the file link with the given ID.static FileLinkretrieve(java.lang.String link, FileLinkRetrieveParams params, RequestOptions options)Retrieves the file link with the given ID.static FileLinkretrieve(java.lang.String link, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves the file link with the given ID.voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetExpired(java.lang.Boolean expired)Whether this link is already expired.voidsetExpiresAt(java.lang.Long expiresAt)Time at which the link expires.voidsetFile(java.lang.String id)voidsetFileObject(File expandableObject)voidsetId(java.lang.String id)Unique identifier for the object.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.voidsetObject(java.lang.String object)String representing the object's type.voidsetUrl(java.lang.String url)The publicly accessible URL to download the file.FileLinkupdate(FileLinkUpdateParams params)Updates an existing file link object.FileLinkupdate(FileLinkUpdateParams params, RequestOptions options)Updates an existing file link object.FileLinkupdate(java.util.Map<java.lang.String,java.lang.Object> params)Updates an existing file link object.FileLinkupdate(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, 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 expandablefileobject.
-
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:
updatein 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:
updatein 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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein 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:
getMetadatain interfaceMetadataStore<FileLink>
-
-