AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename KeyT = Aws::String>
51 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
52 template<typename KeyT = Aws::String>
53 ErrorDocument& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
55 private:
56
57 Aws::String m_key;
58 bool m_keyHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace S3
63} // namespace Aws
ErrorDocument & WithKey(KeyT &&value)
AWS_S3_API ErrorDocument & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3_API ErrorDocument(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API ErrorDocument()=default
const Aws::String & GetKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String