public class SetBucketCrossOriginConfigurationRequest extends AmazonWebServiceRequest
Constructor and Description |
---|
SetBucketCrossOriginConfigurationRequest(java.lang.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 |
---|---|
java.lang.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.
|
void |
setBucketName(java.lang.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.
|
SetBucketCrossOriginConfigurationRequest |
withBucketName(java.lang.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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public SetBucketCrossOriginConfigurationRequest(java.lang.String bucketName, BucketCrossOriginConfiguration crossOriginConfiguration)
SetBucketCrossOriginConfigurationRequest
to set
the bucket cross origin configuration of the specified bucket.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.public java.lang.String getBucketName()
setBucketName(String)
public void setBucketName(java.lang.String bucketName)
bucketName
- The name of the bucket whose cross origin configuration
is being set.getBucketName()
public SetBucketCrossOriginConfigurationRequest withBucketName(java.lang.String bucketName)
bucketName
- The name of the bucket 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 © 2018 Amazon Web Services, Inc. All Rights Reserved.