Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2011-2015 Amazon Technologies, Inc.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at:
   *
   *    http://aws.amazon.com/apache2.0
   *
  * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
  * OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and
  * limitations under the License.
  */
 package com.amazonaws.services.s3.model;
 
Contains options for setting the notification configuration for a bucket.

 
 
 
     private String bucketName;

    

Deprecated:
Use SetBucketNotificationConfigurationRequest(String, BucketNotificationConfiguration) instead.
 
     @Deprecated
     public SetBucketNotificationConfigurationRequest(BucketNotificationConfiguration bucketNotificationConfiguration,
             String bucket) {
         this. = bucketNotificationConfiguration;
         this. = bucket;
     }

    
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.
 
             String bucketNameBucketNotificationConfiguration notificationConfiguration) {
         this. = bucketName;
         this. = notificationConfiguration;
     }

    

Deprecated:
Use getNotificationConfiguration() instead.
 
     @Deprecated
         return ;
     }

    
Gets the new notification configuration for the specified bucket.

Returns:
The new notification configuration for the specified bucket.
See also:
withNotificationConfiguration(com.amazonaws.services.s3.model.BucketNotificationConfiguration)
 
         return ;
     }

    

Deprecated:
Use setNotificationConfiguration(BucketNotificationConfiguration) instead.
 
     @Deprecated
     public void setBucketNotificationConfiguration(BucketNotificationConfiguration bucketNotificationConfiguration) {
         this. = bucketNotificationConfiguration;
     }

    
Sets the new notification configuration for the specified bucket.

Parameters:
notificationConfiguration The new notification configuration for the specified bucket.
See also:
withNotificationConfiguration(com.amazonaws.services.s3.model.BucketNotificationConfiguration)
 
     public void setNotificationConfiguration(BucketNotificationConfiguration notificationConfiguration) {
         this. = 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()
            BucketNotificationConfiguration notificationConfiguration) {
        setNotificationConfiguration(notificationConfiguration);
        return this;
    }

    

Deprecated:
Use getBucketName() instead.
    @Deprecated
    public String getBucket() {
        return ;
    }

    
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(java.lang.String)
    public String getBucketName() {
        return ;
    }

    

Deprecated:
Use setBucketName(String) instead.
    @Deprecated
    public void setBucket(String bucket) {
        this. = bucket;
    }

    
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()
    public void setBucketName(String bucketName) {
        this. = 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(java.lang.String)
            String bucketName) {
        setBucketName(bucketName);
        return this;
    }
New to GrepCode? Check out our FAQ X