public class SetBucketOwnershipControlsRequest extends AmazonWebServiceRequest implements Serializable, ExpectedBucketOwnerRequest
OwnershipControls
for an Amazon S3 bucket. To use this operation, you must have
the s3:PutBucketOwnershipControls
permission. For more information about Amazon S3 permissions, see Specifying Permissions in a
Policy. For information about Amazon S3 Object Ownership, see Using Object Ownership.
The following operations are related to PutBucketOwnershipControls
:
NOOP
Constructor and Description |
---|
SetBucketOwnershipControlsRequest() |
SetBucketOwnershipControlsRequest(String bucketName,
OwnershipControls ownershipControls) |
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Returns the name of the bucket for which the ownership controls are set.
|
String |
getExpectedBucketOwner()
Returns he account id of the expected bucket owner.
|
OwnershipControls |
getOwnershipControls()
Returns the ownership controls that are set on the bucket.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket for which the ownership controls are set.
|
void |
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
void |
setOwnershipControls(OwnershipControls OwnershipControls)
Sets the ownership controls.
|
SetBucketOwnershipControlsRequest |
withBucketName(String bucketName)
Sets the name of the bucket for which the ownership controls are set
and returns
SetBucketOwnershipControlsRequest object for method chaining. |
SetBucketOwnershipControlsRequest |
withExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
SetBucketOwnershipControlsRequest |
withOwnershipControls(OwnershipControls OwnershipControls)
Sets the ownership controls and returns the
SetBucketOwnershipControlsRequest object for method chaining. |
addHandlerContext, clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public SetBucketOwnershipControlsRequest()
public SetBucketOwnershipControlsRequest(String bucketName, OwnershipControls ownershipControls)
public String getBucketName()
public void setBucketName(String bucketName)
public SetBucketOwnershipControlsRequest withBucketName(String bucketName)
SetBucketOwnershipControlsRequest
object for method chaining.public OwnershipControls getOwnershipControls()
public void setOwnershipControls(OwnershipControls OwnershipControls)
public SetBucketOwnershipControlsRequest withOwnershipControls(OwnershipControls OwnershipControls)
SetBucketOwnershipControlsRequest
object for method chaining.public String getExpectedBucketOwner()
ExpectedBucketOwnerRequest
403 (Access Denied)
error.getExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public SetBucketOwnershipControlsRequest withExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest
403 (Access Denied)
error.withExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public void setExpectedBucketOwner(String expectedBucketOwner)
ExpectedBucketOwnerRequest
403 (Access Denied)
error.setExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
Copyright © 2021. All rights reserved.