AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AsyncErrorDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace S3Control {
19namespace Model {
20
28 public:
29 AWS_S3CONTROL_API AsyncErrorDetails() = default;
30 AWS_S3CONTROL_API AsyncErrorDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_S3CONTROL_API AsyncErrorDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
39 inline const Aws::String& GetCode() const { return m_code; }
40 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
41 template <typename CodeT = Aws::String>
42 void SetCode(CodeT&& value) {
43 m_codeHasBeenSet = true;
44 m_code = std::forward<CodeT>(value);
45 }
46 template <typename CodeT = Aws::String>
47 AsyncErrorDetails& WithCode(CodeT&& value) {
48 SetCode(std::forward<CodeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetMessage() const { return m_message; }
58 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
59 template <typename MessageT = Aws::String>
60 void SetMessage(MessageT&& value) {
61 m_messageHasBeenSet = true;
62 m_message = std::forward<MessageT>(value);
63 }
64 template <typename MessageT = Aws::String>
65 AsyncErrorDetails& WithMessage(MessageT&& value) {
66 SetMessage(std::forward<MessageT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetResource() const { return m_resource; }
76 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
77 template <typename ResourceT = Aws::String>
78 void SetResource(ResourceT&& value) {
79 m_resourceHasBeenSet = true;
80 m_resource = std::forward<ResourceT>(value);
81 }
82 template <typename ResourceT = Aws::String>
83 AsyncErrorDetails& WithResource(ResourceT&& value) {
84 SetResource(std::forward<ResourceT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
101 AsyncErrorDetails& WithRequestId(RequestIdT&& value) {
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_code;
108
109 Aws::String m_message;
110
111 Aws::String m_resource;
112
113 Aws::String m_requestId;
114 bool m_codeHasBeenSet = false;
115 bool m_messageHasBeenSet = false;
116 bool m_resourceHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace S3Control
122} // namespace Aws
const Aws::String & GetRequestId() const
AWS_S3CONTROL_API AsyncErrorDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AsyncErrorDetails & WithCode(CodeT &&value)
AWS_S3CONTROL_API AsyncErrorDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
AsyncErrorDetails & WithResource(ResourceT &&value)
const Aws::String & GetResource() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AsyncErrorDetails & WithRequestId(RequestIdT &&value)
AWS_S3CONTROL_API AsyncErrorDetails()=default
AsyncErrorDetails & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String