AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
MatchingRule.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CustomerProfiles
23{
24namespace Model
25{
26
43 {
44 public:
45 AWS_CUSTOMERPROFILES_API MatchingRule() = default;
46 AWS_CUSTOMERPROFILES_API MatchingRule(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CUSTOMERPROFILES_API MatchingRule& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
56 inline const Aws::Vector<Aws::String>& GetRule() const { return m_rule; }
57 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
58 template<typename RuleT = Aws::Vector<Aws::String>>
59 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
60 template<typename RuleT = Aws::Vector<Aws::String>>
61 MatchingRule& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
62 template<typename RuleT = Aws::String>
63 MatchingRule& AddRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule.emplace_back(std::forward<RuleT>(value)); return *this; }
65 private:
66
68 bool m_ruleHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace CustomerProfiles
73} // namespace Aws
MatchingRule & WithRule(RuleT &&value)
AWS_CUSTOMERPROFILES_API MatchingRule(Aws::Utils::Json::JsonView jsonValue)
AWS_CUSTOMERPROFILES_API MatchingRule()=default
const Aws::Vector< Aws::String > & GetRule() const
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
MatchingRule & AddRule(RuleT &&value)
AWS_CUSTOMERPROFILES_API MatchingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue