@Generated(value="software.amazon.awssdk:codegen") public class HeadObjectResponse extends S3Response implements ToCopyableBuilder<HeadObjectResponse.Builder,HeadObjectResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
HeadObjectResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
acceptRanges()
Returns the value of the AcceptRanges property for this object.
|
static HeadObjectResponse.Builder |
builder() |
String |
cacheControl()
Specifies caching behavior along the request/reply chain.
|
String |
contentDisposition()
Specifies presentational information for the object.
|
String |
contentEncoding()
Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be
applied to obtain the media-type referenced by the Content-Type header field.
|
String |
contentLanguage()
The language the content is in.
|
Long |
contentLength()
Size of the body in bytes.
|
String |
contentType()
A standard MIME type describing the format of the object data.
|
Boolean |
deleteMarker()
Specifies whether the object retrieved was (true) or was not (false) a Delete Marker.
|
boolean |
equals(Object obj) |
String |
eTag()
An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL
|
String |
expiration()
If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header.
|
Instant |
expires()
The date and time at which the object is no longer cacheable.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkResponse . |
int |
hashCode() |
Instant |
lastModified()
Last modified date of the object
|
Map<String,String> |
metadata()
A map of metadata to store with the object in S3.
|
Integer |
missingMeta()
This is set to the number of metadata entries not returned in x-amz-meta headers.
|
Integer |
partsCount()
The count of parts this object has.
|
ReplicationStatus |
replicationStatus()
Returns the value of the ReplicationStatus property for this object.
|
String |
replicationStatusString()
Returns the value of the ReplicationStatus property for this object.
|
RequestCharged |
requestCharged()
Returns the value of the RequestCharged property for this object.
|
String |
requestChargedString()
Returns the value of the RequestCharged property for this object.
|
String |
restore()
Provides information about object restoration operation and expiration time of the restored object copy.
|
static Class<? extends HeadObjectResponse.Builder> |
serializableBuilderClass() |
ServerSideEncryption |
serverSideEncryption()
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
|
String |
serverSideEncryptionString()
The Server-side encryption algorithm used when storing this object in S3 (e.g., AES256, aws:kms).
|
String |
sseCustomerAlgorithm()
If server-side encryption with a customer-provided encryption key was requested, the response will include this
header confirming the encryption algorithm used.
|
String |
sseCustomerKeyMD5()
If server-side encryption with a customer-provided encryption key was requested, the response will include this
header to provide round trip message integrity verification of the customer-provided encryption key.
|
String |
ssekmsKeyId()
If present, specifies the ID of the AWS Key Management Service (KMS) master encryption key that was used for the
object.
|
StorageClass |
storageClass()
Returns the value of the StorageClass property for this object.
|
String |
storageClassString()
Returns the value of the StorageClass property for this object.
|
HeadObjectResponse.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
versionId()
Version of the object.
|
String |
websiteRedirectLocation()
If the bucket is configured as a website, redirects requests for this object to another object in the same bucket
or to an external URL.
|
copy
public Boolean deleteMarker()
public String acceptRanges()
public String expiration()
public String restore()
public Instant lastModified()
public Long contentLength()
public String eTag()
public Integer missingMeta()
public String versionId()
public String cacheControl()
public String contentDisposition()
public String contentEncoding()
public String contentLanguage()
public String contentType()
public Instant expires()
public String websiteRedirectLocation()
public ServerSideEncryption serverSideEncryption()
If the service returns an enum value that is not available in the current SDK version,
serverSideEncryption
will return ServerSideEncryption.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from serverSideEncryptionString()
.
ServerSideEncryption
public String serverSideEncryptionString()
If the service returns an enum value that is not available in the current SDK version,
serverSideEncryption
will return ServerSideEncryption.UNKNOWN_TO_SDK_VERSION
. The raw value
returned by the service is available from serverSideEncryptionString()
.
ServerSideEncryption
public Map<String,String> metadata()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String sseCustomerAlgorithm()
public String sseCustomerKeyMD5()
public String ssekmsKeyId()
public StorageClass storageClass()
If the service returns an enum value that is not available in the current SDK version, storageClass
will
return StorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
storageClassString()
.
StorageClass
public String storageClassString()
If the service returns an enum value that is not available in the current SDK version, storageClass
will
return StorageClass.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
storageClassString()
.
StorageClass
public RequestCharged requestCharged()
If the service returns an enum value that is not available in the current SDK version, requestCharged
will return RequestCharged.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from requestChargedString()
.
RequestCharged
public String requestChargedString()
If the service returns an enum value that is not available in the current SDK version, requestCharged
will return RequestCharged.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from requestChargedString()
.
RequestCharged
public ReplicationStatus replicationStatus()
If the service returns an enum value that is not available in the current SDK version, replicationStatus
will return ReplicationStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from replicationStatusString()
.
ReplicationStatus
public String replicationStatusString()
If the service returns an enum value that is not available in the current SDK version, replicationStatus
will return ReplicationStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from replicationStatusString()
.
ReplicationStatus
public Integer partsCount()
public HeadObjectResponse.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<HeadObjectResponse.Builder,HeadObjectResponse>
toBuilder
in class AwsResponse
public static HeadObjectResponse.Builder builder()
public static Class<? extends HeadObjectResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkResponse
SdkResponse
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkResponse.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkResponse
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.