Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. 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 cross origin configuration for a bucket.

 
 public class SetBucketCrossOriginConfigurationRequest extends AmazonWebServiceRequest {
    
    
The bucket whose cross origin configuration is being set.
 
     private String bucketName;

    
The new cross origin configuration for the specified bucket.
 
     private BucketCrossOriginConfiguration crossOriginConfiguration;
    
    
Constructs a new SetBucketCrossOriginConfigurationRequest to set the bucket cross origin configuration of the specified bucket.

Parameters:
bucketName The name of the bucket for which to set the cross origin configuration.
crossOriginConfiguration The new cross origin configuration for this bucket, which completely replaces any existing configuration.
 
             String bucketNameBucketCrossOriginConfiguration crossOriginConfiguration) {
         this. = bucketName;
         this. = crossOriginConfiguration;
     }

    
    
Gets the name of the bucket whose cross origin configuration is being set.

Returns:
The name of the bucket whose cross origin configuration is being set.
See also:
setBucketName(java.lang.String)
 
     public String getBucketName() {
         return ;
     }

    
Sets the name of the bucket whose cross origin configuration is being set.

Parameters:
bucketName The name of the bucket whose cross origin configuration is being set.
See also:
getBucketName()
 
     public void setBucketName(String bucketName) {
         this. = bucketName;
     }

    
Sets the name of the bucket whose cross origin 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 cross origin configuration is being set.
Returns:
This SetBucketCrossOriginConfigurationRequest object so that additional method calls may be chained together.
See also:
setBucketName(java.lang.String)
 
         setBucketName(bucketName);
         return this;
     }

    
Gets the new cross origin configuration for the specified bucket.

        return ;
    }

    
Sets the new cross origin configuration for the specified bucket.

Parameters:
crossOriginConfiguration The new cross origin configuration for the specified bucket.
See also:
getCrossOriginConfiguration()
withCrossOriginConfiguration(com.amazonaws.services.s3.model.BucketCrossOriginConfiguration)
    public void setCrossOriginConfiguration(
            BucketCrossOriginConfiguration crossOriginConfiguration) {
        this. = crossOriginConfiguration;
    }

    
Sets the new cross origin configuration for the specified bucket and returns this object, enabling additional method calls to be chained together.

Parameters:
crossOriginConfiguration The new cross origin configuration for the specified bucket.
Returns:
This SetBucketCrossOriginConfigurationRequest object, enabling that additional method calls may be chained together.
See also:
getCrossOriginConfiguration()
            BucketCrossOriginConfiguration crossOriginConfiguration) {
        setCrossOriginConfiguration(crossOriginConfiguration);
        return this;
    }
New to GrepCode? Check out our FAQ X