public class GenericRequest extends Object
Constructor and Description |
---|
GenericRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRequesterPays()
If the requester is allowed to pay, true is returned.
|
void |
setRequesterPays(boolean isRequesterPays)
Used to configure whether to enable the requester-pays function.
|
String |
toString() |
public boolean isRequesterPays()
If the requester-pays function is enabled for a bucket, this attribute must be set to true when the bucket is requested by a requester other than the bucket owner. Otherwise, status code 403 is returned.
After the requester-pays function is enabled, anonymous access to the bucket is not allowed.
public void setRequesterPays(boolean isRequesterPays)
If the requester-pays function is enabled for a bucket, this attribute must be set to true when the bucket is requested by a requester other than the bucket owner. Otherwise, status code 403 is returned.
After the requester-pays function is enabled, anonymous access to the bucket is not allowed.
isRequesterPays
- True indicates to enable the requester-pays function.
False indicates to disable the requester-pays function.Copyright © 2021. All rights reserved.