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/S3_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 S3
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_S3_API MetadataEntry();
34 AWS_S3_API MetadataEntry(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_S3_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 S3
78} // namespace Aws
const Aws::String & GetValue() const
const Aws::String & GetName() const
MetadataEntry & WithValue(const Aws::String &value)
MetadataEntry & WithValue(Aws::String &&value)
void SetValue(const char *value)
MetadataEntry & WithName(Aws::String &&value)
AWS_S3_API MetadataEntry()
AWS_S3_API MetadataEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
bool NameHasBeenSet() const
void SetValue(const Aws::String &value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetValue(Aws::String &&value)
void SetName(const char *value)
AWS_S3_API MetadataEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetName(Aws::String &&value)
bool ValueHasBeenSet() const
MetadataEntry & WithValue(const char *value)
MetadataEntry & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
MetadataEntry & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String