public class UploadMetadata extends Object implements ITimeoutRequest
Constructor and Description |
---|
UploadMetadata() |
Modifier and Type | Method and Description |
---|---|
String |
getFileName()
Gets the name of file to be uploaded.
|
int |
getFileSize()
Gets the size of the file to be uploaded in bytes.
|
int |
getTimeout()
Gets the request timeout in seconds.
|
String |
getUploadId()
Gets optional id used to track status and progress of an upload while in progress.
|
boolean |
isTest()
Gets whether or not to route transaction to the test gateway.
|
void |
setFileName(String value)
Sets the name of file to be uploaded.
|
void |
setFileSize(int value)
Sets the size of the file to be uploaded in bytes.
|
void |
setTest(boolean value)
Sets whether or not to route transaction to the test gateway.
|
void |
setTimeout(int value)
Sets the request timeout in seconds.
|
void |
setUploadId(String value)
Sets optional id used to track status and progress of an upload while in progress.
|
public void setTimeout(int value)
value
- the request timeout in seconds.public int getTimeout()
getTimeout
in interface ITimeoutRequest
public void setTest(boolean value)
value
- whether or not to route transaction to the test gateway.public boolean isTest()
isTest
in interface ITimeoutRequest
public void setUploadId(String value)
value
- optional id used to track status and progress of an upload while in
progress.public String getUploadId()
public void setFileSize(int value)
value
- the size of the file to be uploaded in bytes.public int getFileSize()
public void setFileName(String value)
value
- the name of file to be uploaded.public String getFileName()
Copyright © 2022 BlockChyp, Inc.. All rights reserved.