com.amazonaws.services.s3.model
Class SetBucketNotificationConfigurationRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.s3.model.SetBucketNotificationConfigurationRequest

public class SetBucketNotificationConfigurationRequest
extends AmazonWebServiceRequest

Contains options for setting the notification configuration for a bucket.

See Also:
SetBucketNotificationConfigurationRequest(String, BucketNotificationConfiguration)

Constructor Summary
SetBucketNotificationConfigurationRequest(BucketNotificationConfiguration bucketNotificationConfiguration, java.lang.String bucket)
          Deprecated. Use SetBucketNotificationConfigurationRequest(String, BucketNotificationConfiguration) instead.
SetBucketNotificationConfigurationRequest(java.lang.String bucketName, BucketNotificationConfiguration notificationConfiguration)
          Constructs a new SetBucketNotificationConfigurationRequest to set the bucket notification configuration of the specified bucket.
 
Method Summary
 java.lang.String getBucket()
          Deprecated. Use getBucketName() instead.
 java.lang.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(java.lang.String bucket)
          Deprecated. Use setBucketName(String) instead.
 void setBucketName(java.lang.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(java.lang.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
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetBucketNotificationConfigurationRequest

@Deprecated
public SetBucketNotificationConfigurationRequest(BucketNotificationConfiguration bucketNotificationConfiguration,
                                                            java.lang.String bucket)
Deprecated. Use SetBucketNotificationConfigurationRequest(String, BucketNotificationConfiguration) instead.


SetBucketNotificationConfigurationRequest

public SetBucketNotificationConfigurationRequest(java.lang.String bucketName,
                                                 BucketNotificationConfiguration notificationConfiguration)
Constructs a new SetBucketNotificationConfigurationRequest 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 java.lang.String getBucket()
Deprecated. Use getBucketName() instead.


getBucketName

public java.lang.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(java.lang.String bucket)
Deprecated. Use setBucketName(String) instead.


setBucketName

public void setBucketName(java.lang.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(java.lang.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)


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.