AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
MatchingRuleStatement.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/license-manager/LicenseManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LicenseManager {
21namespace Model {
22
29 public:
30 AWS_LICENSEMANAGER_API MatchingRuleStatement() = default;
31 AWS_LICENSEMANAGER_API MatchingRuleStatement(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
80 inline const Aws::String& GetKeyToMatch() const { return m_keyToMatch; }
81 inline bool KeyToMatchHasBeenSet() const { return m_keyToMatchHasBeenSet; }
82 template <typename KeyToMatchT = Aws::String>
83 void SetKeyToMatch(KeyToMatchT&& value) {
84 m_keyToMatchHasBeenSet = true;
85 m_keyToMatch = std::forward<KeyToMatchT>(value);
86 }
87 template <typename KeyToMatchT = Aws::String>
88 MatchingRuleStatement& WithKeyToMatch(KeyToMatchT&& value) {
89 SetKeyToMatch(std::forward<KeyToMatchT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetConstraint() const { return m_constraint; }
99 inline bool ConstraintHasBeenSet() const { return m_constraintHasBeenSet; }
100 template <typename ConstraintT = Aws::String>
101 void SetConstraint(ConstraintT&& value) {
102 m_constraintHasBeenSet = true;
103 m_constraint = std::forward<ConstraintT>(value);
104 }
105 template <typename ConstraintT = Aws::String>
106 MatchingRuleStatement& WithConstraint(ConstraintT&& value) {
107 SetConstraint(std::forward<ConstraintT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Vector<Aws::String>& GetValueToMatch() const { return m_valueToMatch; }
117 inline bool ValueToMatchHasBeenSet() const { return m_valueToMatchHasBeenSet; }
118 template <typename ValueToMatchT = Aws::Vector<Aws::String>>
119 void SetValueToMatch(ValueToMatchT&& value) {
120 m_valueToMatchHasBeenSet = true;
121 m_valueToMatch = std::forward<ValueToMatchT>(value);
122 }
123 template <typename ValueToMatchT = Aws::Vector<Aws::String>>
124 MatchingRuleStatement& WithValueToMatch(ValueToMatchT&& value) {
125 SetValueToMatch(std::forward<ValueToMatchT>(value));
126 return *this;
127 }
128 template <typename ValueToMatchT = Aws::String>
129 MatchingRuleStatement& AddValueToMatch(ValueToMatchT&& value) {
130 m_valueToMatchHasBeenSet = true;
131 m_valueToMatch.emplace_back(std::forward<ValueToMatchT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_keyToMatch;
137
138 Aws::String m_constraint;
139
140 Aws::Vector<Aws::String> m_valueToMatch;
141 bool m_keyToMatchHasBeenSet = false;
142 bool m_constraintHasBeenSet = false;
143 bool m_valueToMatchHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace LicenseManager
148} // namespace Aws
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LICENSEMANAGER_API MatchingRuleStatement(Aws::Utils::Json::JsonView jsonValue)
AWS_LICENSEMANAGER_API MatchingRuleStatement()=default
MatchingRuleStatement & WithConstraint(ConstraintT &&value)
MatchingRuleStatement & WithKeyToMatch(KeyToMatchT &&value)
AWS_LICENSEMANAGER_API MatchingRuleStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetValueToMatch() const
MatchingRuleStatement & AddValueToMatch(ValueToMatchT &&value)
MatchingRuleStatement & WithValueToMatch(ValueToMatchT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue