/* * Copyright 2010-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; public class DescribeCollectionResult implements Serializable { /** *

* The number of faces that are indexed into the collection. To index faces * into a collection, use IndexFaces. *

*

* Constraints:
* Range: 0 -
*/ private Long faceCount; /** *

* The version of the face model that's used by the collection for face * detection. *

*

* For more information, see Model versioning in the Amazon Rekognition * Developer Guide. *

*/ private String faceModelVersion; /** *

* The Amazon Resource Name (ARN) of the collection. *

*/ private String collectionARN; /** *

* The number of milliseconds since the Unix epoch time until the creation * of the collection. The Unix epoch time is 00:00:00 Coordinated Universal * Time (UTC), Thursday, 1 January 1970. *

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

* The number of UserIDs assigned to the specified colleciton. *

*

* Constraints:
* Range: 0 -
*/ private Long userCount; /** *

* The number of faces that are indexed into the collection. To index faces * into a collection, use IndexFaces. *

*

* Constraints:
* Range: 0 -
* * @return

* The number of faces that are indexed into the collection. To * index faces into a collection, use IndexFaces. *

*/ public Long getFaceCount() { return faceCount; } /** *

* The number of faces that are indexed into the collection. To index faces * into a collection, use IndexFaces. *

*

* Constraints:
* Range: 0 -
* * @param faceCount

* The number of faces that are indexed into the collection. To * index faces into a collection, use IndexFaces. *

*/ public void setFaceCount(Long faceCount) { this.faceCount = faceCount; } /** *

* The number of faces that are indexed into the collection. To index faces * into a collection, use IndexFaces. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Range: 0 -
* * @param faceCount

* The number of faces that are indexed into the collection. To * index faces into a collection, use IndexFaces. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeCollectionResult withFaceCount(Long faceCount) { this.faceCount = faceCount; return this; } /** *

* The version of the face model that's used by the collection for face * detection. *

*

* For more information, see Model versioning in the Amazon Rekognition * Developer Guide. *

* * @return

* The version of the face model that's used by the collection for * face detection. *

*

* For more information, see Model versioning in the Amazon * Rekognition Developer Guide. *

*/ public String getFaceModelVersion() { return faceModelVersion; } /** *

* The version of the face model that's used by the collection for face * detection. *

*

* For more information, see Model versioning in the Amazon Rekognition * Developer Guide. *

* * @param faceModelVersion

* The version of the face model that's used by the collection * for face detection. *

*

* For more information, see Model versioning in the Amazon * Rekognition Developer Guide. *

*/ public void setFaceModelVersion(String faceModelVersion) { this.faceModelVersion = faceModelVersion; } /** *

* The version of the face model that's used by the collection for face * detection. *

*

* For more information, see Model versioning in the Amazon Rekognition * Developer Guide. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param faceModelVersion

* The version of the face model that's used by the collection * for face detection. *

*

* For more information, see Model versioning in the Amazon * Rekognition Developer Guide. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeCollectionResult withFaceModelVersion(String faceModelVersion) { this.faceModelVersion = faceModelVersion; return this; } /** *

* The Amazon Resource Name (ARN) of the collection. *

* * @return

* The Amazon Resource Name (ARN) of the collection. *

*/ public String getCollectionARN() { return collectionARN; } /** *

* The Amazon Resource Name (ARN) of the collection. *

* * @param collectionARN

* The Amazon Resource Name (ARN) of the collection. *

*/ public void setCollectionARN(String collectionARN) { this.collectionARN = collectionARN; } /** *

* The Amazon Resource Name (ARN) of the collection. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param collectionARN

* The Amazon Resource Name (ARN) of the collection. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeCollectionResult withCollectionARN(String collectionARN) { this.collectionARN = collectionARN; return this; } /** *

* The number of milliseconds since the Unix epoch time until the creation * of the collection. The Unix epoch time is 00:00:00 Coordinated Universal * Time (UTC), Thursday, 1 January 1970. *

* * @return

* The number of milliseconds since the Unix epoch time until the * creation of the collection. The Unix epoch time is 00:00:00 * Coordinated Universal Time (UTC), Thursday, 1 January 1970. *

*/ public java.util.Date getCreationTimestamp() { return creationTimestamp; } /** *

* The number of milliseconds since the Unix epoch time until the creation * of the collection. The Unix epoch time is 00:00:00 Coordinated Universal * Time (UTC), Thursday, 1 January 1970. *

* * @param creationTimestamp

* The number of milliseconds since the Unix epoch time until the * creation of the collection. The Unix epoch time is 00:00:00 * Coordinated Universal Time (UTC), Thursday, 1 January 1970. *

*/ public void setCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; } /** *

* The number of milliseconds since the Unix epoch time until the creation * of the collection. The Unix epoch time is 00:00:00 Coordinated Universal * Time (UTC), Thursday, 1 January 1970. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param creationTimestamp

* The number of milliseconds since the Unix epoch time until the * creation of the collection. The Unix epoch time is 00:00:00 * Coordinated Universal Time (UTC), Thursday, 1 January 1970. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeCollectionResult withCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; return this; } /** *

* The number of UserIDs assigned to the specified colleciton. *

*

* Constraints:
* Range: 0 -
* * @return

* The number of UserIDs assigned to the specified colleciton. *

*/ public Long getUserCount() { return userCount; } /** *

* The number of UserIDs assigned to the specified colleciton. *

*

* Constraints:
* Range: 0 -
* * @param userCount

* The number of UserIDs assigned to the specified colleciton. *

*/ public void setUserCount(Long userCount) { this.userCount = userCount; } /** *

* The number of UserIDs assigned to the specified colleciton. *

*

* Returns a reference to this object so that method calls can be chained * together. *

* Constraints:
* Range: 0 -
* * @param userCount

* The number of UserIDs assigned to the specified colleciton. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeCollectionResult withUserCount(Long userCount) { this.userCount = userCount; 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 (getFaceCount() != null) sb.append("FaceCount: " + getFaceCount() + ","); if (getFaceModelVersion() != null) sb.append("FaceModelVersion: " + getFaceModelVersion() + ","); if (getCollectionARN() != null) sb.append("CollectionARN: " + getCollectionARN() + ","); if (getCreationTimestamp() != null) sb.append("CreationTimestamp: " + getCreationTimestamp() + ","); if (getUserCount() != null) sb.append("UserCount: " + getUserCount()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFaceCount() == null) ? 0 : getFaceCount().hashCode()); hashCode = prime * hashCode + ((getFaceModelVersion() == null) ? 0 : getFaceModelVersion().hashCode()); hashCode = prime * hashCode + ((getCollectionARN() == null) ? 0 : getCollectionARN().hashCode()); hashCode = prime * hashCode + ((getCreationTimestamp() == null) ? 0 : getCreationTimestamp().hashCode()); hashCode = prime * hashCode + ((getUserCount() == null) ? 0 : getUserCount().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCollectionResult == false) return false; DescribeCollectionResult other = (DescribeCollectionResult) obj; if (other.getFaceCount() == null ^ this.getFaceCount() == null) return false; if (other.getFaceCount() != null && other.getFaceCount().equals(this.getFaceCount()) == false) return false; if (other.getFaceModelVersion() == null ^ this.getFaceModelVersion() == null) return false; if (other.getFaceModelVersion() != null && other.getFaceModelVersion().equals(this.getFaceModelVersion()) == false) return false; if (other.getCollectionARN() == null ^ this.getCollectionARN() == null) return false; if (other.getCollectionARN() != null && other.getCollectionARN().equals(this.getCollectionARN()) == false) return false; if (other.getCreationTimestamp() == null ^ this.getCreationTimestamp() == null) return false; if (other.getCreationTimestamp() != null && other.getCreationTimestamp().equals(this.getCreationTimestamp()) == false) return false; if (other.getUserCount() == null ^ this.getUserCount() == null) return false; if (other.getUserCount() != null && other.getUserCount().equals(this.getUserCount()) == false) return false; return true; } }