Package com.amazonaws.services.s3.model
Class SetBucketNotificationConfigurationRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.s3.model.SetBucketNotificationConfigurationRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class SetBucketNotificationConfigurationRequest
extends AmazonWebServiceRequest
implements Serializable
Contains options for setting the notification configuration for a bucket.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionSetBucketNotificationConfigurationRequest
(BucketNotificationConfiguration bucketNotificationConfiguration, String bucket) Deprecated.Use SetBucketNotificationConfigurationRequest(String, BucketNotificationConfiguration) instead.SetBucketNotificationConfigurationRequest
(String bucketName, BucketNotificationConfiguration notificationConfiguration) Constructs a newSetBucketNotificationConfigurationRequest
to set the bucket notification configuration of the specified bucket. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Use getBucketName() instead.Gets the name of the bucket whose notification configuration is being set.Deprecated.Use getNotificationConfiguration() instead.Gets the new notification configuration for the specified bucket.void
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
setNotificationConfiguration
(BucketNotificationConfiguration notificationConfiguration) Sets the new notification configuration for the specified bucket.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.withNotificationConfiguration
(BucketNotificationConfiguration notificationConfiguration) Sets the new notification 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
-
SetBucketNotificationConfigurationRequest
@Deprecated public SetBucketNotificationConfigurationRequest(BucketNotificationConfiguration bucketNotificationConfiguration, String bucket) Deprecated.Use SetBucketNotificationConfigurationRequest(String, BucketNotificationConfiguration) instead. -
SetBucketNotificationConfigurationRequest
public SetBucketNotificationConfigurationRequest(String bucketName, BucketNotificationConfiguration notificationConfiguration) Constructs a newSetBucketNotificationConfigurationRequest
to set the bucket notification configuration of the specified bucket.- Parameters:
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.
-
-
Method Details
-
getBucketNotificationConfiguration
Deprecated.Use getNotificationConfiguration() instead. -
getNotificationConfiguration
Gets the new notification configuration for the specified bucket.- Returns:
- The new notification configuration for the specified bucket.
- See Also:
-
setBucketNotificationConfiguration
@Deprecated public void setBucketNotificationConfiguration(BucketNotificationConfiguration bucketNotificationConfiguration) Deprecated.Use setNotificationConfiguration(BucketNotificationConfiguration) instead. -
setNotificationConfiguration
Sets the new notification configuration for the specified bucket.- Parameters:
notificationConfiguration
- The new notification configuration for the specified bucket.- See Also:
-
withNotificationConfiguration
public 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.- Parameters:
notificationConfiguration
- The new notification configuration for the specified bucket.- Returns:
- This
SetBucketNotificationConfigurationRequest
object, enabling that additional method calls may be chained together. - See Also:
-
getBucket
Deprecated.Use getBucketName() instead. -
getBucketName
Gets the name of the bucket whose notification configuration is being set.- Returns:
- The name of the bucket whose notification configuration is being set.
- See Also:
-
setBucket
Deprecated.Use setBucketName(String) instead. -
setBucketName
Sets the name of the bucket whose notification configuration is being set.- Parameters:
bucketName
- The name of the bucket whose notification configuration is being set.- See Also:
-
withBucketName
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.- Parameters:
bucketName
- The name of the bucket whose notification configuration is being set.- Returns:
- This
SetBucketNotificationConfigurationRequest
object so that additional method calls may be chained together. - See Also:
-