Package com.amazonaws.services.s3.model
Class SetBucketCrossOriginConfigurationRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.s3.model.SetBucketCrossOriginConfigurationRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SetBucketCrossOriginConfigurationRequest
extends AmazonWebServiceRequest
implements Serializable
Contains options for setting the cross origin configuration for a bucket.
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionSetBucketCrossOriginConfigurationRequest
(String bucketName, BucketCrossOriginConfiguration crossOriginConfiguration) Constructs a newSetBucketCrossOriginConfigurationRequest
to set the bucket cross origin configuration of the specified bucket. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the bucket whose cross origin configuration is being set.Gets the new cross origin configuration for the specified bucket.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.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.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.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
clone, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
SetBucketCrossOriginConfigurationRequest
public SetBucketCrossOriginConfigurationRequest(String bucketName, BucketCrossOriginConfiguration crossOriginConfiguration) Constructs a newSetBucketCrossOriginConfigurationRequest
to set the bucket cross origin configuration of the specified bucket.- Parameters:
bucketName
- The name of the bucket for which to set the cross origin configuration.crossOriginConfiguration
- The new cross origin configuration for this bucket, which completely replaces any existing configuration.
-
-
Method Details
-
getBucketName
Gets the name of the bucket whose cross origin configuration is being set.- Returns:
- The name of the bucket whose cross origin configuration is being set.
- See Also:
-
setBucketName
Sets the name of the bucket whose cross origin configuration is being set.- Parameters:
bucketName
- The name of the bucket whose cross origin configuration is being set.- See Also:
-
withBucketName
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.- Parameters:
bucketName
- The name of the bucket whose cross origin configuration is being set.- Returns:
- This
SetBucketCrossOriginConfigurationRequest
object so that additional method calls may be chained together. - See Also:
-
getCrossOriginConfiguration
Gets the new cross origin configuration for the specified bucket.- Returns:
- The new cross origin configuration for the specified bucket.
- See Also:
-
setCrossOriginConfiguration
Sets the new cross origin configuration for the specified bucket.- Parameters:
crossOriginConfiguration
- The new cross origin configuration for the specified bucket.- See Also:
-
withCrossOriginConfiguration
public 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.- Parameters:
crossOriginConfiguration
- The new cross origin configuration for the specified bucket.- Returns:
- This
SetBucketCrossOriginConfigurationRequest
object, enabling that additional method calls may be chained together. - See Also:
-