AWS SDK for C++  1.8.95
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();
38  Tag& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
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
#define AWS_KENDRA_API
void SetValue(const char *value)
Definition: Tag.h:119
void SetKey(Aws::String &&value)
Definition: Tag.h:64
void SetValue(Aws::String &&value)
Definition: Tag.h:113
Tag & WithKey(Aws::String &&value)
Definition: Tag.h:82
Tag & WithValue(Aws::String &&value)
Definition: Tag.h:131
const Aws::String & GetKey() const
Definition: Tag.h:46
Tag & WithKey(const Aws::String &value)
Definition: Tag.h:76
const Aws::String & GetValue() const
Definition: Tag.h:95
bool KeyHasBeenSet() const
Definition: Tag.h:52
Tag & WithValue(const Aws::String &value)
Definition: Tag.h:125
void SetKey(const char *value)
Definition: Tag.h:70
void SetKey(const Aws::String &value)
Definition: Tag.h:58
Tag & WithValue(const char *value)
Definition: Tag.h:137
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetValue(const Aws::String &value)
Definition: Tag.h:107
bool ValueHasBeenSet() const
Definition: Tag.h:101
Tag & WithKey(const char *value)
Definition: Tag.h:88