AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRule(const Aws::Vector<Aws::String>& value) { m_ruleHasBeenSet = true; m_rule = value; }
59 inline void SetRule(Aws::Vector<Aws::String>&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
60 inline MatchingRule& WithRule(const Aws::Vector<Aws::String>& value) { SetRule(value); return *this;}
61 inline MatchingRule& WithRule(Aws::Vector<Aws::String>&& value) { SetRule(std::move(value)); return *this;}
62 inline MatchingRule& AddRule(const Aws::String& value) { m_ruleHasBeenSet = true; m_rule.push_back(value); return *this; }
63 inline MatchingRule& AddRule(Aws::String&& value) { m_ruleHasBeenSet = true; m_rule.push_back(std::move(value)); return *this; }
64 inline MatchingRule& AddRule(const char* value) { m_ruleHasBeenSet = true; m_rule.push_back(value); return *this; }
66 private:
67
69 bool m_ruleHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace CustomerProfiles
74} // namespace Aws
AWS_CUSTOMERPROFILES_API MatchingRule(Aws::Utils::Json::JsonView jsonValue)
void SetRule(const Aws::Vector< Aws::String > &value)
MatchingRule & WithRule(Aws::Vector< Aws::String > &&value)
MatchingRule & AddRule(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRule() const
MatchingRule & WithRule(const Aws::Vector< Aws::String > &value)
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CUSTOMERPROFILES_API MatchingRule()
MatchingRule & AddRule(Aws::String &&value)
MatchingRule & AddRule(const char *value)
void SetRule(Aws::Vector< Aws::String > &&value)
AWS_CUSTOMERPROFILES_API MatchingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue