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.transfer.model;
 
 
 public class CopyResult {

    
The name of the bucket containing the object to be copied
 
     private String sourceBucketName;

    
The key in the source bucket under which the object to be copied is stored
 
     private String sourceKey;

    
The name of the bucket to contain the copy of the source object
 
     private String destinationBucketName;

    
The key in the destination bucket under which the source object will be copied
 
     private String destinationKey;

    
The entity tag identifying the new object. An entity tag is an opaque string that changes if and only if an object's data changes.
 
     private String eTag;

    
The version ID of the new object, only present if versioning has been enabled for the bucket.
 
     private String versionId;

    
Gets the name of the bucket containing the source object to be copied.

Returns:
The name of the bucket containing the source object to be copied.
See also:
setSourceBucketName(java.lang.String)
 
     public String getSourceBucketName() {
         return ;
     }

    
Sets the name of the bucket containing the source object to be copied.

Parameters:
sourceBucketName The name of the bucket containing the source object to be copied.
See also:
getSourceBucketName()
 
     public void setSourceBucketName(String sourceBucketName) {
         this. = sourceBucketName;
     }

    
Gets the source bucket key under which the source object to be copied is stored.

Returns:
The source bucket key under which the source object to be copied is stored.
See also:
setSourceKey(java.lang.String)
 
     public String getSourceKey() {
         return ;
     }

    
Sets the source bucket key under which the source object to be copied is stored.

Parameters:
sourceKey The source bucket key under which the source object to be copied is stored.
See also:
setSourceKey(java.lang.String)
    public void setSourceKey(String sourceKey) {
        this. = sourceKey;
    }

    
Gets the destination bucket name which will contain the new, copied object.

Returns:
The name of the destination bucket which will contain the new, copied object.
See also:
setDestinationBucketName(java.lang.String)
    public String getDestinationBucketName() {
        return ;
    }

    
Sets the destination bucket name which will contain the new, copied object.

Parameters:
destinationBucketName The name of the destination bucket which will contain the new, copied object.
See also:
getDestinationBucketName()
    public void setDestinationBucketName(String destinationBucketName) {
        this. = destinationBucketName;
    }

    
Gets the destination bucket key under which the new, copied object will be stored.

Returns:
The destination bucket key under which the new, copied object will be stored.
See also:
setDestinationKey(java.lang.String)
    public String getDestinationKey() {
        return ;
    }

    
Sets the destination bucket key under which the new, copied object will be stored.

Parameters:
destinationKey The destination bucket key under which the new, copied object will be stored.
See also:
getDestinationKey()
    public void setDestinationKey(String destinationKey) {
        this. = destinationKey;
    }

    
Returns the entity tag identifying the new object. An entity tag is an opaque string that changes if and only if an object's data changes.

Returns:
An opaque string that changes if and only if an object's data changes.
    public String getETag() {
        return ;
    }

    
Sets the entity tag identifying the new object. An entity tag is an opaque string that changes if and only if an object's data changes.

Parameters:
etag The entity tag.
    public void setETag(String etag) {
        this. = etag;
    }

    
Returns the version ID of the new object. The version ID is only set if versioning has been enabled for the bucket.

Returns:
The version ID of the new object. The version ID is only set if versioning has been enabled for the bucket.
    public String getVersionId() {
        return ;
    }

    
Sets the version ID of the new object, only present if versioning has been enabled for the bucket.

Parameters:
versionId The version ID of the new object, only present if versioning has been enabled for the bucket.
    public void setVersionId(String versionId) {
        this. = versionId;
    }
New to GrepCode? Check out our FAQ X