AWS SDK for C++  1.8.186
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 kendra
22 {
23 namespace Model
24 {
25 
34  {
35  public:
36  Tag();
40 
41 
46  inline const Aws::String& GetKey() const{ return m_key; }
47 
52  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 
58  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
59 
64  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
65 
70  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
71 
76  inline Tag& WithKey(const Aws::String& value) { SetKey(value); return *this;}
77 
82  inline Tag& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
83 
88  inline Tag& WithKey(const char* value) { SetKey(value); return *this;}
89 
90 
95  inline const Aws::String& GetValue() const{ return m_value; }
96 
101  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
102 
107  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
108 
113  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
114 
119  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
120 
125  inline Tag& WithValue(const Aws::String& value) { SetValue(value); return *this;}
126 
131  inline Tag& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
132 
137  inline Tag& WithValue(const char* value) { SetValue(value); return *this;}
138 
139  private:
140 
141  Aws::String m_key;
142  bool m_keyHasBeenSet;
143 
144  Aws::String m_value;
145  bool m_valueHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace kendra
150 } // namespace Aws
Aws::kendra::Model::Tag::SetKey
void SetKey(const char *value)
Definition: Tag.h:70
Aws::kendra::Model::Tag::WithKey
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:82
Aws::kendra::Model::Tag::GetValue
const Aws::String & GetValue() const
Definition: Tag.h:95
Aws::kendra::Model::Tag::WithValue
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:125
Aws::kendra::Model::Tag::operator=
Tag & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::Tag::WithValue
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:131
Kendra_EXPORTS.h
Aws::kendra::Model::Tag::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: Tag.h:101
Aws::kendra::Model::Tag::SetKey
void SetKey(Aws::String &&value)
Definition: Tag.h:64
Aws::kendra::Model::Tag::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::kendra::Model::Tag::SetValue
void SetValue(Aws::String &&value)
Definition: Tag.h:113
Aws::kendra::Model::Tag::GetKey
const Aws::String & GetKey() const
Definition: Tag.h:46
Aws::kendra::Model::Tag::Tag
Tag(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::Tag::SetValue
void SetValue(const Aws::String &value)
Definition: Tag.h:107
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::kendra::Model::Tag::WithValue
Tag & WithValue(const char *value)
Definition: Tag.h:137
Aws::kendra::Model::Tag::SetKey
void SetKey(const Aws::String &value)
Definition: Tag.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::Tag::Tag
Tag()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::Tag::WithKey
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:76
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::Tag::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: Tag.h:52
Aws::kendra::Model::Tag::WithKey
Tag & WithKey(const char *value)
Definition: Tag.h:88
Aws::kendra::Model::Tag
Definition: Tag.h:34
Aws::kendra::Model::Tag::SetValue
void SetValue(const char *value)
Definition: Tag.h:119