AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Condition.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/model/ConditionType.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 Backup
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_BACKUP_API Condition();
39 AWS_BACKUP_API Condition(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
54 inline const ConditionType& GetConditionType() const{ return m_conditionType; }
55 inline bool ConditionTypeHasBeenSet() const { return m_conditionTypeHasBeenSet; }
56 inline void SetConditionType(const ConditionType& value) { m_conditionTypeHasBeenSet = true; m_conditionType = value; }
57 inline void SetConditionType(ConditionType&& value) { m_conditionTypeHasBeenSet = true; m_conditionType = std::move(value); }
58 inline Condition& WithConditionType(const ConditionType& value) { SetConditionType(value); return *this;}
59 inline Condition& WithConditionType(ConditionType&& value) { SetConditionType(std::move(value)); return *this;}
61
63
67 inline const Aws::String& GetConditionKey() const{ return m_conditionKey; }
68 inline bool ConditionKeyHasBeenSet() const { return m_conditionKeyHasBeenSet; }
69 inline void SetConditionKey(const Aws::String& value) { m_conditionKeyHasBeenSet = true; m_conditionKey = value; }
70 inline void SetConditionKey(Aws::String&& value) { m_conditionKeyHasBeenSet = true; m_conditionKey = std::move(value); }
71 inline void SetConditionKey(const char* value) { m_conditionKeyHasBeenSet = true; m_conditionKey.assign(value); }
72 inline Condition& WithConditionKey(const Aws::String& value) { SetConditionKey(value); return *this;}
73 inline Condition& WithConditionKey(Aws::String&& value) { SetConditionKey(std::move(value)); return *this;}
74 inline Condition& WithConditionKey(const char* value) { SetConditionKey(value); return *this;}
76
78
82 inline const Aws::String& GetConditionValue() const{ return m_conditionValue; }
83 inline bool ConditionValueHasBeenSet() const { return m_conditionValueHasBeenSet; }
84 inline void SetConditionValue(const Aws::String& value) { m_conditionValueHasBeenSet = true; m_conditionValue = value; }
85 inline void SetConditionValue(Aws::String&& value) { m_conditionValueHasBeenSet = true; m_conditionValue = std::move(value); }
86 inline void SetConditionValue(const char* value) { m_conditionValueHasBeenSet = true; m_conditionValue.assign(value); }
87 inline Condition& WithConditionValue(const Aws::String& value) { SetConditionValue(value); return *this;}
88 inline Condition& WithConditionValue(Aws::String&& value) { SetConditionValue(std::move(value)); return *this;}
89 inline Condition& WithConditionValue(const char* value) { SetConditionValue(value); return *this;}
91 private:
92
93 ConditionType m_conditionType;
94 bool m_conditionTypeHasBeenSet = false;
95
96 Aws::String m_conditionKey;
97 bool m_conditionKeyHasBeenSet = false;
98
99 Aws::String m_conditionValue;
100 bool m_conditionValueHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Backup
105} // namespace Aws
Condition & WithConditionValue(Aws::String &&value)
Definition Condition.h:88
bool ConditionTypeHasBeenSet() const
Definition Condition.h:55
Condition & WithConditionKey(const Aws::String &value)
Definition Condition.h:72
Condition & WithConditionKey(Aws::String &&value)
Definition Condition.h:73
void SetConditionType(const ConditionType &value)
Definition Condition.h:56
const ConditionType & GetConditionType() const
Definition Condition.h:54
Condition & WithConditionType(ConditionType &&value)
Definition Condition.h:59
bool ConditionValueHasBeenSet() const
Definition Condition.h:83
void SetConditionKey(const Aws::String &value)
Definition Condition.h:69
AWS_BACKUP_API Condition(Aws::Utils::Json::JsonView jsonValue)
void SetConditionType(ConditionType &&value)
Definition Condition.h:57
Condition & WithConditionKey(const char *value)
Definition Condition.h:74
Condition & WithConditionValue(const char *value)
Definition Condition.h:89
const Aws::String & GetConditionKey() const
Definition Condition.h:67
void SetConditionValue(Aws::String &&value)
Definition Condition.h:85
AWS_BACKUP_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BACKUP_API Condition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConditionValue() const
Definition Condition.h:82
void SetConditionKey(const char *value)
Definition Condition.h:71
void SetConditionValue(const Aws::String &value)
Definition Condition.h:84
void SetConditionKey(Aws::String &&value)
Definition Condition.h:70
void SetConditionValue(const char *value)
Definition Condition.h:86
Condition & WithConditionType(const ConditionType &value)
Definition Condition.h:58
bool ConditionKeyHasBeenSet() const
Definition Condition.h:68
Condition & WithConditionValue(const Aws::String &value)
Definition Condition.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue