AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AsyncErrorDetails.h
1
6#pragma once
7#include <aws/s3control/S3Control_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 S3Control
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_S3CONTROL_API AsyncErrorDetails();
35 AWS_S3CONTROL_API AsyncErrorDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_S3CONTROL_API AsyncErrorDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
45 inline const Aws::String& GetCode() const{ return m_code; }
46 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
47 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
48 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
49 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
50 inline AsyncErrorDetails& WithCode(const Aws::String& value) { SetCode(value); return *this;}
51 inline AsyncErrorDetails& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
52 inline AsyncErrorDetails& WithCode(const char* value) { SetCode(value); return *this;}
54
56
59 inline const Aws::String& GetMessage() const{ return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
62 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
63 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
64 inline AsyncErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
65 inline AsyncErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
66 inline AsyncErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
68
70
73 inline const Aws::String& GetResource() const{ return m_resource; }
74 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
75 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
76 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
77 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
78 inline AsyncErrorDetails& WithResource(const Aws::String& value) { SetResource(value); return *this;}
79 inline AsyncErrorDetails& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
80 inline AsyncErrorDetails& WithResource(const char* value) { SetResource(value); return *this;}
82
84
87 inline const Aws::String& GetRequestId() const{ return m_requestId; }
88 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
89 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
90 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
91 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
92 inline AsyncErrorDetails& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
93 inline AsyncErrorDetails& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
94 inline AsyncErrorDetails& WithRequestId(const char* value) { SetRequestId(value); return *this;}
96 private:
97
98 Aws::String m_code;
99 bool m_codeHasBeenSet = false;
100
101 Aws::String m_message;
102 bool m_messageHasBeenSet = false;
103
104 Aws::String m_resource;
105 bool m_resourceHasBeenSet = false;
106
107 Aws::String m_requestId;
108 bool m_requestIdHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace S3Control
113} // namespace Aws
AsyncErrorDetails & WithRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
AsyncErrorDetails & WithResource(Aws::String &&value)
const Aws::String & GetRequestId() const
void SetMessage(const Aws::String &value)
AWS_S3CONTROL_API AsyncErrorDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AsyncErrorDetails & WithResource(const Aws::String &value)
AsyncErrorDetails & WithRequestId(const char *value)
AsyncErrorDetails & WithCode(const char *value)
AWS_S3CONTROL_API AsyncErrorDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCode(const Aws::String &value)
AsyncErrorDetails & WithMessage(Aws::String &&value)
AsyncErrorDetails & WithMessage(const Aws::String &value)
AsyncErrorDetails & WithRequestId(const Aws::String &value)
AsyncErrorDetails & WithCode(Aws::String &&value)
AsyncErrorDetails & WithResource(const char *value)
AsyncErrorDetails & WithMessage(const char *value)
AsyncErrorDetails & WithCode(const Aws::String &value)
const Aws::String & GetResource() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
void SetResource(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String