AWS SDK for C++  1.9.124
AWS SDK for C++
Tag.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ApplicationInsights
22 {
23 namespace Model
24 {
25 
47  {
48  public:
49  Tag();
53 
54 
59  inline const Aws::String& GetKey() const{ return m_key; }
60 
65  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
66 
71  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
72 
77  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
78 
83  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
84 
89  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
90 
95  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
96 
101  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
102 
103 
110  inline const Aws::String& GetValue() const{ return m_value; }
111 
118  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
119 
126  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
127 
134  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
135 
142  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
143 
150  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
151 
158  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
159 
166  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
167 
168  private:
169 
170  Aws::String m_key;
171  bool m_keyHasBeenSet;
172 
173  Aws::String m_value;
174  bool m_valueHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace ApplicationInsights
179 } // namespace Aws
Aws::ApplicationInsights::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ApplicationInsights::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:77
Aws::ApplicationInsights::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:83
Aws::ApplicationInsights::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:65
Aws::ApplicationInsights::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::ApplicationInsights::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:59
Aws::ApplicationInsights::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:150
Aws::ApplicationInsights::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:166
AWS_APPLICATIONINSIGHTS_API
#define AWS_APPLICATIONINSIGHTS_API
Definition: ApplicationInsights_EXPORTS.h:28
Aws::ApplicationInsights::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ApplicationInsights::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:95
Aws::ApplicationInsights::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:134
Aws::ApplicationInsights::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:71
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ApplicationInsights::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:126
Aws::ApplicationInsights::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:142
Aws::ApplicationInsights::Model::Tag::Tag
Tag()
Aws::ApplicationInsights::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:158
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationInsights::Model::Tag
Definition: Tag.h:47
Aws::ApplicationInsights::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:118
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationInsights::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:101
Aws::ApplicationInsights::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:110
Aws::ApplicationInsights::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:89
ApplicationInsights_EXPORTS.h