AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ErrorDocument.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.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:
36
38
39
47 inline const Aws::String& GetKey() const{ return m_key; }
48
56 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
57
65 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
66
74 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
75
83 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
84
92 inline ErrorDocument& WithKey(const Aws::String& value) { SetKey(value); return *this;}
93
101 inline ErrorDocument& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
102
110 inline ErrorDocument& WithKey(const char* value) { SetKey(value); return *this;}
111
112 private:
113
114 Aws::String m_key;
115 bool m_keyHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace S3
120} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
AWS_S3_API ErrorDocument & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKey(Aws::String &&value)
Definition: ErrorDocument.h:74
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)
Definition: ErrorDocument.h:65
ErrorDocument & WithKey(Aws::String &&value)
void SetKey(const char *value)
Definition: ErrorDocument.h:83
const Aws::String & GetKey() const
Definition: ErrorDocument.h:47
ErrorDocument & WithKey(const Aws::String &value)
Definition: ErrorDocument.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String