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;
 
 import java.util.Date;

Container for summary information about a part in a multipart upload, such as part number, size, etc.
 
 public class PartSummary {

    
The part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
 
     private int partNumber;

    
The date at which this part was last modified.
 
     private Date lastModified;

    
The entity tag generated from the part content.
 
     private String eTag;

    
The size, in bytes, of the part.
 
     private long size;


    
Returns the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).

Returns:
the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
 
     public int getPartNumber() {
         return ;
     }

    
Sets the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).

Parameters:
partNumber the part number describing this part's position relative to the other parts in the multipart upload. Part number must be between 1 and 10,000 (inclusive).
 
     public void setPartNumber(int partNumber) {
         this. = partNumber;
     }

    
Returns the date this part was last modified.

Returns:
the date this part was last modified.
 
     public Date getLastModified() {
         return ;
     }

    
Sets the date this part was last modified.

Parameters:
lastModified the date this part was last modified.
 
     public void setLastModified(Date lastModified) {
         this. = lastModified;
     }

    
Returns the entity tag generated from the part content.

Returns:
the entity tag generated from the part content.
 
     public String getETag() {
         return ;
     }

    
Sets the entity tag generated from the part content.

Parameters:
eTag the entity tag generated from the part content.
    public void setETag(String eTag) {
        this. = eTag;
    }

    
Returns the size of this part, in bytes.

Returns:
the size of this part, in bytes.
    public long getSize() {
        return ;
    }

    
Sets the size of this part, in bytes.

Parameters:
size the size of this part, in bytes.
    public void setSize(long size) {
        this. = size;
    }
New to GrepCode? Check out our FAQ X