/* * Copyright 2010-2022 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.kinesisvideoarchivedmedia.model; import java.io.Serializable; public class GetImagesResult implements Serializable { /** *
* The list of images generated from the video stream. If there is no media
* available for the given timestamp, the NO_MEDIA
error will
* be listed in the output. If an error occurs while the image is being
* generated, the MEDIA_ERROR
will be listed in the output as
* the cause of the missing image.
*
* The encrypted token that was used in the request to get more images. *
*
* Constraints:
* Length: 1 - 4096
* Pattern: [a-zA-Z0-9+/]+={0,2}
*/
private String nextToken;
/**
*
* The list of images generated from the video stream. If there is no media
* available for the given timestamp, the NO_MEDIA
error will
* be listed in the output. If an error occurs while the image is being
* generated, the MEDIA_ERROR
will be listed in the output as
* the cause of the missing image.
*
* The list of images generated from the video stream. If there is
* no media available for the given timestamp, the
* NO_MEDIA
error will be listed in the output. If an
* error occurs while the image is being generated, the
* MEDIA_ERROR
will be listed in the output as the
* cause of the missing image.
*
* The list of images generated from the video stream. If there is no media
* available for the given timestamp, the NO_MEDIA
error will
* be listed in the output. If an error occurs while the image is being
* generated, the MEDIA_ERROR
will be listed in the output as
* the cause of the missing image.
*
* The list of images generated from the video stream. If there
* is no media available for the given timestamp, the
* NO_MEDIA
error will be listed in the output. If
* an error occurs while the image is being generated, the
* MEDIA_ERROR
will be listed in the output as the
* cause of the missing image.
*
* The list of images generated from the video stream. If there is no media
* available for the given timestamp, the NO_MEDIA
error will
* be listed in the output. If an error occurs while the image is being
* generated, the MEDIA_ERROR
will be listed in the output as
* the cause of the missing image.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param images
* The list of images generated from the video stream. If there
* is no media available for the given timestamp, the
* NO_MEDIA
error will be listed in the output. If
* an error occurs while the image is being generated, the
* MEDIA_ERROR
will be listed in the output as the
* cause of the missing image.
*
* The list of images generated from the video stream. If there is no media
* available for the given timestamp, the NO_MEDIA
error will
* be listed in the output. If an error occurs while the image is being
* generated, the MEDIA_ERROR
will be listed in the output as
* the cause of the missing image.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param images
* The list of images generated from the video stream. If there
* is no media available for the given timestamp, the
* NO_MEDIA
error will be listed in the output. If
* an error occurs while the image is being generated, the
* MEDIA_ERROR
will be listed in the output as the
* cause of the missing image.
*
* The encrypted token that was used in the request to get more images. *
*
* Constraints:
* Length: 1 - 4096
* Pattern: [a-zA-Z0-9+/]+={0,2}
*
* @return
* The encrypted token that was used in the request to get more * images. *
*/ public String getNextToken() { return nextToken; } /** ** The encrypted token that was used in the request to get more images. *
*
* Constraints:
* Length: 1 - 4096
* Pattern: [a-zA-Z0-9+/]+={0,2}
*
* @param nextToken
* The encrypted token that was used in the request to get more * images. *
*/ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The encrypted token that was used in the request to get more images. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 4096
* Pattern: [a-zA-Z0-9+/]+={0,2}
*
* @param nextToken
* The encrypted token that was used in the request to get more * images. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GetImagesResult withNextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getImages() != null) sb.append("Images: " + getImages() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getImages() == null) ? 0 : getImages().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetImagesResult == false) return false; GetImagesResult other = (GetImagesResult) obj; if (other.getImages() == null ^ this.getImages() == null) return false; if (other.getImages() != null && other.getImages().equals(this.getImages()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } }