Class CompleteMultipartUploadResult


  • public class CompleteMultipartUploadResult
    extends java.lang.Object
    Result returned after requests for completing a multipart upload. It is defined in http://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadComplete.html. It will be encoded into an XML string to be returned as a response for the REST call.
    • Constructor Detail

      • CompleteMultipartUploadResult

        public CompleteMultipartUploadResult()
        Constructs an CompleteMultipartUploadResult with fields initialized to empty strings.
      • CompleteMultipartUploadResult

        public CompleteMultipartUploadResult​(java.lang.String location,
                                             java.lang.String bucket,
                                             java.lang.String key,
                                             java.lang.String etag)
        Constructs an CompleteMultipartUploadResult with the specified values.
        Parameters:
        location - the URI that identifies the newly created object
        bucket - name of the bucket
        key - object key
        etag - entity tag of the newly created object, the etag should not be surrounded by quotes
    • Method Detail

      • getLocation

        public java.lang.String getLocation()
        Returns:
        the location
      • setLocation

        public void setLocation​(java.lang.String location)
        Parameters:
        location - the location to set
      • getBucket

        public java.lang.String getBucket()
        Returns:
        the bucket name
      • setBucket

        public void setBucket​(java.lang.String bucket)
        Parameters:
        bucket - the bucket name to set
      • getKey

        public java.lang.String getKey()
        Returns:
        the object key
      • setKey

        public void setKey​(java.lang.String key)
        Parameters:
        key - the object key to set
      • getETag

        public java.lang.String getETag()
        Returns:
        the entity tag surrounded by quotes
      • setETag

        public void setETag​(java.lang.String etag)
        Parameters:
        etag - the entity tag to be set, should not be surrounded by quotes