Class Image
- java.lang.Object
-
- software.amazon.awssdk.services.kinesisvideoarchivedmedia.model.Image
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Image.Builder,Image>
@Generated("software.amazon.awssdk:codegen") public final class Image extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Image.Builder,Image>
A structure that contains the
Timestamp,Error, andImageContent.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Image.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ImageErrorerror()The error message shown when the image for the provided timestamp was not extracted due to a non-tryable error.StringerrorAsString()The error message shown when the image for the provided timestamp was not extracted due to a non-tryable error.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringimageContent()An attribute of theImageobject that is Base64 encoded.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Image.Builder>serializableBuilderClass()InstanttimeStamp()An attribute of theImageobject that is used to extract an image from the video stream.Image.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
timeStamp
public final Instant timeStamp()
An attribute of the
Imageobject that is used to extract an image from the video stream. This field is used to manage gaps on images or to better understand the pagination window.- Returns:
- An attribute of the
Imageobject that is used to extract an image from the video stream. This field is used to manage gaps on images or to better understand the pagination window.
-
error
public final ImageError error()
The error message shown when the image for the provided timestamp was not extracted due to a non-tryable error. An error will be returned if:
-
There is no media that exists for the specified
Timestamp.
-
The media for the specified time does not allow an image to be extracted. In this case the media is audio only, or the incorrect media has been ingested.
If the service returns an enum value that is not available in the current SDK version,
errorwill returnImageError.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorAsString().- Returns:
- The error message shown when the image for the provided timestamp was not extracted due to a non-tryable
error. An error will be returned if:
-
There is no media that exists for the specified
Timestamp.
-
The media for the specified time does not allow an image to be extracted. In this case the media is audio only, or the incorrect media has been ingested.
-
- See Also:
ImageError
-
-
errorAsString
public final String errorAsString()
The error message shown when the image for the provided timestamp was not extracted due to a non-tryable error. An error will be returned if:
-
There is no media that exists for the specified
Timestamp.
-
The media for the specified time does not allow an image to be extracted. In this case the media is audio only, or the incorrect media has been ingested.
If the service returns an enum value that is not available in the current SDK version,
errorwill returnImageError.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorAsString().- Returns:
- The error message shown when the image for the provided timestamp was not extracted due to a non-tryable
error. An error will be returned if:
-
There is no media that exists for the specified
Timestamp.
-
The media for the specified time does not allow an image to be extracted. In this case the media is audio only, or the incorrect media has been ingested.
-
- See Also:
ImageError
-
-
imageContent
public final String imageContent()
An attribute of the
Imageobject that is Base64 encoded.- Returns:
- An attribute of the
Imageobject that is Base64 encoded.
-
toBuilder
public Image.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Image.Builder,Image>
-
builder
public static Image.Builder builder()
-
serializableBuilderClass
public static Class<? extends Image.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-