AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetadataEntry.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
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:
33 AWS_S3CRT_API MetadataEntry();
34 AWS_S3CRT_API MetadataEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_S3CRT_API MetadataEntry& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline MetadataEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline MetadataEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline MetadataEntry& WithName(const char* value) { SetName(value); return *this;}
53
55
58 inline const Aws::String& GetValue() const{ return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
61 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
62 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
63 inline MetadataEntry& WithValue(const Aws::String& value) { SetValue(value); return *this;}
64 inline MetadataEntry& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
65 inline MetadataEntry& WithValue(const char* value) { SetValue(value); return *this;}
67 private:
68
69 Aws::String m_name;
70 bool m_nameHasBeenSet = false;
71
72 Aws::String m_value;
73 bool m_valueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace S3Crt
78} // namespace Aws
void SetValue(Aws::String &&value)
MetadataEntry & WithName(Aws::String &&value)
const Aws::String & GetValue() const
AWS_S3CRT_API MetadataEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetName() const
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetName(const Aws::String &value)
MetadataEntry & WithName(const char *value)
AWS_S3CRT_API MetadataEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
MetadataEntry & WithValue(const char *value)
bool ValueHasBeenSet() const
MetadataEntry & WithValue(Aws::String &&value)
bool NameHasBeenSet() const
void SetName(const char *value)
void SetValue(const Aws::String &value)
void SetValue(const char *value)
AWS_S3CRT_API MetadataEntry()
MetadataEntry & WithName(const Aws::String &value)
void SetName(Aws::String &&value)
MetadataEntry & WithValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String