Class PutObjectRequest

    • Constructor Detail

      • PutObjectRequest

        public PutObjectRequest​(java.lang.String bucketName,
                                java.lang.String key,
                                java.lang.Object object)
    • Method Detail

      • getHeaders

        public java.util.Map<java.lang.String,​java.util.List<java.lang.Object>> getHeaders()
        Description copied from class: ObjectRequest
        Override to return request-specific headers based on properties of the request. Always call super() first and modify the result.
        Overrides:
        getHeaders in class ObjectRequest
      • setObjectMetadata

        public void setObjectMetadata​(S3ObjectMetadata objectMetadata)
      • getObject

        public java.lang.Object getObject()
      • getRange

        public Range getRange()
      • setRange

        public void setRange​(Range range)
      • getIfModifiedSince

        public java.util.Date getIfModifiedSince()
      • setIfModifiedSince

        public void setIfModifiedSince​(java.util.Date ifModifiedSince)
      • getIfUnmodifiedSince

        public java.util.Date getIfUnmodifiedSince()
      • setIfUnmodifiedSince

        public void setIfUnmodifiedSince​(java.util.Date ifUnmodifiedSince)
      • getIfMatch

        public java.lang.String getIfMatch()
      • setIfMatch

        public void setIfMatch​(java.lang.String ifMatch)
      • getIfNoneMatch

        public java.lang.String getIfNoneMatch()
      • setIfNoneMatch

        public void setIfNoneMatch​(java.lang.String ifNoneMatch)
      • getCannedAcl

        public CannedAcl getCannedAcl()
      • setCannedAcl

        public void setCannedAcl​(CannedAcl cannedAcl)
      • getRetentionPeriod

        @Deprecated
        public java.lang.Long getRetentionPeriod()
        Deprecated.
        Use the method com.emc.object.s3.S3ObjectMetadata.getRetentionPeriod in preference to this one.
        Returns:
        The retention period in seconds.
      • setRetentionPeriod

        @Deprecated
        public void setRetentionPeriod​(java.lang.Long retentionPeriod)
        Deprecated.
        Use the method com.emc.object.s3.S3ObjectMetadata.setRetentionPeriod in preference to this one.
        Sets the retention (read-only) period for the object in seconds (after retentionPeriod seconds, you can modify or delete the object)
      • getRetentionPolicy

        @Deprecated
        public java.lang.String getRetentionPolicy()
        Deprecated.
        Use the method com.emc.object.s3.S3ObjectMetadata.getRetentionPolicy in preference to this one.
        Returns:
        The retention policy name.
      • setRetentionPolicy

        @Deprecated
        public void setRetentionPolicy​(java.lang.String retentionPolicy)
        Deprecated.
        Use the method com.emc.object.s3.S3ObjectMetadata.setRetentionPolicy in preference to this one.
        Sets the name of the retention policy to apply to the object. Retention policies are defined within each namespace
      • setObjectTagging

        public void setObjectTagging​(ObjectTagging objectTagging)
      • withIfModifiedSince

        public PutObjectRequest withIfModifiedSince​(java.util.Date ifModifiedSince)
      • withIfUnmodifiedSince

        public PutObjectRequest withIfUnmodifiedSince​(java.util.Date ifUnmodifiedSince)
      • withIfMatch

        public PutObjectRequest withIfMatch​(java.lang.String ifMatch)
      • withIfNoneMatch

        public PutObjectRequest withIfNoneMatch​(java.lang.String ifNoneMatch)
      • withRetentionPeriod

        @Deprecated
        public PutObjectRequest withRetentionPeriod​(long retentionPeriod)
        Deprecated.
        Use the method com.emc.object.s3.S3ObjectMetadata.setRetentionPeriod in preference to this one.
        Convenience method.
        Parameters:
        retentionPeriod -
        Returns:
        The request.
      • withRetentionPolicy

        @Deprecated
        public PutObjectRequest withRetentionPolicy​(java.lang.String retentionPolicy)
        Deprecated.
        Use the method com.emc.object.s3.S3ObjectMetadata.setRetentionPolicy in preference to this one.
        Convenience method.
        Parameters:
        retentionPolicy -
        Returns:
        The request.