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;
 
The CompleteMultipartUploadResult contains all the information about the CompleteMultipartUpload method.
 
 public class CompleteMultipartUploadResult extends SSEResultBase implements ObjectExpirationResult {

    
The name of the bucket containing the completed multipart upload.
 
     private String bucketName;

    
The key by which the object is stored.
 
     private String key;

    
The URL identifying the new multipart object.
 
     private String location;

    
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;

    
The time this object expires, or null if it has no expiration
 
     private Date expirationTime;

    
The expiration rule for this object
 
     private String expirationTimeRuleId;

    
Returns the URL identifying the new multipart object.

Returns:
The URL identifying the new multipart object.
 
     public String getLocation() {
         return ;
     }

    
Sets the URL identifying the new multipart object.

Parameters:
location The URL identifying the new multipart object.
 
     public void setLocation(String location) {
         this. = location;
     }

    
Returns the name of the bucket containing the completed multipart object.

Returns:
The name of the bucket containing the completed multipart object.
 
     public String getBucketName() {
         return ;
     }

    
Sets the name of the bucket containing the completed multipart object.

Parameters:
bucketName The name of the bucket containing the completed multipart object.
 
     public void setBucketName(String bucketName) {
         this. = bucketName;
     }

    
Gets the key by which the newly created object is stored.
 
     public String getKey() {
         return ;
    }

    
Sets the key of the newly created object.
    public void setKey(String key) {
        this. = key;
    }

    
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, only present if versioning has been enabled for the bucket.

Returns:
The version ID of the new object, only present 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;
    }

    
Returns the expiration time for this object, or null if it doesn't expire.
    public Date getExpirationTime() {
        return ;
    }

    
Sets the expiration time for the object.

Parameters:
expirationTime The expiration time for the object.
    public void setExpirationTime(Date expirationTime) {
        this. = expirationTime;
    }

    
Returns the BucketLifecycleConfiguration rule ID for this object's expiration, or null if it doesn't expire.
    public String getExpirationTimeRuleId() {
        return ;
    }

    
Sets the BucketLifecycleConfiguration rule ID for this object's expiration

Parameters:
expirationTimeRuleId The rule ID for this object's expiration
    public void setExpirationTimeRuleId(String expirationTimeRuleId) {
        this. = expirationTimeRuleId;
    }
New to GrepCode? Check out our FAQ X