Class GetObjectResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.mediastoredata.model.MediaStoreDataResponse
-
- software.amazon.awssdk.services.mediastoredata.model.GetObjectResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetObjectResponse.Builder,GetObjectResponse>
@Generated("software.amazon.awssdk:codegen") public final class GetObjectResponse extends MediaStoreDataResponse implements ToCopyableBuilder<GetObjectResponse.Builder,GetObjectResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetObjectResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetObjectResponse.Builderbuilder()StringcacheControl()An optionalCacheControlheader that allows the caller to control the object's cache behavior.LongcontentLength()The length of the object in bytes.StringcontentRange()The range of bytes to retrieve.StringcontentType()The content type of the object.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringeTag()The ETag that represents a unique instance of the object.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastModified()The date and time that the object was last modified.List<SdkField<?>>sdkFields()static Class<? extends GetObjectResponse.Builder>serializableBuilderClass()IntegerstatusCode()The HTML status code of the request.GetObjectResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.mediastoredata.model.MediaStoreDataResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
cacheControl
public final String cacheControl()
An optional
CacheControlheader that allows the caller to control the object's cache behavior. Headers can be passed in as specified in the HTTP spec at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.Headers with a custom user-defined value are also accepted.
- Returns:
- An optional
CacheControlheader that allows the caller to control the object's cache behavior. Headers can be passed in as specified in the HTTP spec at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.Headers with a custom user-defined value are also accepted.
-
contentRange
public final String contentRange()
The range of bytes to retrieve.
- Returns:
- The range of bytes to retrieve.
-
contentLength
public final Long contentLength()
The length of the object in bytes.
- Returns:
- The length of the object in bytes.
-
contentType
public final String contentType()
The content type of the object.
- Returns:
- The content type of the object.
-
eTag
public final String eTag()
The ETag that represents a unique instance of the object.
- Returns:
- The ETag that represents a unique instance of the object.
-
lastModified
public final Instant lastModified()
The date and time that the object was last modified.
- Returns:
- The date and time that the object was last modified.
-
statusCode
public final Integer statusCode()
The HTML status code of the request. Status codes ranging from 200 to 299 indicate success. All other status codes indicate the type of error that occurred.
- Returns:
- The HTML status code of the request. Status codes ranging from 200 to 299 indicate success. All other status codes indicate the type of error that occurred.
-
toBuilder
public GetObjectResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetObjectResponse.Builder,GetObjectResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetObjectResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetObjectResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-