AWS SDK for C++  1.9.19
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 GuardDuty
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Tag();
39 
40 
44  inline const Aws::String& GetKey() const{ return m_key; }
45 
49  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 
54  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
55 
59  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
60 
64  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
65 
69  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
70 
74  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
75 
79  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
80 
81 
85  inline const Aws::String& GetValue() const{ return m_value; }
86 
90  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
91 
95  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
96 
100  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
101 
105  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
106 
110  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
111 
115  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
116 
120  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
121 
122  private:
123 
124  Aws::String m_key;
125  bool m_keyHasBeenSet;
126 
127  Aws::String m_value;
128  bool m_valueHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace GuardDuty
133 } // namespace Aws
Aws::GuardDuty::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:44
Aws::GuardDuty::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:64
Aws::GuardDuty::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:49
Aws::GuardDuty::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:85
Aws::GuardDuty::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:74
Aws::GuardDuty::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:115
Aws::GuardDuty::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:90
Aws::GuardDuty::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:79
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Tag
Definition: Tag.h:33
Aws::GuardDuty::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:54
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:69
Aws::GuardDuty::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:105
Aws::GuardDuty::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:120
Aws::GuardDuty::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:100
Aws::GuardDuty::Model::Tag::Tag
Tag()
Aws::GuardDuty::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:95
Aws::GuardDuty::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:59