@Generated(value="software.amazon.awssdk:codegen") public class GetObjectResponse extends AmazonWebServiceResult<ResponseMetadata> implements software.amazon.awssdk.utils.builder.ToCopyableBuilder<GetObjectResponse.Builder,GetObjectResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GetObjectResponse.Builder |
Modifier and Type | Method and Description |
---|---|
String |
acceptRanges()
Returns the value of the AcceptRanges property for this object.
|
static GetObjectResponse.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 |
contentRange()
The portion of the object returned in the response.
|
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) |
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 GetObjectResponse.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.
|
Integer |
tagCount()
The number of tags, if any, on the object.
|
GetObjectResponse.Builder |
toBuilder() |
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.
|
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 contentRange()
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 Integer tagCount()
public GetObjectResponse.Builder toBuilder()
toBuilder
in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<GetObjectResponse.Builder,GetObjectResponse>
public static GetObjectResponse.Builder builder()
public static Class<? extends GetObjectResponse.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2017. All rights reserved.