* 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. *
*/ 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.
*
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.
*/
public java.util.List
* 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.
*
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.
*/
public void setImages(java.util.Collection
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setImages(java.util.Collection)} or {@link #withImages(java.util.Collection)} if you want to override the * existing values. *
* * @param images * The list of images generated from the video stream. If there is no media available for the given * timestamp, theNO_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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImagesResult withImages(Image... images) {
if (this.images == null) {
setImages(new java.util.ArrayList
* 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.
*
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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImagesResult withImages(java.util.Collection* The encrypted token that was used in the request to get more images. *
* * @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. *
* * @return The encrypted token that was used in the request to get more images. */ public String getNextToken() { return this.nextToken; } /** ** The encrypted token that was used in the request to get more images. *
* * @param nextToken * The encrypted token that was used in the request to get more images. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * 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. * * @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: ").append(getImages()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @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; } @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 GetImagesResult clone() { try { return (GetImagesResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }