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.List;

The ListPartsResponse contains all the information about the ListParts method.
 
 public class PartListing {

    
The name of the bucket containing the listed parts, as specified in the original request.
 
     private String bucketName;

    
The key value specified in the original request used to identify which multipart upload contains the parts to list.
 
     private String key;

    
The upload ID value specified in the original request used to identify which multipart upload contains the parts to list.
 
     private String uploadId;

    
The optional max parts value specified in the original request to limit how many parts are listed.
 
     private Integer maxParts;

    
The optional part number marker specified in the original request to specify where in the results to begin listing parts.
 
     private Integer partNumberMarker;
    
    
The encodingType parameter originally specified by the caller when this part listing was returned.
 
     private String encodingType;

    
The user who owns the associated multipart upload.
 
     private Owner owner;

    
The initiator of the associated multipart upload.
 
     private Owner initiator;

    
The class of storage used for the parts in the associated multipart upload.
 
     private String storageClass;

    
Indicates if the listing is truncated, and additional requests need to be made to get more results.
 
     private boolean isTruncated;

    
If this listing is truncated, this is the part number marker that should be used in the next request to get the next page of results.
 
     private Integer nextPartNumberMarker;

    
The list of parts described in this part listing.
 
     private List<PartSummaryparts;


    
Returns the name of the bucket containing the listed parts, as specified in the original request.

Returns:
the name of the bucket containing the listed parts, as specified in the original request.
 
     public String getBucketName() {
         return ;
     }

    
Sets the name of the bucket containing the listed parts, as specified in the original request.

Parameters:
bucketName the name of the bucket containing the listed parts, as specified in the original request.
    public void setBucketName(String bucketName) {
        this. = bucketName;
    }

    
Returns the key value specified in the original request used to identify which multipart upload contains the parts to list.

Returns:
the key value specified in the original request used to identify which multipart upload contains the parts to list.
    public String getKey() {
        return ;
    }

    
Sets the key value specified in the original request used to identify which multipart upload contains the parts to list.

Parameters:
key the key value specified in the original request used to identify which multipart upload contains the parts to list.
    public void setKey(String key) {
        this. = key;
    }

    
Returns the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.

Returns:
the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.
    public String getUploadId() {
        return ;
    }

    
Sets the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.

Parameters:
uploadId the upload ID value specified in the original request used to identify which multipart upload contains the parts to list.
    public void setUploadId(String uploadId) {
        this. = uploadId;
    }

    
Returns details on the user who owns the associated multipart upload.

Returns:
details on the user who owns the associated multipart upload.
    public Owner getOwner() {
        return ;
    }

    
Sets the user who owns the associated multipart upload.

Parameters:
owner the user who owns the associated multipart upload.
    public void setOwner(Owner owner) {
        this. = owner;
    }

    
Returns details on the user who initiated the associated multipart upload.

Returns:
details on the user who initiated the associated multipart upload.
    public Owner getInitiator() {
        return ;
    }

    
Sets the user who initiated the associated multipart upload.

Parameters:
initiator the user who initiated the associated multipart upload.
    public void setInitiator(Owner initiator) {
        this. = initiator;
    }

    
Returns the class of storage used for the parts in the associated multipart upload.

Returns:
The class of storage used for the parts in the associated multipart upload.
    public String getStorageClass() {
        return ;
    }

    
Sets the class of storage used for the parts in the associated multipart upload.

Parameters:
storageClass The class of storage used for the parts in the associated multipart upload.
    public void setStorageClass(String storageClass) {
        this. = storageClass;
    }

    
Returns the optional part number marker specified in the original request to specify where in the results to begin listing parts.

Returns:
the optional part number marker specified in the original request to specify where in the results to begin listing parts.
    public Integer getPartNumberMarker() {
        return ;
    }

    
Sets the optional part number marker specified in the original request to specify where in the results to begin listing parts.

Parameters:
partNumberMarker the optional part number marker specified in the original request to specify where in the results to begin listing parts.
    public void setPartNumberMarker(int partNumberMarker) {
        this. = partNumberMarker;
    }

    
Returns the next part number marker. If this listing is truncated, this is the part number marker that should be used in the next request to get the next page of results.

Returns:
The next part number marker, to be used for pagination if this part listing is truncated.
    public Integer getNextPartNumberMarker() {
        return ;
    }

    
Sets the next part number marker. If this listing is truncated, this is the part number marker that should be used in the next request to get the next page of results.

Parameters:
nextPartNumberMarker The next part number marker.
    public void setNextPartNumberMarker(int nextPartNumberMarker) {
        this. = nextPartNumberMarker;
    }

    
Returns the optional max parts value specified in the original request to limit how many parts are listed.

Returns:
The optional max parts value specified in the original request to limit how many parts are listed.
    public Integer getMaxParts() {
        return ;
    }

    
Sets the optional max parts value specified in the original request to limit how many parts are listed.

Parameters:
maxParts The optional max parts value specified in the original request to limit how many parts are listed.
    public void setMaxParts(int maxParts) {
        this. = maxParts;
    }

    
Gets the encoding type used by Amazon S3 to encode object key names in the XML response. If you specify encodingType request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the Key element.

Returns:
Null if encodingType is not specified in the request parameter.
    public String getEncodingType() {
        return ;
    }

    
For internal use only. Sets the encoding type used by Amazon S3 to encode object key names in the XML response.

Parameters:
encodingType Null if encodingType is not specified in the request parameter.
    public void setEncodingType(String encodingType) {
        this. = encodingType;
    }

    
Returns whether or not this listing is truncated, and additional requests need to be made to get more results.

Returns:
whether or not this listing is truncated, and additional requests need to be made to get more results.
    public boolean isTruncated() {
        return ;
    }

    
Sets whether or not this listing is truncated, and additional requests need to be made to get more results.

Parameters:
isTruncated whether or not this listing is truncated, and additional requests need to be made to get more results.
    public void setTruncated(boolean isTruncated) {
        this. = isTruncated;
    }

    
Returns the list of parts described in this part listing.

Returns:
The list of parts described in this part listing.
    public List<PartSummarygetParts() {
        if ( == null = new ArrayList<PartSummary>();
        return ;
    }

    
Sets the list of parts described in this part listing.

Parameters:
parts The list of parts described in this part listing.
    public void setParts(List<PartSummaryparts) {
        this. = parts;
    }
New to GrepCode? Check out our FAQ X