public class GenericRequest extends WebServiceRequest
NOOP
构造器和说明 |
---|
GenericRequest() |
GenericRequest(String bucketName) |
GenericRequest(String bucketName,
String key) |
GenericRequest(String bucketName,
String key,
String versionId) |
限定符和类型 | 方法和说明 |
---|---|
String |
getBucketName() |
String |
getKey() |
Payer |
getRequestPayer()
*
Gets the one who pays for the request
|
String |
getVersionId()
Gets the optional version ID specifying which version of the object to
operate.
|
void |
setBucketName(String bucketName) |
void |
setKey(String key) |
void |
setRequestPayer(Payer payer)
*
Sets the one who pays for the request
The Third party should set request payer when requesting resources.
|
void |
setVersionId(String versionId)
Sets the optional version ID specifying which version of the object to
operate.
|
GenericRequest |
withBucketName(String bucketName) |
GenericRequest |
withKey(String key) |
GenericRequest |
withRequestPayer(Payer payer)
*
Sets the one who pays for the request
The Third party should set request payer when requesting resources.
|
GenericRequest |
withVersionId(String versionId)
Sets the optional version ID specifying which version of the object to
download and returns this object, enabling additional method calls to be
chained together.
|
public GenericRequest()
public GenericRequest(String bucketName)
public String getBucketName()
public void setBucketName(String bucketName)
public GenericRequest withBucketName(String bucketName)
public String getKey()
public void setKey(String key)
public GenericRequest withKey(String key)
public String getVersionId()
Gets the optional version ID specifying which version of the object to operate. If not specified, the most recent version will be operated.
Objects created before versioning was enabled or when versioning is
suspended are given the default null
version ID (see
OSSConstants#NULL_VERSION_ID
). Note that the
null
version ID is a valid version ID and is not the
same as not having a version ID.
public void setVersionId(String versionId)
Objects created before versioning was enabled or when versioning is
suspended will be given the default null
version ID (see
OSSConstants#NULL_VERSION_ID
). Note that the
null
version ID is a valid version ID and is not the
same as not having a version ID.
versionId
- The optional version ID specifying which version of the object
to operate.public GenericRequest withVersionId(String versionId)
Sets the optional version ID specifying which version of the object to download and returns this object, enabling additional method calls to be chained together. If not specified, the most recent version will be operated.
Objects created before versioning was enabled or when versioning is
suspended will be given the default or null
version ID (see
OSSConstants#NULL_VERSION_ID
). Note that the
null
version ID is a valid version ID and is not the
same as not having a version ID.
versionId
- The optional version ID specifying which version of the object
to operate.public void setRequestPayer(Payer payer)
Sets the one who pays for the request The Third party should set request payer when requesting resources.
payer
- The one who pays for the requestpublic Payer getRequestPayer()
Gets the one who pays for the request
public GenericRequest withRequestPayer(Payer payer)
Sets the one who pays for the request The Third party should set request payer when requesting resources.
payer
- The one who pays for the requestCopyright © 2019. All Rights Reserved.