public class SetBucketWebsiteConfigurationRequest extends CosServiceRequest implements Serializable
Constructor and Description |
---|
SetBucketWebsiteConfigurationRequest(String bucketName,
BucketWebsiteConfiguration configuration)
Creates a new request object, ready to be executed to set the specified
bucket's website configuration.
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Returns the name of the bucket whose website configuration is being set.
|
BucketWebsiteConfiguration |
getConfiguration()
Returns the website configuration to send as part of this request.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket whose website configuration is to be updated.
|
void |
setConfiguration(BucketWebsiteConfiguration configuration)
Sets the website configuration to send as part of this request.
|
SetBucketWebsiteConfigurationRequest |
withBucketName(String bucketName)
Sets the name of the bucket whose website configuration is being set and
returns this updated request object so that additional method calls can
be chained together.
|
SetBucketWebsiteConfigurationRequest |
withConfiguration(BucketWebsiteConfiguration configuration)
Sets the website configuration to send as part of this request, and
returns this updated request object so that additional method calls can
be chained together.
|
clone, copyBaseTo, getCiSpecialEndParameter, getCloneRoot, getCloneSource, getCosCredentials, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setCiSpecialEndParameter, setCosCredentials, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListener
public SetBucketWebsiteConfigurationRequest(String bucketName, BucketWebsiteConfiguration configuration)
bucketName
- The name of the bucket whose website configuration is being
set.configuration
- The new configuration for the specified bucket.public void setBucketName(String bucketName)
bucketName
- The name of the bucket whose website configuration is being
set.public String getBucketName()
public SetBucketWebsiteConfigurationRequest withBucketName(String bucketName)
bucketName
- The name of the bucket whose website configuration is being
set.public void setConfiguration(BucketWebsiteConfiguration configuration)
configuration
- The new website configuration to set for the specified bucket.public BucketWebsiteConfiguration getConfiguration()
public SetBucketWebsiteConfigurationRequest withConfiguration(BucketWebsiteConfiguration configuration)
configuration
- The new website configuration to set for the specified bucket.Copyright © 2023. All rights reserved.