* Set of profileId
s that belong to the same matching group.
*
* The string matchId
that the similar profiles belong to.
*
* Specify the type of matching to get similar profiles for. *
*/ private String matchType; /** ** The integer rule level that the profiles matched on. *
*/ private Integer ruleLevel; /** *
* It only has value when the MatchType
is ML_BASED_MATCHING
.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 as an absolute measure of matching quality.
*
* The pagination token from the previous GetSimilarProfiles
API call.
*
* Set of profileId
s that belong to the same matching group.
*
profileId
s that belong to the same matching group.
*/
public java.util.List
* Set of profileId
s that belong to the same matching group.
*
profileId
s that belong to the same matching group.
*/
public void setProfileIds(java.util.Collection
* Set of profileId
s that belong to the same matching group.
*
* 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 * Set ofprofileId
s that belong to the same matching group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSimilarProfilesResult withProfileIds(String... profileIds) {
if (this.profileIds == null) {
setProfileIds(new java.util.ArrayList
* Set of profileId
s that belong to the same matching group.
*
profileId
s that belong to the same matching group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSimilarProfilesResult withProfileIds(java.util.Collection
* The string matchId
that the similar profiles belong to.
*
matchId
that the similar profiles belong to.
*/
public void setMatchId(String matchId) {
this.matchId = matchId;
}
/**
*
* The string matchId
that the similar profiles belong to.
*
matchId
that the similar profiles belong to.
*/
public String getMatchId() {
return this.matchId;
}
/**
*
* The string matchId
that the similar profiles belong to.
*
matchId
that the similar profiles belong to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSimilarProfilesResult withMatchId(String matchId) {
setMatchId(matchId);
return this;
}
/**
* * Specify the type of matching to get similar profiles for. *
* * @param matchType * Specify the type of matching to get similar profiles for. * @see MatchType */ public void setMatchType(String matchType) { this.matchType = matchType; } /** ** Specify the type of matching to get similar profiles for. *
* * @return Specify the type of matching to get similar profiles for. * @see MatchType */ public String getMatchType() { return this.matchType; } /** ** Specify the type of matching to get similar profiles for. *
* * @param matchType * Specify the type of matching to get similar profiles for. * @return Returns a reference to this object so that method calls can be chained together. * @see MatchType */ public GetSimilarProfilesResult withMatchType(String matchType) { setMatchType(matchType); return this; } /** ** Specify the type of matching to get similar profiles for. *
* * @param matchType * Specify the type of matching to get similar profiles for. * @return Returns a reference to this object so that method calls can be chained together. * @see MatchType */ public GetSimilarProfilesResult withMatchType(MatchType matchType) { this.matchType = matchType.toString(); return this; } /** ** The integer rule level that the profiles matched on. *
* * @param ruleLevel * The integer rule level that the profiles matched on. */ public void setRuleLevel(Integer ruleLevel) { this.ruleLevel = ruleLevel; } /** ** The integer rule level that the profiles matched on. *
* * @return The integer rule level that the profiles matched on. */ public Integer getRuleLevel() { return this.ruleLevel; } /** ** The integer rule level that the profiles matched on. *
* * @param ruleLevel * The integer rule level that the profiles matched on. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSimilarProfilesResult withRuleLevel(Integer ruleLevel) { setRuleLevel(ruleLevel); return this; } /** *
* It only has value when the MatchType
is ML_BASED_MATCHING
.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 as an absolute measure of matching quality.
*
MatchType
is ML_BASED_MATCHING
.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 as an absolute measure
* of matching quality.
*/
public void setConfidenceScore(Double confidenceScore) {
this.confidenceScore = confidenceScore;
}
/**
*
* It only has value when the MatchType
is ML_BASED_MATCHING
.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 as an absolute measure of matching quality.
*
MatchType
is ML_BASED_MATCHING
.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 as an
* absolute measure of matching quality.
*/
public Double getConfidenceScore() {
return this.confidenceScore;
}
/**
*
* It only has value when the MatchType
is ML_BASED_MATCHING
.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 as an absolute measure of matching quality.
*
MatchType
is ML_BASED_MATCHING
.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 as an absolute measure
* of matching quality.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSimilarProfilesResult withConfidenceScore(Double confidenceScore) {
setConfidenceScore(confidenceScore);
return this;
}
/**
*
* The pagination token from the previous GetSimilarProfiles
API call.
*
GetSimilarProfiles
API call.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* The pagination token from the previous GetSimilarProfiles
API call.
*
GetSimilarProfiles
API call.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* The pagination token from the previous GetSimilarProfiles
API call.
*
GetSimilarProfiles
API call.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSimilarProfilesResult withNextToken(String nextToken) {
setNextToken(nextToken);
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 (getProfileIds() != null)
sb.append("ProfileIds: ").append(getProfileIds()).append(",");
if (getMatchId() != null)
sb.append("MatchId: ").append(getMatchId()).append(",");
if (getMatchType() != null)
sb.append("MatchType: ").append(getMatchType()).append(",");
if (getRuleLevel() != null)
sb.append("RuleLevel: ").append(getRuleLevel()).append(",");
if (getConfidenceScore() != null)
sb.append("ConfidenceScore: ").append(getConfidenceScore()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetSimilarProfilesResult == false)
return false;
GetSimilarProfilesResult other = (GetSimilarProfilesResult) obj;
if (other.getProfileIds() == null ^ this.getProfileIds() == null)
return false;
if (other.getProfileIds() != null && other.getProfileIds().equals(this.getProfileIds()) == false)
return false;
if (other.getMatchId() == null ^ this.getMatchId() == null)
return false;
if (other.getMatchId() != null && other.getMatchId().equals(this.getMatchId()) == false)
return false;
if (other.getMatchType() == null ^ this.getMatchType() == null)
return false;
if (other.getMatchType() != null && other.getMatchType().equals(this.getMatchType()) == false)
return false;
if (other.getRuleLevel() == null ^ this.getRuleLevel() == null)
return false;
if (other.getRuleLevel() != null && other.getRuleLevel().equals(this.getRuleLevel()) == false)
return false;
if (other.getConfidenceScore() == null ^ this.getConfidenceScore() == null)
return false;
if (other.getConfidenceScore() != null && other.getConfidenceScore().equals(this.getConfidenceScore()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getProfileIds() == null) ? 0 : getProfileIds().hashCode());
hashCode = prime * hashCode + ((getMatchId() == null) ? 0 : getMatchId().hashCode());
hashCode = prime * hashCode + ((getMatchType() == null) ? 0 : getMatchType().hashCode());
hashCode = prime * hashCode + ((getRuleLevel() == null) ? 0 : getRuleLevel().hashCode());
hashCode = prime * hashCode + ((getConfidenceScore() == null) ? 0 : getConfidenceScore().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public GetSimilarProfilesResult clone() {
try {
return (GetSimilarProfilesResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}