AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Tag.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy
22{
23namespace Model
24{
25
31 class Tag
32 {
33 public:
38
39
43 inline const Aws::String& GetKey() const{ return m_key; }
44
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49
53 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
54
58 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
59
63 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
64
68 inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
69
73 inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
74
78 inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
79
80
84 inline const Aws::String& GetValue() const{ return m_value; }
85
89 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
90
94 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
95
99 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
100
104 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
105
109 inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
110
114 inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
115
119 inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
120
121 private:
122
123 Aws::String m_key;
124 bool m_keyHasBeenSet = false;
125
126 Aws::String m_value;
127 bool m_valueHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CodeDeploy
132} // namespace Aws
#define AWS_CODEDEPLOY_API
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:73
AWS_CODEDEPLOY_API Tag(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const char *value)
Definition: Tag.h:104
AWS_CODEDEPLOY_API Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
Definition: Tag.h:94
Tag & WithKey(const char *value)
Definition: Tag.h:78
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:114
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:68
Tag & WithValue(const char *value)
Definition: Tag.h:119
bool ValueHasBeenSet() const
Definition: Tag.h:89
const Aws::String & GetValue() const
Definition: Tag.h:84
bool KeyHasBeenSet() const
Definition: Tag.h:48
AWS_CODEDEPLOY_API Tag()
const Aws::String & GetKey() const
Definition: Tag.h:43
void SetKey(const char *value)
Definition: Tag.h:63
void SetValue(Aws::String &&value)
Definition: Tag.h:99
void SetKey(Aws::String &&value)
Definition: Tag.h:58
void SetKey(const Aws::String &value)
Definition: Tag.h:53
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:109
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String