/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.kinesisvideo.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* A structure that contains the Timestamp, Error, and ImageContent. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Image implements Serializable, Cloneable, StructuredPojo { /** *

* An attribute of the Image object 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. *

*/ private java.util.Date timeStamp; /** *

* 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: *

* * */ private String error; /** *

* An attribute of the Image object that is Base64 encoded. *

*/ private String imageContent; /** *

* An attribute of the Image object 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. *

* * @param timeStamp * An attribute of the Image object 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. */ public void setTimeStamp(java.util.Date timeStamp) { this.timeStamp = timeStamp; } /** *

* An attribute of the Image object 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. *

* * @return An attribute of the Image object 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. */ public java.util.Date getTimeStamp() { return this.timeStamp; } /** *

* An attribute of the Image object 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. *

* * @param timeStamp * An attribute of the Image object 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. * @return Returns a reference to this object so that method calls can be chained together. */ public Image withTimeStamp(java.util.Date timeStamp) { setTimeStamp(timeStamp); return this; } /** *

* 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: *

* * * * @param 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:

* *