/* * 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.voiceid.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The registration configuration to be used during the batch fraudster registration job. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RegistrationConfig implements Serializable, Cloneable, StructuredPojo { /** *
* The action to take when a fraudster is identified as a duplicate. The default action is SKIP
, which
* skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW
always registers a
* new fraudster into the specified domain.
*
* The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a * duplicate. *
*/ private Integer fraudsterSimilarityThreshold; /** ** The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters * are registered to the default watchlist. *
*/ private java.util.List
* The action to take when a fraudster is identified as a duplicate. The default action is SKIP
, which
* skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW
always registers a
* new fraudster into the specified domain.
*
SKIP
,
* which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW
always
* registers a new fraudster into the specified domain.
* @see DuplicateRegistrationAction
*/
public void setDuplicateRegistrationAction(String duplicateRegistrationAction) {
this.duplicateRegistrationAction = duplicateRegistrationAction;
}
/**
*
* The action to take when a fraudster is identified as a duplicate. The default action is SKIP
, which
* skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW
always registers a
* new fraudster into the specified domain.
*
SKIP
* , which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW
* always registers a new fraudster into the specified domain.
* @see DuplicateRegistrationAction
*/
public String getDuplicateRegistrationAction() {
return this.duplicateRegistrationAction;
}
/**
*
* The action to take when a fraudster is identified as a duplicate. The default action is SKIP
, which
* skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW
always registers a
* new fraudster into the specified domain.
*
SKIP
,
* which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW
always
* registers a new fraudster into the specified domain.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DuplicateRegistrationAction
*/
public RegistrationConfig withDuplicateRegistrationAction(String duplicateRegistrationAction) {
setDuplicateRegistrationAction(duplicateRegistrationAction);
return this;
}
/**
*
* The action to take when a fraudster is identified as a duplicate. The default action is SKIP
, which
* skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW
always registers a
* new fraudster into the specified domain.
*
SKIP
,
* which skips registering the duplicate fraudster. Setting the value to REGISTER_AS_NEW
always
* registers a new fraudster into the specified domain.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DuplicateRegistrationAction
*/
public RegistrationConfig withDuplicateRegistrationAction(DuplicateRegistrationAction duplicateRegistrationAction) {
this.duplicateRegistrationAction = duplicateRegistrationAction.toString();
return this;
}
/**
* * The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a * duplicate. *
* * @param fraudsterSimilarityThreshold * The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a * duplicate. */ public void setFraudsterSimilarityThreshold(Integer fraudsterSimilarityThreshold) { this.fraudsterSimilarityThreshold = fraudsterSimilarityThreshold; } /** ** The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a * duplicate. *
* * @return The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a * duplicate. */ public Integer getFraudsterSimilarityThreshold() { return this.fraudsterSimilarityThreshold; } /** ** The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a * duplicate. *
* * @param fraudsterSimilarityThreshold * The minimum similarity score between the new and old fraudsters in order to consider the new fraudster a * duplicate. * @return Returns a reference to this object so that method calls can be chained together. */ public RegistrationConfig withFraudsterSimilarityThreshold(Integer fraudsterSimilarityThreshold) { setFraudsterSimilarityThreshold(fraudsterSimilarityThreshold); return this; } /** ** The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters * are registered to the default watchlist. *
* * @return The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the * fraudsters are registered to the default watchlist. */ public java.util.List* The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters * are registered to the default watchlist. *
* * @param watchlistIds * The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the * fraudsters are registered to the default watchlist. */ public void setWatchlistIds(java.util.Collection* The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters * are registered to the default watchlist. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setWatchlistIds(java.util.Collection)} or {@link #withWatchlistIds(java.util.Collection)} if you want to * override the existing values. *
* * @param watchlistIds * The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the * fraudsters are registered to the default watchlist. * @return Returns a reference to this object so that method calls can be chained together. */ public RegistrationConfig withWatchlistIds(String... watchlistIds) { if (this.watchlistIds == null) { setWatchlistIds(new java.util.ArrayList* The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the fraudsters * are registered to the default watchlist. *
* * @param watchlistIds * The identifiers of watchlists that a fraudster is registered to. If a watchlist isn't provided, the * fraudsters are registered to the default watchlist. * @return Returns a reference to this object so that method calls can be chained together. */ public RegistrationConfig withWatchlistIds(java.util.Collection