AWS SDK for C++  1.8.95
AWS SDK for C++
TagListEntry.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 DataSync
22 {
23 namespace Model
24 {
25 
35  {
36  public:
37  TagListEntry();
39  TagListEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
41 
42 
46  inline const Aws::String& GetKey() const{ return m_key; }
47 
51  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
52 
56  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
57 
61  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
62 
66  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
67 
71  inline TagListEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
72 
76  inline TagListEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
77 
81  inline TagListEntry& WithKey(const char* value) { SetKey(value); return *this;}
82 
83 
87  inline const Aws::String& GetValue() const{ return m_value; }
88 
92  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
93 
97  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
98 
102  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
103 
107  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
108 
112  inline TagListEntry& WithValue(const Aws::String& value) { SetValue(value); return *this;}
113 
117  inline TagListEntry& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
118 
122  inline TagListEntry& WithValue(const char* value) { SetValue(value); return *this;}
123 
124  private:
125 
126  Aws::String m_key;
127  bool m_keyHasBeenSet;
128 
129  Aws::String m_value;
130  bool m_valueHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace DataSync
135 } // namespace Aws
TagListEntry & WithValue(const char *value)
Definition: TagListEntry.h:122
void SetKey(const char *value)
Definition: TagListEntry.h:66
TagListEntry & WithKey(const Aws::String &value)
Definition: TagListEntry.h:71
TagListEntry & WithKey(Aws::String &&value)
Definition: TagListEntry.h:76
void SetValue(Aws::String &&value)
Definition: TagListEntry.h:102
bool ValueHasBeenSet() const
Definition: TagListEntry.h:92
void SetKey(Aws::String &&value)
Definition: TagListEntry.h:61
void SetValue(const char *value)
Definition: TagListEntry.h:107
TagListEntry & WithValue(const Aws::String &value)
Definition: TagListEntry.h:112
#define AWS_DATASYNC_API
bool KeyHasBeenSet() const
Definition: TagListEntry.h:51
const Aws::String & GetValue() const
Definition: TagListEntry.h:87
void SetKey(const Aws::String &value)
Definition: TagListEntry.h:56
const Aws::String & GetKey() const
Definition: TagListEntry.h:46
void SetValue(const Aws::String &value)
Definition: TagListEntry.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TagListEntry & WithKey(const char *value)
Definition: TagListEntry.h:81
Definition: TagListEntry.h:34
TagListEntry & WithValue(Aws::String &&value)
Definition: TagListEntry.h:117