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;
 
 import java.util.Date;
 
Result of the copy part operation.
 
 public class CopyPartResult extends SSEResultBase {

    
The ETag value of the new part
 
     private String etag;

    
The last modified date for the new part
 
     private Date lastModifiedDate;

    
The version ID of the source object. This field will only be present if object versioning has been enabled for the bucket from which the object was copied.
 
     private String versionId;

    
The part number of the copied part
 
     private int partNumber;

    
Gets the part number of the newly copied part.
 
     public int getPartNumber() {
         return ;
     }

    
Sets the part number of the newly copied part.

Parameters:
partNumber the part number of the newly uploaded part.
 
     public void setPartNumber(int partNumber) {
         this. = partNumber;
     }

    
Gets the ETag value for the new part that was created in the associated CopyPartRequest.

Returns:
The ETag value for the new part.
See also:
setETag(java.lang.String)
 
     public String getETag() {
         return ;
     }

    
Sets the ETag value for the new part that was created from the associated copy object request.

Parameters:
etag The ETag value for the new part.
See also:
getETag()
 
     public void setETag(String etag) {
         this. = etag;
     }

    
Returns an identifier which identifies the copy part by its part number and the entity tag computed from the part's data. This information is later needed to complete a multipart copy.

Returns:
An identifier which identifies the copy part by its part number and the entity tag computed from the part's data.
 
     public PartETag getPartETag() {
         return new PartETag();
     }

    
Gets the date the newly copied part was last modified.

Returns:
The date the newly copied part was last modified.
See also:
setLastModifiedDate(java.util.Date)
    public Date getLastModifiedDate() {
        return ;
    }

    
Sets the date the newly copied part was last modified.

Parameters:
lastModifiedDate The date the new, copied part was last modified.
See also:
getLastModifiedDate()
    public void setLastModifiedDate(Date lastModifiedDate) {
        this. = lastModifiedDate;
    }

    
Gets the version ID of the source object. This field is only present if object versioning has been enabled for the bucket the object was copied from.

Returns:
The version ID of the newly copied object.
See also:
setVersionId(java.lang.String)
    public String getVersionId() {
        return ;
    }

    
Sets the version ID of the source object.

Parameters:
versionId The version ID of the source object.
See also:
getVersionId()
    public void setVersionId(String versionId) {
        this. = versionId;
    }
New to GrepCode? Check out our FAQ X