AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
MatchingRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CustomerProfiles {
21namespace Model {
22
39 public:
40 AWS_CUSTOMERPROFILES_API MatchingRule() = default;
41 AWS_CUSTOMERPROFILES_API MatchingRule(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CUSTOMERPROFILES_API MatchingRule& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
50 inline const Aws::Vector<Aws::String>& GetRule() const { return m_rule; }
51 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
52 template <typename RuleT = Aws::Vector<Aws::String>>
53 void SetRule(RuleT&& value) {
54 m_ruleHasBeenSet = true;
55 m_rule = std::forward<RuleT>(value);
56 }
57 template <typename RuleT = Aws::Vector<Aws::String>>
58 MatchingRule& WithRule(RuleT&& value) {
59 SetRule(std::forward<RuleT>(value));
60 return *this;
61 }
62 template <typename RuleT = Aws::String>
63 MatchingRule& AddRule(RuleT&& value) {
64 m_ruleHasBeenSet = true;
65 m_rule.emplace_back(std::forward<RuleT>(value));
66 return *this;
67 }
69 private:
71 bool m_ruleHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace CustomerProfiles
76} // 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