public class SetBucketNotificationConfigurationRequest extends AmazonWebServiceRequest implements Serializable, ExpectedBucketOwnerRequest
NOOP
Constructor and Description |
---|
SetBucketNotificationConfigurationRequest(BucketNotificationConfiguration bucketNotificationConfiguration,
String bucket)
Deprecated.
Use SetBucketNotificationConfigurationRequest(String, BucketNotificationConfiguration) instead.
|
SetBucketNotificationConfigurationRequest(String bucketName,
BucketNotificationConfiguration notificationConfiguration)
Constructs a new
SetBucketNotificationConfigurationRequest
to set the bucket notification configuration of
the specified bucket. |
Modifier and Type | Method and Description |
---|---|
String |
getBucket()
Deprecated.
Use getBucketName() instead.
|
String |
getBucketName()
Gets the name of the bucket whose notification configuration is being
set.
|
BucketNotificationConfiguration |
getBucketNotificationConfiguration()
Deprecated.
Use getNotificationConfiguration() instead.
|
String |
getExpectedBucketOwner()
Returns he account id of the expected bucket owner.
|
BucketNotificationConfiguration |
getNotificationConfiguration()
Gets the new notification configuration for the specified bucket.
|
void |
setBucket(String bucket)
Deprecated.
Use setBucketName(String) instead.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket whose notification configuration is being
set.
|
void |
setBucketNotificationConfiguration(BucketNotificationConfiguration bucketNotificationConfiguration)
Deprecated.
Use setNotificationConfiguration(BucketNotificationConfiguration) instead.
|
void |
setExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
void |
setNotificationConfiguration(BucketNotificationConfiguration notificationConfiguration)
Sets the new notification configuration for the specified bucket.
|
SetBucketNotificationConfigurationRequest |
withBucketName(String bucketName)
Sets the name of the bucket whose notification configuration is being
set, and returns this object so that additional method calls may be
chained together.
|
SetBucketNotificationConfigurationRequest |
withExpectedBucketOwner(String expectedBucketOwner)
Set the account id of the expected bucket owner.
|
SetBucketNotificationConfigurationRequest |
withNotificationConfiguration(BucketNotificationConfiguration notificationConfiguration)
Sets the new notification configuration for the specified bucket and
returns this object, enabling additional method calls to be chained
together.
|
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
@Deprecated public SetBucketNotificationConfigurationRequest(BucketNotificationConfiguration bucketNotificationConfiguration, String bucket)
public SetBucketNotificationConfigurationRequest(String bucketName, BucketNotificationConfiguration notificationConfiguration)
SetBucketNotificationConfigurationRequest
to set the bucket notification configuration of
the specified bucket.bucketName
- The name of the bucket for which to set the notification
configuration.notificationConfiguration
- The new notification configuration for this bucket, which
completely replaces any existing configuration.public String getExpectedBucketOwner()
ExpectedBucketOwnerRequest
403 (Access Denied)
error.getExpectedBucketOwner
in interface ExpectedBucketOwnerRequest
public SetBucketNotificationConfigurationRequest 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
@Deprecated public BucketNotificationConfiguration getBucketNotificationConfiguration()
public BucketNotificationConfiguration getNotificationConfiguration()
withNotificationConfiguration(BucketNotificationConfiguration)
@Deprecated public void setBucketNotificationConfiguration(BucketNotificationConfiguration bucketNotificationConfiguration)
public void setNotificationConfiguration(BucketNotificationConfiguration notificationConfiguration)
notificationConfiguration
- The new notification configuration for the specified bucket.withNotificationConfiguration(BucketNotificationConfiguration)
public SetBucketNotificationConfigurationRequest withNotificationConfiguration(BucketNotificationConfiguration notificationConfiguration)
notificationConfiguration
- The new notification configuration for the specified bucket.SetBucketNotificationConfigurationRequest
object,
enabling that additional method calls may be chained together.getNotificationConfiguration()
@Deprecated public String getBucket()
public String getBucketName()
setBucketName(String)
@Deprecated public void setBucket(String bucket)
public void setBucketName(String bucketName)
bucketName
- The name of the bucket whose notification configuration is
being set.getBucketName()
public SetBucketNotificationConfigurationRequest withBucketName(String bucketName)
bucketName
- The name of the bucket whose notification configuration is
being set.SetBucketNotificationConfigurationRequest
object so
that additional method calls may be chained together.setBucketName(String)
Copyright © 2021. All rights reserved.