All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.customerprofiles.model.MatchItem Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Connect Customer Profiles module holds the client classes that are used for communicating with Amazon Connect Customer Profiles Service

The newest version!
/*
 * Copyright 2019-2024 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.customerprofiles.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The Match group object. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MatchItem implements Serializable, Cloneable, StructuredPojo { /** *

* The unique identifiers for this group of profiles that match. *

*/ private String matchId; /** *

* A list of identifiers for profiles that match. *

*/ private java.util.List profileIds; /** *

* A number between 0 and 1, where a higher score means higher similarity. Examining match confidence scores lets * you distinguish between groups of similar records in which the system is highly confident (which you may decide * to merge), groups of similar records about which the system is uncertain (which you may decide to have reviewed * by a human), and groups of similar records that the system deems to be unlikely (which you may decide to reject). * Given confidence scores vary as per the data input, it should not be used an absolute measure of matching * quality. *

*/ private Double confidenceScore; /** *

* The unique identifiers for this group of profiles that match. *

* * @param matchId * The unique identifiers for this group of profiles that match. */ public void setMatchId(String matchId) { this.matchId = matchId; } /** *

* The unique identifiers for this group of profiles that match. *

* * @return The unique identifiers for this group of profiles that match. */ public String getMatchId() { return this.matchId; } /** *

* The unique identifiers for this group of profiles that match. *

* * @param matchId * The unique identifiers for this group of profiles that match. * @return Returns a reference to this object so that method calls can be chained together. */ public MatchItem withMatchId(String matchId) { setMatchId(matchId); return this; } /** *

* A list of identifiers for profiles that match. *

* * @return A list of identifiers for profiles that match. */ public java.util.List getProfileIds() { return profileIds; } /** *

* A list of identifiers for profiles that match. *

* * @param profileIds * A list of identifiers for profiles that match. */ public void setProfileIds(java.util.Collection profileIds) { if (profileIds == null) { this.profileIds = null; return; } this.profileIds = new java.util.ArrayList(profileIds); } /** *

* A list of identifiers for profiles that match. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setProfileIds(java.util.Collection)} or {@link #withProfileIds(java.util.Collection)} if you want to * override the existing values. *

* * @param profileIds * A list of identifiers for profiles that match. * @return Returns a reference to this object so that method calls can be chained together. */ public MatchItem withProfileIds(String... profileIds) { if (this.profileIds == null) { setProfileIds(new java.util.ArrayList(profileIds.length)); } for (String ele : profileIds) { this.profileIds.add(ele); } return this; } /** *

* A list of identifiers for profiles that match. *

* * @param profileIds * A list of identifiers for profiles that match. * @return Returns a reference to this object so that method calls can be chained together. */ public MatchItem withProfileIds(java.util.Collection profileIds) { setProfileIds(profileIds); return this; } /** *

* A number between 0 and 1, where a higher score means higher similarity. Examining match confidence scores lets * you distinguish between groups of similar records in which the system is highly confident (which you may decide * to merge), groups of similar records about which the system is uncertain (which you may decide to have reviewed * by a human), and groups of similar records that the system deems to be unlikely (which you may decide to reject). * Given confidence scores vary as per the data input, it should not be used an absolute measure of matching * quality. *

* * @param confidenceScore * A number between 0 and 1, where a higher score means higher similarity. Examining match confidence scores * lets you distinguish between groups of similar records in which the system is highly confident (which you * may decide to merge), groups of similar records about which the system is uncertain (which you may decide * to have reviewed by a human), and groups of similar records that the system deems to be unlikely (which * you may decide to reject). Given confidence scores vary as per the data input, it should not be used an * absolute measure of matching quality. */ public void setConfidenceScore(Double confidenceScore) { this.confidenceScore = confidenceScore; } /** *

* A number between 0 and 1, where a higher score means higher similarity. Examining match confidence scores lets * you distinguish between groups of similar records in which the system is highly confident (which you may decide * to merge), groups of similar records about which the system is uncertain (which you may decide to have reviewed * by a human), and groups of similar records that the system deems to be unlikely (which you may decide to reject). * Given confidence scores vary as per the data input, it should not be used an absolute measure of matching * quality. *

* * @return A number between 0 and 1, where a higher score means higher similarity. Examining match confidence scores * lets you distinguish between groups of similar records in which the system is highly confident (which you * may decide to merge), groups of similar records about which the system is uncertain (which you may decide * to have reviewed by a human), and groups of similar records that the system deems to be unlikely (which * you may decide to reject). Given confidence scores vary as per the data input, it should not be used an * absolute measure of matching quality. */ public Double getConfidenceScore() { return this.confidenceScore; } /** *

* A number between 0 and 1, where a higher score means higher similarity. Examining match confidence scores lets * you distinguish between groups of similar records in which the system is highly confident (which you may decide * to merge), groups of similar records about which the system is uncertain (which you may decide to have reviewed * by a human), and groups of similar records that the system deems to be unlikely (which you may decide to reject). * Given confidence scores vary as per the data input, it should not be used an absolute measure of matching * quality. *

* * @param confidenceScore * A number between 0 and 1, where a higher score means higher similarity. Examining match confidence scores * lets you distinguish between groups of similar records in which the system is highly confident (which you * may decide to merge), groups of similar records about which the system is uncertain (which you may decide * to have reviewed by a human), and groups of similar records that the system deems to be unlikely (which * you may decide to reject). Given confidence scores vary as per the data input, it should not be used an * absolute measure of matching quality. * @return Returns a reference to this object so that method calls can be chained together. */ public MatchItem withConfidenceScore(Double confidenceScore) { setConfidenceScore(confidenceScore); 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 (getMatchId() != null) sb.append("MatchId: ").append(getMatchId()).append(","); if (getProfileIds() != null) sb.append("ProfileIds: ").append(getProfileIds()).append(","); if (getConfidenceScore() != null) sb.append("ConfidenceScore: ").append(getConfidenceScore()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MatchItem == false) return false; MatchItem other = (MatchItem) obj; if (other.getMatchId() == null ^ this.getMatchId() == null) return false; if (other.getMatchId() != null && other.getMatchId().equals(this.getMatchId()) == false) return false; if (other.getProfileIds() == null ^ this.getProfileIds() == null) return false; if (other.getProfileIds() != null && other.getProfileIds().equals(this.getProfileIds()) == false) return false; if (other.getConfidenceScore() == null ^ this.getConfidenceScore() == null) return false; if (other.getConfidenceScore() != null && other.getConfidenceScore().equals(this.getConfidenceScore()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMatchId() == null) ? 0 : getMatchId().hashCode()); hashCode = prime * hashCode + ((getProfileIds() == null) ? 0 : getProfileIds().hashCode()); hashCode = prime * hashCode + ((getConfidenceScore() == null) ? 0 : getConfidenceScore().hashCode()); return hashCode; } @Override public MatchItem clone() { try { return (MatchItem) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.customerprofiles.model.transform.MatchItemMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy