/* * 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.customerprofiles.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Specifies how does the rule-based matching process should match profiles. You can choose from the following * attributes to build the matching Rule: *
** AccountNumber *
** Address.Address *
** Address.City *
** Address.Country *
** Address.County *
** Address.PostalCode *
** Address.State *
** Address.Province *
** BirthDate *
** BusinessName *
** EmailAddress *
** FirstName *
** Gender *
** LastName *
** MiddleName *
** PhoneNumber *
*
* Any customized profile attributes that start with the Attributes
*
* A single rule level of the MatchRules
. Configures how the rule-based matching process should match
* profiles.
*
* A single rule level of the MatchRules
. Configures how the rule-based matching process should match
* profiles.
*
MatchRules
. Configures how the rule-based matching process should
* match profiles.
*/
public java.util.List
* A single rule level of the MatchRules
. Configures how the rule-based matching process should match
* profiles.
*
MatchRules
. Configures how the rule-based matching process should
* match profiles.
*/
public void setRule(java.util.Collection
* A single rule level of the MatchRules
. Configures how the rule-based matching process should match
* profiles.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRule(java.util.Collection)} or {@link #withRule(java.util.Collection)} if you want to override the * existing values. *
* * @param rule * A single rule level of theMatchRules
. Configures how the rule-based matching process should
* match profiles.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MatchingRule withRule(String... rule) {
if (this.rule == null) {
setRule(new java.util.ArrayList
* A single rule level of the MatchRules
. Configures how the rule-based matching process should match
* profiles.
*
MatchRules
. Configures how the rule-based matching process should
* match profiles.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MatchingRule withRule(java.util.Collection