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 newSetBucketNotificationConfigurationRequest
to set the bucket notification configuration of the specified bucket.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.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
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
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 Detail
-
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 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
SetBucketNotificationConfigurationRequest
object, 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
SetBucketNotificationConfigurationRequest
object so that additional method calls may be chained together. - See Also:
setBucketName(String)
-
-