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;
 
The AbortMultipartUploadRequest contains the parameters used for the AbortMultipartUpload method.

Required Parameters: BucketName, Key, UploadId

 
 public class AbortMultipartUploadRequest extends AmazonWebServiceRequest {

    
The name of the bucket containing the multipart upload to abort
 
     private String bucketName;

    
The key of the multipart upload to abort
 
     private String key;

    
The ID of the multipart upload to abort
 
     private String uploadId;
    

    
Constructs a new request to abort a multipart upload.

Parameters:
bucketName The name of the bucket containing the multipart upload to abort.
key The key of the multipart upload to abort.
uploadId The ID of the multipart upload to abort.
 
     public AbortMultipartUploadRequest(String bucketNameString keyString uploadId) {
         this. = bucketName;
         this. = key;
         this. = uploadId;
     }


    
Returns the name of the bucket containing the multipart upload to abort.
 
     public String getBucketName() {
         return this.;
     }

    
Sets the name of the bucket containing the multipart upload to abort.
 
     public void setBucketName(String value) {
         this. = value;
     }

    
Sets the name of the bucket containing the multipart upload to abort and returns the updated object so that additional calls can be chained together.

Parameters:
bucketName The name of the bucket containing the multipart upload to abort.
Returns:
The updated AbortMultipartUploadRequest object.
 
     public AbortMultipartUploadRequest withBucketName(String bucketName) {
         this. = bucketName;
         return this;
     }

    
Returns the key of the multipart upload to abort.

Returns:
The key of the multipart upload to abort.
 
     public String getKey() {
         return ;
     }

    
Sets the key of the multipart upload to abort.

Parameters:
key The key of the multipart upload to abort.
    public void setKey(String key) {
        this. = key;
    }

    
Sets the key of the multipart upload to abort and returns the updated AbortMultipartUploadRequest object so that additional method calls can be chained together.

Parameters:
key The key of the multipart upload to abort.
Returns:
The updated AbortMultipartUploadRequest.
        this. = key;
        return this;
    }

    
Returns the ID of the upload to abort.

Returns:
the ID of the upload to abort.
    public String getUploadId() {
        return ;
    }

    
Sets the ID of the upload to abort.
    public void setUploadId(String uploadId) {
        this. = uploadId;
    }

    
Sets the ID of the multipart upload to abort, and returns this updated AbortMultipartUploadRequest object so that additional method calls can be chained together.

Parameters:
uploadId The ID of the multipart upload to abort.
Returns:
The updated AbortMultipartUploadRequest object.
    public AbortMultipartUploadRequest withUploadId(String uploadId) {
        this. = uploadId;
        return this;
    }
New to GrepCode? Check out our FAQ X