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.
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetBucketNotificationConfigurationRequest(BucketNotificationConfiguration bucketNotificationConfiguration, String bucket)Deprecated.Use SetBucketNotificationConfigurationRequest(String, BucketNotificationConfiguration) instead.SetBucketNotificationConfigurationRequest(String bucketName, BucketNotificationConfiguration notificationConfiguration)Constructs a newSetBucketNotificationConfigurationRequestto set the bucket notification configuration of the specified bucket.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetBucket()Deprecated.Use getBucketName() instead.StringgetBucketName()Gets the name of the bucket whose notification configuration is being set.BucketNotificationConfigurationgetBucketNotificationConfiguration()Deprecated.Use getNotificationConfiguration() instead.BucketNotificationConfigurationgetNotificationConfiguration()Gets the new notification configuration for the specified bucket.voidsetBucket(String bucket)Deprecated.Use setBucketName(String) instead.voidsetBucketName(String bucketName)Sets the name of the bucket whose notification configuration is being set.voidsetBucketNotificationConfiguration(BucketNotificationConfiguration bucketNotificationConfiguration)Deprecated.Use setNotificationConfiguration(BucketNotificationConfiguration) instead.voidsetNotificationConfiguration(BucketNotificationConfiguration notificationConfiguration)Sets the new notification configuration for the specified bucket.SetBucketNotificationConfigurationRequestwithBucketName(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.SetBucketNotificationConfigurationRequestwithNotificationConfiguration(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 Detail
-
SetBucketNotificationConfigurationRequest
@Deprecated public SetBucketNotificationConfigurationRequest(BucketNotificationConfiguration bucketNotificationConfiguration, String bucket)
Deprecated.Use SetBucketNotificationConfigurationRequest(String, BucketNotificationConfiguration) instead.
-
SetBucketNotificationConfigurationRequest
public SetBucketNotificationConfigurationRequest(String bucketName, BucketNotificationConfiguration notificationConfiguration)
Constructs a newSetBucketNotificationConfigurationRequestto 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 Detail
-
getBucketNotificationConfiguration
@Deprecated public BucketNotificationConfiguration getBucketNotificationConfiguration()
Deprecated.Use getNotificationConfiguration() instead.
-
getNotificationConfiguration
public BucketNotificationConfiguration getNotificationConfiguration()
Gets the new notification configuration for the specified bucket.- Returns:
- The new notification configuration for the specified bucket.
- See Also:
withNotificationConfiguration(BucketNotificationConfiguration)
-
setBucketNotificationConfiguration
@Deprecated public void setBucketNotificationConfiguration(BucketNotificationConfiguration bucketNotificationConfiguration)
Deprecated.Use setNotificationConfiguration(BucketNotificationConfiguration) instead.
-
setNotificationConfiguration
public void setNotificationConfiguration(BucketNotificationConfiguration notificationConfiguration)
Sets the new notification configuration for the specified bucket.- Parameters:
notificationConfiguration- The new notification configuration for the specified bucket.- See Also:
withNotificationConfiguration(BucketNotificationConfiguration)
-
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
SetBucketNotificationConfigurationRequestobject, enabling that additional method calls may be chained together. - See Also:
getNotificationConfiguration()
-
getBucket
@Deprecated public String getBucket()
Deprecated.Use getBucketName() instead.
-
getBucketName
public String 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:
setBucketName(String)
-
setBucket
@Deprecated public void setBucket(String bucket)
Deprecated.Use setBucketName(String) instead.
-
setBucketName
public void setBucketName(String bucketName)
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:
getBucketName()
-
withBucketName
public 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.- Parameters:
bucketName- The name of the bucket whose notification configuration is being set.- Returns:
- This
SetBucketNotificationConfigurationRequestobject so that additional method calls may be chained together. - See Also:
setBucketName(String)
-
-