/*
* 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;
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeCollectionResult extends com.amazonaws.AmazonWebServiceResult
* The number of faces that are indexed into the collection. To index faces into a collection, use
* IndexFaces.
*
* 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.
*
* The Amazon Resource Name (ARN) of the collection.
*
* 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.
*
* The number of UserIDs assigned to the specified colleciton.
*
* The number of faces that are indexed into the collection. To index faces into a collection, use
* IndexFaces.
*
* The number of faces that are indexed into the collection. To index faces into a collection, use
* IndexFaces.
*
* The number of faces that are indexed into the collection. To index faces into a collection, use
* IndexFaces.
*
* 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.
*
* 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. *
* * @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 this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCollectionResult withFaceModelVersion(String faceModelVersion) { setFaceModelVersion(faceModelVersion); return this; } /** *
* 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. *
* * @return The Amazon Resource Name (ARN) of the collection. */ public String getCollectionARN() { return this.collectionARN; } /** ** The Amazon Resource Name (ARN) of the collection. *
* * @param collectionARN * The Amazon Resource Name (ARN) of the collection. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCollectionResult withCollectionARN(String collectionARN) { setCollectionARN(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. *
* * @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. *
* * @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 this.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. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCollectionResult withCreationTimestamp(java.util.Date creationTimestamp) { setCreationTimestamp(creationTimestamp); return this; } /** ** The number of UserIDs assigned to the specified colleciton. *
* * @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. *
* * @return The number of UserIDs assigned to the specified colleciton. */ public Long getUserCount() { return this.userCount; } /** ** The number of UserIDs assigned to the specified colleciton. *
* * @param userCount * The number of UserIDs assigned to the specified colleciton. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCollectionResult withUserCount(Long userCount) { setUserCount(userCount); 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 (getFaceCount() != null) sb.append("FaceCount: ").append(getFaceCount()).append(","); if (getFaceModelVersion() != null) sb.append("FaceModelVersion: ").append(getFaceModelVersion()).append(","); if (getCollectionARN() != null) sb.append("CollectionARN: ").append(getCollectionARN()).append(","); if (getCreationTimestamp() != null) sb.append("CreationTimestamp: ").append(getCreationTimestamp()).append(","); if (getUserCount() != null) sb.append("UserCount: ").append(getUserCount()); sb.append("}"); return sb.toString(); } @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; } @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 DescribeCollectionResult clone() { try { return (DescribeCollectionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }