Class DescribeObjectResponse
- 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.DescribeObjectResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeObjectResponse.Builder,DescribeObjectResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeObjectResponse extends MediaStoreDataResponse implements ToCopyableBuilder<DescribeObjectResponse.Builder,DescribeObjectResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeObjectResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescribeObjectResponse.Builderbuilder()StringcacheControl()An optionalCacheControlheader that allows the caller to control the object's cache behavior.LongcontentLength()The length of the object in bytes.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 DescribeObjectResponse.Builder>serializableBuilderClass()DescribeObjectResponse.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
-
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.
-
contentType
public final String contentType()
The content type of the object.
- Returns:
- The content type of the object.
-
contentLength
public final Long contentLength()
The length of the object in bytes.
- Returns:
- The length of the object in bytes.
-
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 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 at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.Headers with a custom user-defined value are also accepted.
-
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.
-
toBuilder
public DescribeObjectResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeObjectResponse.Builder,DescribeObjectResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeObjectResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeObjectResponse.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
-
-