AWS SDK for C++  1.9.153
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 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetKey() const{ return m_key; }
48 
52  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 
57  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
58 
62  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
63 
67  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
68 
72  inline TagListEntry& WithKey(const Aws::String& value) { SetKey(value); return *this;}
73 
77  inline TagListEntry& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
78 
82  inline TagListEntry& WithKey(const char* value) { SetKey(value); return *this;}
83 
84 
88  inline const Aws::String& GetValue() const{ return m_value; }
89 
93  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
94 
98  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
99 
103  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
104 
108  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
109 
113  inline TagListEntry& WithValue(const Aws::String& value) { SetValue(value); return *this;}
114 
118  inline TagListEntry& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
119 
123  inline TagListEntry& WithValue(const char* value) { SetValue(value); return *this;}
124 
125  private:
126 
127  Aws::String m_key;
128  bool m_keyHasBeenSet;
129 
130  Aws::String m_value;
131  bool m_valueHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace DataSync
136 } // namespace Aws
Aws::DataSync::Model::TagListEntry::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: TagListEntry.h:52
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::TagListEntry::SetValue
void SetValue(const char *value)
Definition: TagListEntry.h:108
Aws::DataSync::Model::TagListEntry
Definition: TagListEntry.h:36
Aws::DataSync::Model::TagListEntry::WithValue
TagListEntry & WithValue(Aws::String &&value)
Definition: TagListEntry.h:118
Aws::DataSync::Model::TagListEntry::SetValue
void SetValue(const Aws::String &value)
Definition: TagListEntry.h:98
Aws::DataSync::Model::TagListEntry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DataSync::Model::TagListEntry::GetValue
const Aws::String & GetValue() const
Definition: TagListEntry.h:88
Aws::DataSync::Model::TagListEntry::TagListEntry
TagListEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::DataSync::Model::TagListEntry::WithKey
TagListEntry & WithKey(const char *value)
Definition: TagListEntry.h:82
Aws::DataSync::Model::TagListEntry::SetKey
void SetKey(const char *value)
Definition: TagListEntry.h:67
Aws::DataSync::Model::TagListEntry::SetValue
void SetValue(Aws::String &&value)
Definition: TagListEntry.h:103
Aws::DataSync::Model::TagListEntry::WithKey
TagListEntry & WithKey(Aws::String &&value)
Definition: TagListEntry.h:77
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::DataSync::Model::TagListEntry::WithKey
TagListEntry & WithKey(const Aws::String &value)
Definition: TagListEntry.h:72
AWSString.h
Aws::DataSync::Model::TagListEntry::operator=
TagListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DataSync::Model::TagListEntry::TagListEntry
TagListEntry()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
DataSync_EXPORTS.h
Aws::DataSync::Model::TagListEntry::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: TagListEntry.h:93
Aws::DataSync::Model::TagListEntry::WithValue
TagListEntry & WithValue(const char *value)
Definition: TagListEntry.h:123
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::TagListEntry::WithValue
TagListEntry & WithValue(const Aws::String &value)
Definition: TagListEntry.h:113
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::TagListEntry::SetKey
void SetKey(const Aws::String &value)
Definition: TagListEntry.h:57
Aws::DataSync::Model::TagListEntry::SetKey
void SetKey(Aws::String &&value)
Definition: TagListEntry.h:62
Aws::DataSync::Model::TagListEntry::GetKey
const Aws::String & GetKey() const
Definition: TagListEntry.h:47