/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains metadata like FaceId, UserID, and Reasons, for a face that was unsuccessfully associated. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UnsuccessfulFaceAssociation implements Serializable, Cloneable, StructuredPojo { /** ** A unique identifier assigned to the face. *
*/ private String faceId; /** ** A provided ID for the UserID. Unique within the collection. *
*/ private String userId; /** ** Match confidence with the UserID, provides information regarding if a face association was unsuccessful because * it didn't meet UserMatchThreshold. *
*/ private Float confidence; /** ** The reason why the association was unsuccessful. *
*/ private java.util.List* A unique identifier assigned to the face. *
* * @param faceId * A unique identifier assigned to the face. */ public void setFaceId(String faceId) { this.faceId = faceId; } /** ** A unique identifier assigned to the face. *
* * @return A unique identifier assigned to the face. */ public String getFaceId() { return this.faceId; } /** ** A unique identifier assigned to the face. *
* * @param faceId * A unique identifier assigned to the face. * @return Returns a reference to this object so that method calls can be chained together. */ public UnsuccessfulFaceAssociation withFaceId(String faceId) { setFaceId(faceId); return this; } /** ** A provided ID for the UserID. Unique within the collection. *
* * @param userId * A provided ID for the UserID. Unique within the collection. */ public void setUserId(String userId) { this.userId = userId; } /** ** A provided ID for the UserID. Unique within the collection. *
* * @return A provided ID for the UserID. Unique within the collection. */ public String getUserId() { return this.userId; } /** ** A provided ID for the UserID. Unique within the collection. *
* * @param userId * A provided ID for the UserID. Unique within the collection. * @return Returns a reference to this object so that method calls can be chained together. */ public UnsuccessfulFaceAssociation withUserId(String userId) { setUserId(userId); return this; } /** ** Match confidence with the UserID, provides information regarding if a face association was unsuccessful because * it didn't meet UserMatchThreshold. *
* * @param confidence * Match confidence with the UserID, provides information regarding if a face association was unsuccessful * because it didn't meet UserMatchThreshold. */ public void setConfidence(Float confidence) { this.confidence = confidence; } /** ** Match confidence with the UserID, provides information regarding if a face association was unsuccessful because * it didn't meet UserMatchThreshold. *
* * @return Match confidence with the UserID, provides information regarding if a face association was unsuccessful * because it didn't meet UserMatchThreshold. */ public Float getConfidence() { return this.confidence; } /** ** Match confidence with the UserID, provides information regarding if a face association was unsuccessful because * it didn't meet UserMatchThreshold. *
* * @param confidence * Match confidence with the UserID, provides information regarding if a face association was unsuccessful * because it didn't meet UserMatchThreshold. * @return Returns a reference to this object so that method calls can be chained together. */ public UnsuccessfulFaceAssociation withConfidence(Float confidence) { setConfidence(confidence); return this; } /** ** The reason why the association was unsuccessful. *
* * @return The reason why the association was unsuccessful. * @see UnsuccessfulFaceAssociationReason */ public java.util.List* The reason why the association was unsuccessful. *
* * @param reasons * The reason why the association was unsuccessful. * @see UnsuccessfulFaceAssociationReason */ public void setReasons(java.util.Collection* The reason why the association was unsuccessful. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReasons(java.util.Collection)} or {@link #withReasons(java.util.Collection)} if you want to override * the existing values. *
* * @param reasons * The reason why the association was unsuccessful. * @return Returns a reference to this object so that method calls can be chained together. * @see UnsuccessfulFaceAssociationReason */ public UnsuccessfulFaceAssociation withReasons(String... reasons) { if (this.reasons == null) { setReasons(new java.util.ArrayList* The reason why the association was unsuccessful. *
* * @param reasons * The reason why the association was unsuccessful. * @return Returns a reference to this object so that method calls can be chained together. * @see UnsuccessfulFaceAssociationReason */ public UnsuccessfulFaceAssociation withReasons(java.util.Collection* The reason why the association was unsuccessful. *
* * @param reasons * The reason why the association was unsuccessful. * @return Returns a reference to this object so that method calls can be chained together. * @see UnsuccessfulFaceAssociationReason */ public UnsuccessfulFaceAssociation withReasons(UnsuccessfulFaceAssociationReason... reasons) { java.util.ArrayList