AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
MetadataEntry.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Crt
21{
22namespace Model
23{
24
31 {
32 public:
36
38
39
43 inline const Aws::String& GetName() const{ return m_name; }
44
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64
68 inline MetadataEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
69
73 inline MetadataEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74
78 inline MetadataEntry& WithName(const char* value) { SetName(value); return *this;}
79
80
84 inline const Aws::String& GetValue() const{ return m_value; }
85
89 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
90
94 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
95
99 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
100
104 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
105
109 inline MetadataEntry& WithValue(const Aws::String& value) { SetValue(value); return *this;}
110
114 inline MetadataEntry& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
115
119 inline MetadataEntry& WithValue(const char* value) { SetValue(value); return *this;}
120
121 private:
122
123 Aws::String m_name;
124 bool m_nameHasBeenSet = false;
125
126 Aws::String m_value;
127 bool m_valueHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace S3Crt
132} // namespace Aws
#define AWS_S3CRT_API
Definition: S3Crt_EXPORTS.h:28
Definition: MetadataEntry.h:31
void SetValue(Aws::String &&value)
Definition: MetadataEntry.h:99
MetadataEntry & WithName(Aws::String &&value)
Definition: MetadataEntry.h:73
const Aws::String & GetValue() const
Definition: MetadataEntry.h:84
AWS_S3CRT_API MetadataEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetName() const
Definition: MetadataEntry.h:43
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetName(const Aws::String &value)
Definition: MetadataEntry.h:53
MetadataEntry & WithName(const char *value)
Definition: MetadataEntry.h:78
AWS_S3CRT_API MetadataEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
MetadataEntry & WithValue(const char *value)
bool ValueHasBeenSet() const
Definition: MetadataEntry.h:89
MetadataEntry & WithValue(Aws::String &&value)
bool NameHasBeenSet() const
Definition: MetadataEntry.h:48
void SetName(const char *value)
Definition: MetadataEntry.h:63
void SetValue(const Aws::String &value)
Definition: MetadataEntry.h:94
void SetValue(const char *value)
AWS_S3CRT_API MetadataEntry()
MetadataEntry & WithName(const Aws::String &value)
Definition: MetadataEntry.h:68
void SetName(Aws::String &&value)
Definition: MetadataEntry.h:58
MetadataEntry & WithValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String