Package video.api.client.api.models
Class UploadToken
- java.lang.Object
-
- video.api.client.api.models.UploadToken
-
- All Implemented Interfaces:
Serializable,DeepObject
public class UploadToken extends Object implements Serializable, DeepObject
UploadToken- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_EXPIRES_ATstatic StringSERIALIZED_NAME_TOKENstatic StringSERIALIZED_NAME_TTL
-
Constructor Summary
Constructors Constructor Description UploadToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UploadTokencreatedAt(OffsetDateTime createdAt)booleanequals(Object o)UploadTokenexpiresAt(OffsetDateTime expiresAt)OffsetDateTimegetCreatedAt()When the token was created, displayed in ATOM UTC format.OffsetDateTimegetExpiresAt()When the token expires, displayed in ATOM UTC format.StringgetToken()The unique identifier for the token you will use to authenticate an upload.IntegergetTtl()Time-to-live - how long the upload token is valid for.inthashCode()voidsetCreatedAt(OffsetDateTime createdAt)voidsetExpiresAt(OffsetDateTime expiresAt)voidsetToken(String token)voidsetTtl(Integer ttl)UploadTokentoken(String token)StringtoString()UploadTokenttl(Integer ttl)
-
-
-
Field Detail
-
SERIALIZED_NAME_TOKEN
public static final String SERIALIZED_NAME_TOKEN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TTL
public static final String SERIALIZED_NAME_TTL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRES_AT
public static final String SERIALIZED_NAME_EXPIRES_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
token
public UploadToken token(String token)
-
getToken
@Nullable public String getToken()
The unique identifier for the token you will use to authenticate an upload.- Returns:
- token
-
setToken
public void setToken(String token)
-
ttl
public UploadToken ttl(Integer ttl)
-
getTtl
@Nullable public Integer getTtl()
Time-to-live - how long the upload token is valid for. minimum: 0 maximum: 2147483647- Returns:
- ttl
-
setTtl
public void setTtl(Integer ttl)
-
createdAt
public UploadToken createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
When the token was created, displayed in ATOM UTC format.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
expiresAt
public UploadToken expiresAt(OffsetDateTime expiresAt)
-
getExpiresAt
@Nullable public OffsetDateTime getExpiresAt()
When the token expires, displayed in ATOM UTC format.- Returns:
- expiresAt
-
setExpiresAt
public void setExpiresAt(OffsetDateTime expiresAt)
-
-