/* * 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.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetImagesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the stream from which to retrieve the images. You must specify either the StreamName or * the StreamARN. *

*/ private String streamName; /** *

* The Amazon Resource Name (ARN) of the stream from which to retrieve the images. You must specify either the * StreamName or the StreamARN. *

*/ private String streamARN; /** *

* The origin of the Server or Producer timestamps to use to generate the images. *

*/ private String imageSelectorType; /** *

* The starting point from which the images should be generated. This StartTimestamp must be within an * inclusive range of timestamps for an image to be returned. *

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

* The end timestamp for the range of images to be generated. *

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

* The time interval in milliseconds (ms) at which the images need to be generated from the stream. The minimum * value that can be provided is 3000 ms. If the timestamp range is less than the sampling interval, the Image from * the startTimestamp will be returned if available. *

* *

* The minimum value of 3000 ms is a soft limit. If needed, a lower sampling frequency can be requested. *

*
*/ private Integer samplingInterval; /** *

* The format that will be used to encode the image. *

*/ private String format; /** *

* The list of a key-value pair structure that contains extra parameters that can be applied when the image is * generated. The FormatConfig key is the JPEGQuality, which indicates the JPEG quality * key to be used to generate the image. The FormatConfig value accepts ints from 1 to 100. If the * value is 1, the image will be generated with less quality and the best compression. If the value is 100, the * image will be generated with the best quality and less compression. If no value is provided, the default value of * the JPEGQuality key will be set to 80. *

*/ private java.util.Map formatConfig; /** *

* The width of the output image that is used in conjunction with the HeightPixels parameter. When both * WidthPixels and HeightPixels parameters are provided, the image will be stretched to * fit the specified aspect ratio. If only the WidthPixels parameter is provided or if only the * HeightPixels is provided, a ValidationException will be thrown. If neither parameter is * provided, the original image size from the stream will be returned. *

*/ private Integer widthPixels; /** *

* The height of the output image that is used in conjunction with the WidthPixels parameter. When both * HeightPixels and WidthPixels parameters are provided, the image will be stretched to * fit the specified aspect ratio. If only the HeightPixels parameter is provided, its original aspect * ratio will be used to calculate the WidthPixels ratio. If neither parameter is provided, the * original image size will be returned. *

*/ private Integer heightPixels; /** *

* The maximum number of images to be returned by the API. *

* *

* The default limit is 100 images per API response. The additional results will be paginated. *

*
*/ private Long maxResults; /** *

* A token that specifies where to start paginating the next set of Images. This is the * GetImages:NextToken from a previously truncated response. *

*/ private String nextToken; /** *

* The name of the stream from which to retrieve the images. You must specify either the StreamName or * the StreamARN. *

* * @param streamName * The name of the stream from which to retrieve the images. You must specify either the * StreamName or the StreamARN. */ public void setStreamName(String streamName) { this.streamName = streamName; } /** *

* The name of the stream from which to retrieve the images. You must specify either the StreamName or * the StreamARN. *

* * @return The name of the stream from which to retrieve the images. You must specify either the * StreamName or the StreamARN. */ public String getStreamName() { return this.streamName; } /** *

* The name of the stream from which to retrieve the images. You must specify either the StreamName or * the StreamARN. *

* * @param streamName * The name of the stream from which to retrieve the images. You must specify either the * StreamName or the StreamARN. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest withStreamName(String streamName) { setStreamName(streamName); return this; } /** *

* The Amazon Resource Name (ARN) of the stream from which to retrieve the images. You must specify either the * StreamName or the StreamARN. *

* * @param streamARN * The Amazon Resource Name (ARN) of the stream from which to retrieve the images. You must specify either * the StreamName or the StreamARN. */ public void setStreamARN(String streamARN) { this.streamARN = streamARN; } /** *

* The Amazon Resource Name (ARN) of the stream from which to retrieve the images. You must specify either the * StreamName or the StreamARN. *

* * @return The Amazon Resource Name (ARN) of the stream from which to retrieve the images. You must specify either * the StreamName or the StreamARN. */ public String getStreamARN() { return this.streamARN; } /** *

* The Amazon Resource Name (ARN) of the stream from which to retrieve the images. You must specify either the * StreamName or the StreamARN. *

* * @param streamARN * The Amazon Resource Name (ARN) of the stream from which to retrieve the images. You must specify either * the StreamName or the StreamARN. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest withStreamARN(String streamARN) { setStreamARN(streamARN); return this; } /** *

* The origin of the Server or Producer timestamps to use to generate the images. *

* * @param imageSelectorType * The origin of the Server or Producer timestamps to use to generate the images. * @see ImageSelectorType */ public void setImageSelectorType(String imageSelectorType) { this.imageSelectorType = imageSelectorType; } /** *

* The origin of the Server or Producer timestamps to use to generate the images. *

* * @return The origin of the Server or Producer timestamps to use to generate the images. * @see ImageSelectorType */ public String getImageSelectorType() { return this.imageSelectorType; } /** *

* The origin of the Server or Producer timestamps to use to generate the images. *

* * @param imageSelectorType * The origin of the Server or Producer timestamps to use to generate the images. * @return Returns a reference to this object so that method calls can be chained together. * @see ImageSelectorType */ public GetImagesRequest withImageSelectorType(String imageSelectorType) { setImageSelectorType(imageSelectorType); return this; } /** *

* The origin of the Server or Producer timestamps to use to generate the images. *

* * @param imageSelectorType * The origin of the Server or Producer timestamps to use to generate the images. * @return Returns a reference to this object so that method calls can be chained together. * @see ImageSelectorType */ public GetImagesRequest withImageSelectorType(ImageSelectorType imageSelectorType) { this.imageSelectorType = imageSelectorType.toString(); return this; } /** *

* The starting point from which the images should be generated. This StartTimestamp must be within an * inclusive range of timestamps for an image to be returned. *

* * @param startTimestamp * The starting point from which the images should be generated. This StartTimestamp must be * within an inclusive range of timestamps for an image to be returned. */ public void setStartTimestamp(java.util.Date startTimestamp) { this.startTimestamp = startTimestamp; } /** *

* The starting point from which the images should be generated. This StartTimestamp must be within an * inclusive range of timestamps for an image to be returned. *

* * @return The starting point from which the images should be generated. This StartTimestamp must be * within an inclusive range of timestamps for an image to be returned. */ public java.util.Date getStartTimestamp() { return this.startTimestamp; } /** *

* The starting point from which the images should be generated. This StartTimestamp must be within an * inclusive range of timestamps for an image to be returned. *

* * @param startTimestamp * The starting point from which the images should be generated. This StartTimestamp must be * within an inclusive range of timestamps for an image to be returned. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest withStartTimestamp(java.util.Date startTimestamp) { setStartTimestamp(startTimestamp); return this; } /** *

* The end timestamp for the range of images to be generated. *

* * @param endTimestamp * The end timestamp for the range of images to be generated. */ public void setEndTimestamp(java.util.Date endTimestamp) { this.endTimestamp = endTimestamp; } /** *

* The end timestamp for the range of images to be generated. *

* * @return The end timestamp for the range of images to be generated. */ public java.util.Date getEndTimestamp() { return this.endTimestamp; } /** *

* The end timestamp for the range of images to be generated. *

* * @param endTimestamp * The end timestamp for the range of images to be generated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest withEndTimestamp(java.util.Date endTimestamp) { setEndTimestamp(endTimestamp); return this; } /** *

* The time interval in milliseconds (ms) at which the images need to be generated from the stream. The minimum * value that can be provided is 3000 ms. If the timestamp range is less than the sampling interval, the Image from * the startTimestamp will be returned if available. *

* *

* The minimum value of 3000 ms is a soft limit. If needed, a lower sampling frequency can be requested. *

*
* * @param samplingInterval * The time interval in milliseconds (ms) at which the images need to be generated from the stream. The * minimum value that can be provided is 3000 ms. If the timestamp range is less than the sampling interval, * the Image from the startTimestamp will be returned if available.

*

* The minimum value of 3000 ms is a soft limit. If needed, a lower sampling frequency can be requested. *

*/ public void setSamplingInterval(Integer samplingInterval) { this.samplingInterval = samplingInterval; } /** *

* The time interval in milliseconds (ms) at which the images need to be generated from the stream. The minimum * value that can be provided is 3000 ms. If the timestamp range is less than the sampling interval, the Image from * the startTimestamp will be returned if available. *

* *

* The minimum value of 3000 ms is a soft limit. If needed, a lower sampling frequency can be requested. *

*
* * @return The time interval in milliseconds (ms) at which the images need to be generated from the stream. The * minimum value that can be provided is 3000 ms. If the timestamp range is less than the sampling interval, * the Image from the startTimestamp will be returned if available.

*

* The minimum value of 3000 ms is a soft limit. If needed, a lower sampling frequency can be requested. *

*/ public Integer getSamplingInterval() { return this.samplingInterval; } /** *

* The time interval in milliseconds (ms) at which the images need to be generated from the stream. The minimum * value that can be provided is 3000 ms. If the timestamp range is less than the sampling interval, the Image from * the startTimestamp will be returned if available. *

* *

* The minimum value of 3000 ms is a soft limit. If needed, a lower sampling frequency can be requested. *

*
* * @param samplingInterval * The time interval in milliseconds (ms) at which the images need to be generated from the stream. The * minimum value that can be provided is 3000 ms. If the timestamp range is less than the sampling interval, * the Image from the startTimestamp will be returned if available.

*

* The minimum value of 3000 ms is a soft limit. If needed, a lower sampling frequency can be requested. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest withSamplingInterval(Integer samplingInterval) { setSamplingInterval(samplingInterval); return this; } /** *

* The format that will be used to encode the image. *

* * @param format * The format that will be used to encode the image. * @see Format */ public void setFormat(String format) { this.format = format; } /** *

* The format that will be used to encode the image. *

* * @return The format that will be used to encode the image. * @see Format */ public String getFormat() { return this.format; } /** *

* The format that will be used to encode the image. *

* * @param format * The format that will be used to encode the image. * @return Returns a reference to this object so that method calls can be chained together. * @see Format */ public GetImagesRequest withFormat(String format) { setFormat(format); return this; } /** *

* The format that will be used to encode the image. *

* * @param format * The format that will be used to encode the image. * @return Returns a reference to this object so that method calls can be chained together. * @see Format */ public GetImagesRequest withFormat(Format format) { this.format = format.toString(); return this; } /** *

* The list of a key-value pair structure that contains extra parameters that can be applied when the image is * generated. The FormatConfig key is the JPEGQuality, which indicates the JPEG quality * key to be used to generate the image. The FormatConfig value accepts ints from 1 to 100. If the * value is 1, the image will be generated with less quality and the best compression. If the value is 100, the * image will be generated with the best quality and less compression. If no value is provided, the default value of * the JPEGQuality key will be set to 80. *

* * @return The list of a key-value pair structure that contains extra parameters that can be applied when the image * is generated. The FormatConfig key is the JPEGQuality, which indicates the JPEG * quality key to be used to generate the image. The FormatConfig value accepts ints from 1 to * 100. If the value is 1, the image will be generated with less quality and the best compression. If the * value is 100, the image will be generated with the best quality and less compression. If no value is * provided, the default value of the JPEGQuality key will be set to 80. */ public java.util.Map getFormatConfig() { return formatConfig; } /** *

* The list of a key-value pair structure that contains extra parameters that can be applied when the image is * generated. The FormatConfig key is the JPEGQuality, which indicates the JPEG quality * key to be used to generate the image. The FormatConfig value accepts ints from 1 to 100. If the * value is 1, the image will be generated with less quality and the best compression. If the value is 100, the * image will be generated with the best quality and less compression. If no value is provided, the default value of * the JPEGQuality key will be set to 80. *

* * @param formatConfig * The list of a key-value pair structure that contains extra parameters that can be applied when the image * is generated. The FormatConfig key is the JPEGQuality, which indicates the JPEG * quality key to be used to generate the image. The FormatConfig value accepts ints from 1 to * 100. If the value is 1, the image will be generated with less quality and the best compression. If the * value is 100, the image will be generated with the best quality and less compression. If no value is * provided, the default value of the JPEGQuality key will be set to 80. */ public void setFormatConfig(java.util.Map formatConfig) { this.formatConfig = formatConfig; } /** *

* The list of a key-value pair structure that contains extra parameters that can be applied when the image is * generated. The FormatConfig key is the JPEGQuality, which indicates the JPEG quality * key to be used to generate the image. The FormatConfig value accepts ints from 1 to 100. If the * value is 1, the image will be generated with less quality and the best compression. If the value is 100, the * image will be generated with the best quality and less compression. If no value is provided, the default value of * the JPEGQuality key will be set to 80. *

* * @param formatConfig * The list of a key-value pair structure that contains extra parameters that can be applied when the image * is generated. The FormatConfig key is the JPEGQuality, which indicates the JPEG * quality key to be used to generate the image. The FormatConfig value accepts ints from 1 to * 100. If the value is 1, the image will be generated with less quality and the best compression. If the * value is 100, the image will be generated with the best quality and less compression. If no value is * provided, the default value of the JPEGQuality key will be set to 80. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest withFormatConfig(java.util.Map formatConfig) { setFormatConfig(formatConfig); return this; } /** * Add a single FormatConfig entry * * @see GetImagesRequest#withFormatConfig * @returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest addFormatConfigEntry(String key, String value) { if (null == this.formatConfig) { this.formatConfig = new java.util.HashMap(); } if (this.formatConfig.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.formatConfig.put(key, value); return this; } /** * Removes all the entries added into FormatConfig. * * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest clearFormatConfigEntries() { this.formatConfig = null; return this; } /** *

* The width of the output image that is used in conjunction with the HeightPixels parameter. When both * WidthPixels and HeightPixels parameters are provided, the image will be stretched to * fit the specified aspect ratio. If only the WidthPixels parameter is provided or if only the * HeightPixels is provided, a ValidationException will be thrown. If neither parameter is * provided, the original image size from the stream will be returned. *

* * @param widthPixels * The width of the output image that is used in conjunction with the HeightPixels parameter. * When both WidthPixels and HeightPixels parameters are provided, the image will * be stretched to fit the specified aspect ratio. If only the WidthPixels parameter is provided * or if only the HeightPixels is provided, a ValidationException will be thrown. * If neither parameter is provided, the original image size from the stream will be returned. */ public void setWidthPixels(Integer widthPixels) { this.widthPixels = widthPixels; } /** *

* The width of the output image that is used in conjunction with the HeightPixels parameter. When both * WidthPixels and HeightPixels parameters are provided, the image will be stretched to * fit the specified aspect ratio. If only the WidthPixels parameter is provided or if only the * HeightPixels is provided, a ValidationException will be thrown. If neither parameter is * provided, the original image size from the stream will be returned. *

* * @return The width of the output image that is used in conjunction with the HeightPixels parameter. * When both WidthPixels and HeightPixels parameters are provided, the image will * be stretched to fit the specified aspect ratio. If only the WidthPixels parameter is * provided or if only the HeightPixels is provided, a ValidationException will be * thrown. If neither parameter is provided, the original image size from the stream will be returned. */ public Integer getWidthPixels() { return this.widthPixels; } /** *

* The width of the output image that is used in conjunction with the HeightPixels parameter. When both * WidthPixels and HeightPixels parameters are provided, the image will be stretched to * fit the specified aspect ratio. If only the WidthPixels parameter is provided or if only the * HeightPixels is provided, a ValidationException will be thrown. If neither parameter is * provided, the original image size from the stream will be returned. *

* * @param widthPixels * The width of the output image that is used in conjunction with the HeightPixels parameter. * When both WidthPixels and HeightPixels parameters are provided, the image will * be stretched to fit the specified aspect ratio. If only the WidthPixels parameter is provided * or if only the HeightPixels is provided, a ValidationException will be thrown. * If neither parameter is provided, the original image size from the stream will be returned. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest withWidthPixels(Integer widthPixels) { setWidthPixels(widthPixels); return this; } /** *

* The height of the output image that is used in conjunction with the WidthPixels parameter. When both * HeightPixels and WidthPixels parameters are provided, the image will be stretched to * fit the specified aspect ratio. If only the HeightPixels parameter is provided, its original aspect * ratio will be used to calculate the WidthPixels ratio. If neither parameter is provided, the * original image size will be returned. *

* * @param heightPixels * The height of the output image that is used in conjunction with the WidthPixels parameter. * When both HeightPixels and WidthPixels parameters are provided, the image will * be stretched to fit the specified aspect ratio. If only the HeightPixels parameter is * provided, its original aspect ratio will be used to calculate the WidthPixels ratio. If * neither parameter is provided, the original image size will be returned. */ public void setHeightPixels(Integer heightPixels) { this.heightPixels = heightPixels; } /** *

* The height of the output image that is used in conjunction with the WidthPixels parameter. When both * HeightPixels and WidthPixels parameters are provided, the image will be stretched to * fit the specified aspect ratio. If only the HeightPixels parameter is provided, its original aspect * ratio will be used to calculate the WidthPixels ratio. If neither parameter is provided, the * original image size will be returned. *

* * @return The height of the output image that is used in conjunction with the WidthPixels parameter. * When both HeightPixels and WidthPixels parameters are provided, the image will * be stretched to fit the specified aspect ratio. If only the HeightPixels parameter is * provided, its original aspect ratio will be used to calculate the WidthPixels ratio. If * neither parameter is provided, the original image size will be returned. */ public Integer getHeightPixels() { return this.heightPixels; } /** *

* The height of the output image that is used in conjunction with the WidthPixels parameter. When both * HeightPixels and WidthPixels parameters are provided, the image will be stretched to * fit the specified aspect ratio. If only the HeightPixels parameter is provided, its original aspect * ratio will be used to calculate the WidthPixels ratio. If neither parameter is provided, the * original image size will be returned. *

* * @param heightPixels * The height of the output image that is used in conjunction with the WidthPixels parameter. * When both HeightPixels and WidthPixels parameters are provided, the image will * be stretched to fit the specified aspect ratio. If only the HeightPixels parameter is * provided, its original aspect ratio will be used to calculate the WidthPixels ratio. If * neither parameter is provided, the original image size will be returned. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest withHeightPixels(Integer heightPixels) { setHeightPixels(heightPixels); return this; } /** *

* The maximum number of images to be returned by the API. *

* *

* The default limit is 100 images per API response. The additional results will be paginated. *

*
* * @param maxResults * The maximum number of images to be returned by the API.

*

* The default limit is 100 images per API response. The additional results will be paginated. *

*/ public void setMaxResults(Long maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of images to be returned by the API. *

* *

* The default limit is 100 images per API response. The additional results will be paginated. *

*
* * @return The maximum number of images to be returned by the API.

*

* The default limit is 100 images per API response. The additional results will be paginated. *

*/ public Long getMaxResults() { return this.maxResults; } /** *

* The maximum number of images to be returned by the API. *

* *

* The default limit is 100 images per API response. The additional results will be paginated. *

*
* * @param maxResults * The maximum number of images to be returned by the API.

*

* The default limit is 100 images per API response. The additional results will be paginated. *

* @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest withMaxResults(Long maxResults) { setMaxResults(maxResults); return this; } /** *

* A token that specifies where to start paginating the next set of Images. This is the * GetImages:NextToken from a previously truncated response. *

* * @param nextToken * A token that specifies where to start paginating the next set of Images. This is the * GetImages:NextToken from a previously truncated response. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* A token that specifies where to start paginating the next set of Images. This is the * GetImages:NextToken from a previously truncated response. *

* * @return A token that specifies where to start paginating the next set of Images. This is the * GetImages:NextToken from a previously truncated response. */ public String getNextToken() { return this.nextToken; } /** *

* A token that specifies where to start paginating the next set of Images. This is the * GetImages:NextToken from a previously truncated response. *

* * @param nextToken * A token that specifies where to start paginating the next set of Images. This is the * GetImages:NextToken from a previously truncated response. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImagesRequest 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 (getStreamName() != null) sb.append("StreamName: ").append(getStreamName()).append(","); if (getStreamARN() != null) sb.append("StreamARN: ").append(getStreamARN()).append(","); if (getImageSelectorType() != null) sb.append("ImageSelectorType: ").append(getImageSelectorType()).append(","); if (getStartTimestamp() != null) sb.append("StartTimestamp: ").append(getStartTimestamp()).append(","); if (getEndTimestamp() != null) sb.append("EndTimestamp: ").append(getEndTimestamp()).append(","); if (getSamplingInterval() != null) sb.append("SamplingInterval: ").append(getSamplingInterval()).append(","); if (getFormat() != null) sb.append("Format: ").append(getFormat()).append(","); if (getFormatConfig() != null) sb.append("FormatConfig: ").append(getFormatConfig()).append(","); if (getWidthPixels() != null) sb.append("WidthPixels: ").append(getWidthPixels()).append(","); if (getHeightPixels() != null) sb.append("HeightPixels: ").append(getHeightPixels()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).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 GetImagesRequest == false) return false; GetImagesRequest other = (GetImagesRequest) obj; if (other.getStreamName() == null ^ this.getStreamName() == null) return false; if (other.getStreamName() != null && other.getStreamName().equals(this.getStreamName()) == false) return false; if (other.getStreamARN() == null ^ this.getStreamARN() == null) return false; if (other.getStreamARN() != null && other.getStreamARN().equals(this.getStreamARN()) == false) return false; if (other.getImageSelectorType() == null ^ this.getImageSelectorType() == null) return false; if (other.getImageSelectorType() != null && other.getImageSelectorType().equals(this.getImageSelectorType()) == false) return false; if (other.getStartTimestamp() == null ^ this.getStartTimestamp() == null) return false; if (other.getStartTimestamp() != null && other.getStartTimestamp().equals(this.getStartTimestamp()) == false) return false; if (other.getEndTimestamp() == null ^ this.getEndTimestamp() == null) return false; if (other.getEndTimestamp() != null && other.getEndTimestamp().equals(this.getEndTimestamp()) == false) return false; if (other.getSamplingInterval() == null ^ this.getSamplingInterval() == null) return false; if (other.getSamplingInterval() != null && other.getSamplingInterval().equals(this.getSamplingInterval()) == false) return false; if (other.getFormat() == null ^ this.getFormat() == null) return false; if (other.getFormat() != null && other.getFormat().equals(this.getFormat()) == false) return false; if (other.getFormatConfig() == null ^ this.getFormatConfig() == null) return false; if (other.getFormatConfig() != null && other.getFormatConfig().equals(this.getFormatConfig()) == false) return false; if (other.getWidthPixels() == null ^ this.getWidthPixels() == null) return false; if (other.getWidthPixels() != null && other.getWidthPixels().equals(this.getWidthPixels()) == false) return false; if (other.getHeightPixels() == null ^ this.getHeightPixels() == null) return false; if (other.getHeightPixels() != null && other.getHeightPixels().equals(this.getHeightPixels()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == 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 + ((getStreamName() == null) ? 0 : getStreamName().hashCode()); hashCode = prime * hashCode + ((getStreamARN() == null) ? 0 : getStreamARN().hashCode()); hashCode = prime * hashCode + ((getImageSelectorType() == null) ? 0 : getImageSelectorType().hashCode()); hashCode = prime * hashCode + ((getStartTimestamp() == null) ? 0 : getStartTimestamp().hashCode()); hashCode = prime * hashCode + ((getEndTimestamp() == null) ? 0 : getEndTimestamp().hashCode()); hashCode = prime * hashCode + ((getSamplingInterval() == null) ? 0 : getSamplingInterval().hashCode()); hashCode = prime * hashCode + ((getFormat() == null) ? 0 : getFormat().hashCode()); hashCode = prime * hashCode + ((getFormatConfig() == null) ? 0 : getFormatConfig().hashCode()); hashCode = prime * hashCode + ((getWidthPixels() == null) ? 0 : getWidthPixels().hashCode()); hashCode = prime * hashCode + ((getHeightPixels() == null) ? 0 : getHeightPixels().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public GetImagesRequest clone() { return (GetImagesRequest) super.clone(); } }