@Override public String toString() { return "S3Object [key=" + getKey() + ", bucket=" + (bucketName == null ? "<Unknown>" : bucketName) + ", lastModified=" + getLastModifiedDate() + ", dataInputStream=" + dataInputStream + (getStorageClass() != null ? ", storageClass=" + getStorageClass() : "") + ", Metadata=" + getMetadataMap() + "]"; }
@Override public String toString() { return "S3Object [key=" + getKey() + ", bucket=" + (bucketName == null ? "<Unknown>" : bucketName) + ", lastModified=" + getLastModifiedDate() + ", dataInputStream=" + dataInputStream + (getStorageClass() != null ? ", storageClass=" + getStorageClass() : "") + ", Metadata=" + getMetadataMap() + "]"; }
objectETagTextField.setText(currentObject.getETag()); bucketLocationTextField.setText(currentObject.getBucketName()); String storageClass = (currentObject.getStorageClass() != null ? currentObject.getStorageClass() : S3Object.STORAGE_CLASS_STANDARD); storageClassTextField.setText(storageClass);
objectETagTextField.setText(currentObject.getETag()); bucketLocationTextField.setText(currentObject.getBucketName()); String storageClass = (currentObject.getStorageClass() != null ? currentObject.getStorageClass() : S3Object.STORAGE_CLASS_STANDARD); storageClassTextField.setText(storageClass);
/** * Start a multipart upload process for a given object; must be done before * individual parts can be uploaded. * * @param bucketName * the name of the bucket in which the object will be stored. * @param object * object containing details to apply to the completed object, including: * key name, metadata, ACL, storage class, server-side encryption algorithm * @return * object representing this multipart upload. * @throws S3ServiceException */ public MultipartUpload multipartStartUpload(String bucketName, S3Object object) throws S3ServiceException { return multipartStartUploadImpl(bucketName, object.getKey(), object.getMetadataMap(), object.getAcl(), object.getStorageClass(), object.getServerSideEncryptionAlgorithm()); }
/** * Start a multipart upload process for a given object; must be done before * individual parts can be uploaded. * * @param bucketName * the name of the bucket in which the object will be stored. * @param object * object containing details to apply to the completed object, including: * key name, metadata, ACL, storage class, server-side encryption algorithm * @return * object representing this multipart upload. * @throws S3ServiceException */ public MultipartUpload multipartStartUpload(String bucketName, S3Object object) throws S3ServiceException { return multipartStartUploadImpl(bucketName, object.getKey(), object.getMetadataMap(), object.getAcl(), object.getStorageClass(), object.getServerSideEncryptionAlgorithm()); }
if (s3Object.getStorageClass() != null && s3Object.getStorageClass().equals(S3Object.STORAGE_CLASS_GLACIER)) { throw new ServiceException(StringUtils.format( "Cannot move file[s3://%s/%s] of storage class glacier, skipping.",
destinationObject.getAcl(), destinationMetadata, ifModifiedSince, ifUnmodifiedSince, ifMatchTags, ifNoneMatchTags, versionId, destinationObject.getStorageClass(), destinationObject.getServerSideEncryptionAlgorithm()); } catch (ServiceException se) { throw new S3ServiceException(se);
destinationObject.getAcl(), destinationMetadata, ifModifiedSince, ifUnmodifiedSince, ifMatchTags, ifNoneMatchTags, versionId, destinationObject.getStorageClass(), destinationObject.getServerSideEncryptionAlgorithm()); } catch (ServiceException se) { throw new S3ServiceException(se);