/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CustomerProfiles { namespace Model { /** *

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

    *

See Also:

AWS * API Reference

*/ class MatchingRule { public: AWS_CUSTOMERPROFILES_API MatchingRule(); AWS_CUSTOMERPROFILES_API MatchingRule(Aws::Utils::Json::JsonView jsonValue); AWS_CUSTOMERPROFILES_API MatchingRule& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A single rule level of the MatchRules. Configures how the * rule-based matching process should match profiles.

*/ inline const Aws::Vector& GetRule() const{ return m_rule; } /** *

A single rule level of the MatchRules. Configures how the * rule-based matching process should match profiles.

*/ inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; } /** *

A single rule level of the MatchRules. Configures how the * rule-based matching process should match profiles.

*/ inline void SetRule(const Aws::Vector& value) { m_ruleHasBeenSet = true; m_rule = value; } /** *

A single rule level of the MatchRules. Configures how the * rule-based matching process should match profiles.

*/ inline void SetRule(Aws::Vector&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); } /** *

A single rule level of the MatchRules. Configures how the * rule-based matching process should match profiles.

*/ inline MatchingRule& WithRule(const Aws::Vector& value) { SetRule(value); return *this;} /** *

A single rule level of the MatchRules. Configures how the * rule-based matching process should match profiles.

*/ inline MatchingRule& WithRule(Aws::Vector&& value) { SetRule(std::move(value)); return *this;} /** *

A single rule level of the MatchRules. Configures how the * rule-based matching process should match profiles.

*/ inline MatchingRule& AddRule(const Aws::String& value) { m_ruleHasBeenSet = true; m_rule.push_back(value); return *this; } /** *

A single rule level of the MatchRules. Configures how the * rule-based matching process should match profiles.

*/ inline MatchingRule& AddRule(Aws::String&& value) { m_ruleHasBeenSet = true; m_rule.push_back(std::move(value)); return *this; } /** *

A single rule level of the MatchRules. Configures how the * rule-based matching process should match profiles.

*/ inline MatchingRule& AddRule(const char* value) { m_ruleHasBeenSet = true; m_rule.push_back(value); return *this; } private: Aws::Vector m_rule; bool m_ruleHasBeenSet = false; }; } // namespace Model } // namespace CustomerProfiles } // namespace Aws