/* * 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.rekognition.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class IndexFacesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of an existing collection to which you want to add the faces that are detected in the input images. *
*/ private String collectionId; /** ** The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition * operations, passing base64-encoded image bytes isn't supported. *
*
* If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed
* using the Bytes
field. For more information, see Images in the Amazon Rekognition developer guide.
*
* The ID you want to assign to all the faces detected in the image. *
*/ private String externalImageId; /** *
* An array of facial attributes you want to be returned. A DEFAULT
subset of facial attributes -
* BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in addition to
* the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just ["FACE_OCCLUDED"]
.
* You can request for all facial attributes by using ["ALL"]
. Requesting more attributes may increase
* response time.
*
* If you provide both, ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine which
* attributes to return (in this case, all attributes).
*
* The maximum number of faces to index. The value of MaxFaces
must be greater than or equal to 1.
* IndexFaces
returns no more than 100 detected faces in an image, even if you specify a larger value
* for MaxFaces
.
*
* If IndexFaces
detects more faces than the value of MaxFaces
, the faces with the lowest
* quality are filtered out first. If there are still more faces than the value of MaxFaces
, the faces
* with the smallest bounding boxes are filtered out (up to the number that's needed to satisfy the value of
* MaxFaces
). Information about the unindexed faces is available in the UnindexedFaces
* array.
*
* The faces that are returned by IndexFaces
are sorted by the largest face bounding box size to the
* smallest size, in descending order.
*
* MaxFaces
can be used with a collection associated with any version of the face model.
*
* A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't
* indexed. If you specify AUTO
, Amazon Rekognition chooses the quality bar. If you specify
* LOW
, MEDIUM
, or HIGH
, filtering removes all faces that don’t meet the
* chosen quality bar. The default value is AUTO
. The quality bar is based on a variety of common use
* cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified
* as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specify
* NONE
, no filtering is performed.
*
* To use quality filtering, the collection you are using must be associated with version 3 of the face model or * higher. *
*/ private String qualityFilter; /** ** The ID of an existing collection to which you want to add the faces that are detected in the input images. *
* * @param collectionId * The ID of an existing collection to which you want to add the faces that are detected in the input images. */ public void setCollectionId(String collectionId) { this.collectionId = collectionId; } /** ** The ID of an existing collection to which you want to add the faces that are detected in the input images. *
* * @return The ID of an existing collection to which you want to add the faces that are detected in the input * images. */ public String getCollectionId() { return this.collectionId; } /** ** The ID of an existing collection to which you want to add the faces that are detected in the input images. *
* * @param collectionId * The ID of an existing collection to which you want to add the faces that are detected in the input images. * @return Returns a reference to this object so that method calls can be chained together. */ public IndexFacesRequest withCollectionId(String collectionId) { setCollectionId(collectionId); return this; } /** ** The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition * operations, passing base64-encoded image bytes isn't supported. *
*
* If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed
* using the Bytes
field. For more information, see Images in the Amazon Rekognition developer guide.
*
* If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes
* passed using the Bytes
field. For more information, see Images in the Amazon Rekognition
* developer guide.
*/
public void setImage(Image image) {
this.image = image;
}
/**
*
* The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition * operations, passing base64-encoded image bytes isn't supported. *
*
* If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed
* using the Bytes
field. For more information, see Images in the Amazon Rekognition developer guide.
*
* If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes
* passed using the Bytes
field. For more information, see Images in the Amazon Rekognition
* developer guide.
*/
public Image getImage() {
return this.image;
}
/**
*
* The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition * operations, passing base64-encoded image bytes isn't supported. *
*
* If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed
* using the Bytes
field. For more information, see Images in the Amazon Rekognition developer guide.
*
* If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes
* passed using the Bytes
field. For more information, see Images in the Amazon Rekognition
* developer guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IndexFacesRequest withImage(Image image) {
setImage(image);
return this;
}
/**
*
* The ID you want to assign to all the faces detected in the image. *
* * @param externalImageId * The ID you want to assign to all the faces detected in the image. */ public void setExternalImageId(String externalImageId) { this.externalImageId = externalImageId; } /** ** The ID you want to assign to all the faces detected in the image. *
* * @return The ID you want to assign to all the faces detected in the image. */ public String getExternalImageId() { return this.externalImageId; } /** ** The ID you want to assign to all the faces detected in the image. *
* * @param externalImageId * The ID you want to assign to all the faces detected in the image. * @return Returns a reference to this object so that method calls can be chained together. */ public IndexFacesRequest withExternalImageId(String externalImageId) { setExternalImageId(externalImageId); return this; } /** *
* An array of facial attributes you want to be returned. A DEFAULT
subset of facial attributes -
* BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in addition to
* the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just ["FACE_OCCLUDED"]
.
* You can request for all facial attributes by using ["ALL"]
. Requesting more attributes may increase
* response time.
*
* If you provide both, ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine which
* attributes to return (in this case, all attributes).
*
DEFAULT
subset of facial attributes
* - BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in
* addition to the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just
* ["FACE_OCCLUDED"]
. You can request for all facial attributes by using ["ALL"]
.
* Requesting more attributes may increase response time.
*
* If you provide both,
* An array of facial attributes you want to be returned. A
* If you provide both, ["ALL", "DEFAULT"]
, the service uses a logical AND operator to
* determine which attributes to return (in this case, all attributes).
* @see Attribute
*/
public java.util.ListDEFAULT
subset of facial attributes -
* BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in addition to
* the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just ["FACE_OCCLUDED"]
.
* You can request for all facial attributes by using ["ALL"]
. Requesting more attributes may increase
* response time.
* ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine which
* attributes to return (in this case, all attributes).
* DEFAULT
subset of facial attributes
* - BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in
* addition to the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just
* ["FACE_OCCLUDED"]
. You can request for all facial attributes by using ["ALL"]
.
* Requesting more attributes may increase response time.
* If you provide both,
* An array of facial attributes you want to be returned. A
* If you provide both,
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDetectionAttributes(java.util.Collection)} or {@link #withDetectionAttributes(java.util.Collection)}
* if you want to override the existing values.
* ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine
* which attributes to return (in this case, all attributes).
* @see Attribute
*/
public void setDetectionAttributes(java.util.CollectionDEFAULT
subset of facial attributes -
* BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in addition to
* the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just ["FACE_OCCLUDED"]
.
* You can request for all facial attributes by using ["ALL"]
. Requesting more attributes may increase
* response time.
* ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine which
* attributes to return (in this case, all attributes).
* DEFAULT
subset of facial attributes
* - BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in
* addition to the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just
* ["FACE_OCCLUDED"]
. You can request for all facial attributes by using ["ALL"]
.
* Requesting more attributes may increase response time.
* If you provide both,
* An array of facial attributes you want to be returned. A
* If you provide both, ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine
* which attributes to return (in this case, all attributes).
* @return Returns a reference to this object so that method calls can be chained together.
* @see Attribute
*/
public IndexFacesRequest withDetectionAttributes(String... detectionAttributes) {
if (this.detectionAttributes == null) {
setDetectionAttributes(new java.util.ArrayListDEFAULT
subset of facial attributes -
* BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in addition to
* the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just ["FACE_OCCLUDED"]
.
* You can request for all facial attributes by using ["ALL"]
. Requesting more attributes may increase
* response time.
* ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine which
* attributes to return (in this case, all attributes).
* DEFAULT
subset of facial attributes
* - BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in
* addition to the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just
* ["FACE_OCCLUDED"]
. You can request for all facial attributes by using ["ALL"]
.
* Requesting more attributes may increase response time.
* If you provide both,
* An array of facial attributes you want to be returned. A
* If you provide both, ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine
* which attributes to return (in this case, all attributes).
* @return Returns a reference to this object so that method calls can be chained together.
* @see Attribute
*/
public IndexFacesRequest withDetectionAttributes(java.util.CollectionDEFAULT
subset of facial attributes -
* BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in addition to
* the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just ["FACE_OCCLUDED"]
.
* You can request for all facial attributes by using ["ALL"]
. Requesting more attributes may increase
* response time.
* ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine which
* attributes to return (in this case, all attributes).
* DEFAULT
subset of facial attributes
* - BoundingBox
, Confidence
, Pose
, Quality
, and
* Landmarks
- will always be returned. You can request for specific facial attributes (in
* addition to the default list) - by using ["DEFAULT", "FACE_OCCLUDED"]
or just
* ["FACE_OCCLUDED"]
. You can request for all facial attributes by using ["ALL"]
.
* Requesting more attributes may increase response time.
* If you provide both,
* The maximum number of faces to index. The value of
* If
* The faces that are returned by
* ["ALL", "DEFAULT"]
, the service uses a logical AND operator to determine
* which attributes to return (in this case, all attributes).
* @return Returns a reference to this object so that method calls can be chained together.
* @see Attribute
*/
public IndexFacesRequest withDetectionAttributes(Attribute... detectionAttributes) {
java.util.ArrayListMaxFaces
must be greater than or equal to 1.
* IndexFaces
returns no more than 100 detected faces in an image, even if you specify a larger value
* for MaxFaces
.
* IndexFaces
detects more faces than the value of MaxFaces
, the faces with the lowest
* quality are filtered out first. If there are still more faces than the value of MaxFaces
, the faces
* with the smallest bounding boxes are filtered out (up to the number that's needed to satisfy the value of
* MaxFaces
). Information about the unindexed faces is available in the UnindexedFaces
* array.
* IndexFaces
are sorted by the largest face bounding box size to the
* smallest size, in descending order.
* MaxFaces
can be used with a collection associated with any version of the face model.
* MaxFaces
must be greater than or equal to
* 1. IndexFaces
returns no more than 100 detected faces in an image, even if you specify a
* larger value for MaxFaces
.
* If IndexFaces
detects more faces than the value of MaxFaces
, the faces with the
* lowest quality are filtered out first. If there are still more faces than the value of
* MaxFaces
, the faces with the smallest bounding boxes are filtered out (up to the number
* that's needed to satisfy the value of MaxFaces
). Information about the unindexed faces is
* available in the UnindexedFaces
array.
*
* The faces that are returned by IndexFaces
are sorted by the largest face bounding box size to
* the smallest size, in descending order.
*
* MaxFaces
can be used with a collection associated with any version of the face model.
*/
public void setMaxFaces(Integer maxFaces) {
this.maxFaces = maxFaces;
}
/**
*
* The maximum number of faces to index. The value of MaxFaces
must be greater than or equal to 1.
* IndexFaces
returns no more than 100 detected faces in an image, even if you specify a larger value
* for MaxFaces
.
*
* If IndexFaces
detects more faces than the value of MaxFaces
, the faces with the lowest
* quality are filtered out first. If there are still more faces than the value of MaxFaces
, the faces
* with the smallest bounding boxes are filtered out (up to the number that's needed to satisfy the value of
* MaxFaces
). Information about the unindexed faces is available in the UnindexedFaces
* array.
*
* The faces that are returned by IndexFaces
are sorted by the largest face bounding box size to the
* smallest size, in descending order.
*
* MaxFaces
can be used with a collection associated with any version of the face model.
*
MaxFaces
must be greater than or equal to
* 1. IndexFaces
returns no more than 100 detected faces in an image, even if you specify a
* larger value for MaxFaces
.
*
* If IndexFaces
detects more faces than the value of MaxFaces
, the faces with the
* lowest quality are filtered out first. If there are still more faces than the value of
* MaxFaces
, the faces with the smallest bounding boxes are filtered out (up to the number
* that's needed to satisfy the value of MaxFaces
). Information about the unindexed faces is
* available in the UnindexedFaces
array.
*
* The faces that are returned by IndexFaces
are sorted by the largest face bounding box size
* to the smallest size, in descending order.
*
* MaxFaces
can be used with a collection associated with any version of the face model.
*/
public Integer getMaxFaces() {
return this.maxFaces;
}
/**
*
* The maximum number of faces to index. The value of MaxFaces
must be greater than or equal to 1.
* IndexFaces
returns no more than 100 detected faces in an image, even if you specify a larger value
* for MaxFaces
.
*
* If IndexFaces
detects more faces than the value of MaxFaces
, the faces with the lowest
* quality are filtered out first. If there are still more faces than the value of MaxFaces
, the faces
* with the smallest bounding boxes are filtered out (up to the number that's needed to satisfy the value of
* MaxFaces
). Information about the unindexed faces is available in the UnindexedFaces
* array.
*
* The faces that are returned by IndexFaces
are sorted by the largest face bounding box size to the
* smallest size, in descending order.
*
* MaxFaces
can be used with a collection associated with any version of the face model.
*
MaxFaces
must be greater than or equal to
* 1. IndexFaces
returns no more than 100 detected faces in an image, even if you specify a
* larger value for MaxFaces
.
*
* If IndexFaces
detects more faces than the value of MaxFaces
, the faces with the
* lowest quality are filtered out first. If there are still more faces than the value of
* MaxFaces
, the faces with the smallest bounding boxes are filtered out (up to the number
* that's needed to satisfy the value of MaxFaces
). Information about the unindexed faces is
* available in the UnindexedFaces
array.
*
* The faces that are returned by IndexFaces
are sorted by the largest face bounding box size to
* the smallest size, in descending order.
*
* MaxFaces
can be used with a collection associated with any version of the face model.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IndexFacesRequest withMaxFaces(Integer maxFaces) {
setMaxFaces(maxFaces);
return this;
}
/**
*
* A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't
* indexed. If you specify AUTO
, Amazon Rekognition chooses the quality bar. If you specify
* LOW
, MEDIUM
, or HIGH
, filtering removes all faces that don’t meet the
* chosen quality bar. The default value is AUTO
. The quality bar is based on a variety of common use
* cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified
* as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specify
* NONE
, no filtering is performed.
*
* To use quality filtering, the collection you are using must be associated with version 3 of the face model or * higher. *
* * @param qualityFilter * A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces * aren't indexed. If you specifyAUTO
, Amazon Rekognition chooses the quality bar. If you
* specify LOW
, MEDIUM
, or HIGH
, filtering removes all faces that
* don’t meet the chosen quality bar. The default value is AUTO
. The quality bar is based on a
* variety of common use cases. Low-quality detections can occur for a number of reasons. Some examples are
* an object that's misidentified as a face, a face that's too blurry, or a face with a pose that's too
* extreme to use. If you specify NONE
, no filtering is performed.
* * To use quality filtering, the collection you are using must be associated with version 3 of the face model * or higher. * @see QualityFilter */ public void setQualityFilter(String qualityFilter) { this.qualityFilter = qualityFilter; } /** *
* A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't
* indexed. If you specify AUTO
, Amazon Rekognition chooses the quality bar. If you specify
* LOW
, MEDIUM
, or HIGH
, filtering removes all faces that don’t meet the
* chosen quality bar. The default value is AUTO
. The quality bar is based on a variety of common use
* cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified
* as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specify
* NONE
, no filtering is performed.
*
* To use quality filtering, the collection you are using must be associated with version 3 of the face model or * higher. *
* * @return A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces * aren't indexed. If you specifyAUTO
, Amazon Rekognition chooses the quality bar. If you
* specify LOW
, MEDIUM
, or HIGH
, filtering removes all faces that
* don’t meet the chosen quality bar. The default value is AUTO
. The quality bar is based on a
* variety of common use cases. Low-quality detections can occur for a number of reasons. Some examples are
* an object that's misidentified as a face, a face that's too blurry, or a face with a pose that's too
* extreme to use. If you specify NONE
, no filtering is performed.
* * To use quality filtering, the collection you are using must be associated with version 3 of the face * model or higher. * @see QualityFilter */ public String getQualityFilter() { return this.qualityFilter; } /** *
* A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't
* indexed. If you specify AUTO
, Amazon Rekognition chooses the quality bar. If you specify
* LOW
, MEDIUM
, or HIGH
, filtering removes all faces that don’t meet the
* chosen quality bar. The default value is AUTO
. The quality bar is based on a variety of common use
* cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified
* as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specify
* NONE
, no filtering is performed.
*
* To use quality filtering, the collection you are using must be associated with version 3 of the face model or * higher. *
* * @param qualityFilter * A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces * aren't indexed. If you specifyAUTO
, Amazon Rekognition chooses the quality bar. If you
* specify LOW
, MEDIUM
, or HIGH
, filtering removes all faces that
* don’t meet the chosen quality bar. The default value is AUTO
. The quality bar is based on a
* variety of common use cases. Low-quality detections can occur for a number of reasons. Some examples are
* an object that's misidentified as a face, a face that's too blurry, or a face with a pose that's too
* extreme to use. If you specify NONE
, no filtering is performed.
* * To use quality filtering, the collection you are using must be associated with version 3 of the face model * or higher. * @return Returns a reference to this object so that method calls can be chained together. * @see QualityFilter */ public IndexFacesRequest withQualityFilter(String qualityFilter) { setQualityFilter(qualityFilter); return this; } /** *
* A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't
* indexed. If you specify AUTO
, Amazon Rekognition chooses the quality bar. If you specify
* LOW
, MEDIUM
, or HIGH
, filtering removes all faces that don’t meet the
* chosen quality bar. The default value is AUTO
. The quality bar is based on a variety of common use
* cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified
* as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specify
* NONE
, no filtering is performed.
*
* To use quality filtering, the collection you are using must be associated with version 3 of the face model or * higher. *
* * @param qualityFilter * A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces * aren't indexed. If you specifyAUTO
, Amazon Rekognition chooses the quality bar. If you
* specify LOW
, MEDIUM
, or HIGH
, filtering removes all faces that
* don’t meet the chosen quality bar. The default value is AUTO
. The quality bar is based on a
* variety of common use cases. Low-quality detections can occur for a number of reasons. Some examples are
* an object that's misidentified as a face, a face that's too blurry, or a face with a pose that's too
* extreme to use. If you specify NONE
, no filtering is performed.
* * To use quality filtering, the collection you are using must be associated with version 3 of the face model * or higher. * @return Returns a reference to this object so that method calls can be chained together. * @see QualityFilter */ public IndexFacesRequest withQualityFilter(QualityFilter qualityFilter) { this.qualityFilter = qualityFilter.toString(); 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 (getCollectionId() != null) sb.append("CollectionId: ").append(getCollectionId()).append(","); if (getImage() != null) sb.append("Image: ").append(getImage()).append(","); if (getExternalImageId() != null) sb.append("ExternalImageId: ").append(getExternalImageId()).append(","); if (getDetectionAttributes() != null) sb.append("DetectionAttributes: ").append(getDetectionAttributes()).append(","); if (getMaxFaces() != null) sb.append("MaxFaces: ").append(getMaxFaces()).append(","); if (getQualityFilter() != null) sb.append("QualityFilter: ").append(getQualityFilter()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IndexFacesRequest == false) return false; IndexFacesRequest other = (IndexFacesRequest) obj; if (other.getCollectionId() == null ^ this.getCollectionId() == null) return false; if (other.getCollectionId() != null && other.getCollectionId().equals(this.getCollectionId()) == false) return false; if (other.getImage() == null ^ this.getImage() == null) return false; if (other.getImage() != null && other.getImage().equals(this.getImage()) == false) return false; if (other.getExternalImageId() == null ^ this.getExternalImageId() == null) return false; if (other.getExternalImageId() != null && other.getExternalImageId().equals(this.getExternalImageId()) == false) return false; if (other.getDetectionAttributes() == null ^ this.getDetectionAttributes() == null) return false; if (other.getDetectionAttributes() != null && other.getDetectionAttributes().equals(this.getDetectionAttributes()) == false) return false; if (other.getMaxFaces() == null ^ this.getMaxFaces() == null) return false; if (other.getMaxFaces() != null && other.getMaxFaces().equals(this.getMaxFaces()) == false) return false; if (other.getQualityFilter() == null ^ this.getQualityFilter() == null) return false; if (other.getQualityFilter() != null && other.getQualityFilter().equals(this.getQualityFilter()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCollectionId() == null) ? 0 : getCollectionId().hashCode()); hashCode = prime * hashCode + ((getImage() == null) ? 0 : getImage().hashCode()); hashCode = prime * hashCode + ((getExternalImageId() == null) ? 0 : getExternalImageId().hashCode()); hashCode = prime * hashCode + ((getDetectionAttributes() == null) ? 0 : getDetectionAttributes().hashCode()); hashCode = prime * hashCode + ((getMaxFaces() == null) ? 0 : getMaxFaces().hashCode()); hashCode = prime * hashCode + ((getQualityFilter() == null) ? 0 : getQualityFilter().hashCode()); return hashCode; } @Override public IndexFacesRequest clone() { return (IndexFacesRequest) super.clone(); } }