public class SetBucketCrossOriginConfigurationRequest extends AmazonWebServiceRequest implements Serializable, ExpectedBucketOwnerRequest
NOOP
Constructor and Description |
---|
SetBucketCrossOriginConfigurationRequest(String bucketName,
BucketCrossOriginConfiguration crossOriginConfiguration)
Constructs a new
SetBucketCrossOriginConfigurationRequest
to set the bucket cross origin configuration of
the specified bucket. |
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Gets the name of the bucket whose cross origin configuration is being
set.
|
BucketCrossOriginConfiguration |
getCrossOriginConfiguration()
Gets the new cross origin configuration for the specified bucket.
|
String |
getExpectedBucketOwner()
Returns he account id of the expected bucket owner.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket whose cross origin configuration is being set.
|
void |
setCrossOriginConfiguration(BucketCrossOriginConfiguration crossOriginConfiguration)
Sets the new cross origin configuration for the specified bucket.
|
void |
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
SetBucketCrossOriginConfigurationRequest |
withBucketName(String bucketName)
Sets the name of the bucket whose cross origin configuration is being set,
and returns this object so that additional method calls may be chained
together.
|
SetBucketCrossOriginConfigurationRequest |
withCrossOriginConfiguration(BucketCrossOriginConfiguration crossOriginConfiguration)
Sets the new cross origin configuration for the specified bucket and
returns this object, enabling additional method calls to be chained
together.
|
SetBucketCrossOriginConfigurationRequest |
withExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
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 SetBucketCrossOriginConfigurationRequest(String bucketName, BucketCrossOriginConfiguration crossOriginConfiguration)
SetBucketCrossOriginConfigurationRequest
to set the bucket cross origin configuration of
the specified bucket.
When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
When using this operation using an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon Simple Storage Service Developer Guide.
bucketName
- The name of the bucket, or access point ARN, for which to set the cross origin
configuration.crossOriginConfiguration
- The new cross origin configuration for this bucket, which
completely replaces any existing configuration.public String getExpectedBucketOwner()
ExpectedBucketOwnerRequest
403 (Access Denied)
error.getExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public SetBucketCrossOriginConfigurationRequest 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
public String getBucketName()
setBucketName(String)
public void setBucketName(String bucketName)
bucketName
- The name of the bucket, or access point ARN, whose cross origin configuration is being
set.getBucketName()
public SetBucketCrossOriginConfigurationRequest withBucketName(String bucketName)
bucketName
- The name of the bucket, or access point ARN, whose cross origin configuration is being
set.SetBucketCrossOriginConfigurationRequest
object so that
additional method calls may be chained together.setBucketName(String)
public BucketCrossOriginConfiguration getCrossOriginConfiguration()
setCrossOriginConfiguration(BucketCrossOriginConfiguration)
,
withCrossOriginConfiguration(BucketCrossOriginConfiguration)
public void setCrossOriginConfiguration(BucketCrossOriginConfiguration crossOriginConfiguration)
crossOriginConfiguration
- The new cross origin configuration for the specified bucket.getCrossOriginConfiguration()
,
withCrossOriginConfiguration(BucketCrossOriginConfiguration)
public SetBucketCrossOriginConfigurationRequest withCrossOriginConfiguration(BucketCrossOriginConfiguration crossOriginConfiguration)
crossOriginConfiguration
- The new cross origin configuration for the specified bucket.SetBucketCrossOriginConfigurationRequest
object, enabling that
additional method calls may be chained together.getCrossOriginConfiguration()
Copyright © 2023. All rights reserved.