AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ErrorDocument.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 ErrorDocument();
34 AWS_S3_API ErrorDocument(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
39
41
48 inline const Aws::String& GetKey() const{ return m_key; }
49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
51 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
52 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
53 inline ErrorDocument& WithKey(const Aws::String& value) { SetKey(value); return *this;}
54 inline ErrorDocument& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
55 inline ErrorDocument& WithKey(const char* value) { SetKey(value); return *this;}
57 private:
58
59 Aws::String m_key;
60 bool m_keyHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace S3
65} // namespace Aws
AWS_S3_API ErrorDocument & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKey(Aws::String &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API ErrorDocument(const Aws::Utils::Xml::XmlNode &xmlNode)
ErrorDocument & WithKey(const char *value)
void SetKey(const Aws::String &value)
ErrorDocument & WithKey(Aws::String &&value)
void SetKey(const char *value)
const Aws::String & GetKey() const
ErrorDocument & WithKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String