AWS SDK for C++  1.9.175
AWS SDK for C++
Condition.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Backup
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
53  inline const ConditionType& GetConditionType() const{ return m_conditionType; }
54 
64  inline bool ConditionTypeHasBeenSet() const { return m_conditionTypeHasBeenSet; }
65 
75  inline void SetConditionType(const ConditionType& value) { m_conditionTypeHasBeenSet = true; m_conditionType = value; }
76 
86  inline void SetConditionType(ConditionType&& value) { m_conditionTypeHasBeenSet = true; m_conditionType = std::move(value); }
87 
97  inline Condition& WithConditionType(const ConditionType& value) { SetConditionType(value); return *this;}
98 
108  inline Condition& WithConditionType(ConditionType&& value) { SetConditionType(std::move(value)); return *this;}
109 
110 
115  inline const Aws::String& GetConditionKey() const{ return m_conditionKey; }
116 
121  inline bool ConditionKeyHasBeenSet() const { return m_conditionKeyHasBeenSet; }
122 
127  inline void SetConditionKey(const Aws::String& value) { m_conditionKeyHasBeenSet = true; m_conditionKey = value; }
128 
133  inline void SetConditionKey(Aws::String&& value) { m_conditionKeyHasBeenSet = true; m_conditionKey = std::move(value); }
134 
139  inline void SetConditionKey(const char* value) { m_conditionKeyHasBeenSet = true; m_conditionKey.assign(value); }
140 
145  inline Condition& WithConditionKey(const Aws::String& value) { SetConditionKey(value); return *this;}
146 
151  inline Condition& WithConditionKey(Aws::String&& value) { SetConditionKey(std::move(value)); return *this;}
152 
157  inline Condition& WithConditionKey(const char* value) { SetConditionKey(value); return *this;}
158 
159 
164  inline const Aws::String& GetConditionValue() const{ return m_conditionValue; }
165 
170  inline bool ConditionValueHasBeenSet() const { return m_conditionValueHasBeenSet; }
171 
176  inline void SetConditionValue(const Aws::String& value) { m_conditionValueHasBeenSet = true; m_conditionValue = value; }
177 
182  inline void SetConditionValue(Aws::String&& value) { m_conditionValueHasBeenSet = true; m_conditionValue = std::move(value); }
183 
188  inline void SetConditionValue(const char* value) { m_conditionValueHasBeenSet = true; m_conditionValue.assign(value); }
189 
194  inline Condition& WithConditionValue(const Aws::String& value) { SetConditionValue(value); return *this;}
195 
200  inline Condition& WithConditionValue(Aws::String&& value) { SetConditionValue(std::move(value)); return *this;}
201 
206  inline Condition& WithConditionValue(const char* value) { SetConditionValue(value); return *this;}
207 
208  private:
209 
210  ConditionType m_conditionType;
211  bool m_conditionTypeHasBeenSet;
212 
213  Aws::String m_conditionKey;
214  bool m_conditionKeyHasBeenSet;
215 
216  Aws::String m_conditionValue;
217  bool m_conditionValueHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace Backup
222 } // namespace Aws
Aws::Backup::Model::Condition::WithConditionKey
Condition & WithConditionKey(Aws::String &&value)
Definition: Condition.h:151
Aws::Backup::Model::Condition::WithConditionValue
Condition & WithConditionValue(const Aws::String &value)
Definition: Condition.h:194
Aws::Backup::Model::Condition::SetConditionValue
void SetConditionValue(const char *value)
Definition: Condition.h:188
Aws::Backup::Model::Condition::SetConditionKey
void SetConditionKey(const Aws::String &value)
Definition: Condition.h:127
Aws::Backup::Model::Condition::SetConditionValue
void SetConditionValue(Aws::String &&value)
Definition: Condition.h:182
Aws::Backup::Model::Condition::SetConditionKey
void SetConditionKey(const char *value)
Definition: Condition.h:139
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::Condition::SetConditionKey
void SetConditionKey(Aws::String &&value)
Definition: Condition.h:133
Aws::Backup::Model::ConditionType
ConditionType
Definition: ConditionType.h:17
Aws::Backup::Model::Condition::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Backup::Model::Condition::ConditionKeyHasBeenSet
bool ConditionKeyHasBeenSet() const
Definition: Condition.h:121
ConditionType.h
Aws::Backup::Model::Condition::GetConditionKey
const Aws::String & GetConditionKey() const
Definition: Condition.h:115
Aws::Backup::Model::Condition::WithConditionValue
Condition & WithConditionValue(Aws::String &&value)
Definition: Condition.h:200
Aws::Backup::Model::Condition::SetConditionType
void SetConditionType(ConditionType &&value)
Definition: Condition.h:86
Aws::Backup::Model::Condition::WithConditionKey
Condition & WithConditionKey(const char *value)
Definition: Condition.h:157
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Backup::Model::Condition::Condition
Condition(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::Condition::Condition
Condition()
Aws::Backup::Model::Condition::WithConditionType
Condition & WithConditionType(ConditionType &&value)
Definition: Condition.h:108
Aws::Backup::Model::Condition::WithConditionKey
Condition & WithConditionKey(const Aws::String &value)
Definition: Condition.h:145
Backup_EXPORTS.h
Aws::Backup::Model::Condition::GetConditionValue
const Aws::String & GetConditionValue() const
Definition: Condition.h:164
Aws::Backup::Model::Condition::WithConditionValue
Condition & WithConditionValue(const char *value)
Definition: Condition.h:206
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::Condition::operator=
Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Backup::Model::Condition::SetConditionValue
void SetConditionValue(const Aws::String &value)
Definition: Condition.h:176
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::Condition
Definition: Condition.h:36
Aws::Backup::Model::Condition::WithConditionType
Condition & WithConditionType(const ConditionType &value)
Definition: Condition.h:97
Aws::Backup::Model::Condition::ConditionValueHasBeenSet
bool ConditionValueHasBeenSet() const
Definition: Condition.h:170
Aws::Backup::Model::Condition::SetConditionType
void SetConditionType(const ConditionType &value)
Definition: Condition.h:75
Aws::Backup::Model::Condition::GetConditionType
const ConditionType & GetConditionType() const
Definition: Condition.h:53
Aws::Backup::Model::Condition::ConditionTypeHasBeenSet
bool ConditionTypeHasBeenSet() const
Definition: Condition.h:64