Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2015-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;
 
 
         AmazonWebServiceRequest {

    
The name of Amazon S3 bucket to which the replication configuration is set.
 
     private String bucketName;

    
Replication configuration for an Amazon S3 bucket.
 
Creates a new SetReplicationConfigurationRequest.
 
     public SetBucketReplicationConfigurationRequest() { }

    
Creates a new SetReplicationConfigurationRequest.

Parameters:
bucketName The name of Amazon S3 bucket to which the replication configuration is set.
replicationConfiguration Replication configuration for an Amazon S3 bucket.
 
     public SetBucketReplicationConfigurationRequest(String bucketName,
             BucketReplicationConfiguration replicationConfiguration) {
         this. = bucketName;
         this. = replicationConfiguration;
     }

    
Returns the name of Amazon S3 bucket.
 
     public String getBucketName() {
         return ;
     }

    
Sets the name of Amazon S3 bucket for replication configuration.

Parameters:
bucketName The name of Amazon S3 bucket to which the replication configuration is set.
 
     public void setBucketName(String bucketName) {
         this. = bucketName;
     }

    
Sets the name of Amazon S3 bucket for replication configuration. Returns the updated object. .

Parameters:
bucketName The name of Amazon S3 bucket to which the replication configuration is set.
Returns:
The updated SetBucketReplicationConfigurationRequest object.
 
             String bucketName) {
         setBucketName(bucketName);
         return this;
     }

    
Returns the replication configuration of an Amazon S3 bucket.

Returns:
the replication configuration of an Amazon S3 bucket.
 
         return ;
     }

    
Sets the replication configuration for an Amazon S3 bucket.

Parameters:
replicationConfiguration the replication configuration for an Amazon S3 bucket.
    public void setReplicationConfiguration(
            BucketReplicationConfiguration replicationConfiguration) {
        this. = replicationConfiguration;
    }

    
Sets the replication configuration for an Amazon S3 bucket. Returns the updated object. .

Parameters:
replicationConfiguration the replication configuration for an Amazon S3 bucket.
Returns:
The updated SetBucketReplicationConfigurationRequest object.
            BucketReplicationConfiguration replicationConfiguration) {
        setReplicationConfiguration(replicationConfiguration);
        return this;
    }
    @Override
    public String toString() {
        return Jackson.toJsonString(this);
    }
New to GrepCode? Check out our FAQ X