AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CodeT = Aws::String>
48 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
49 template<typename CodeT = Aws::String>
50 AsyncErrorDetails& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
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) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
61 template<typename MessageT = Aws::String>
62 AsyncErrorDetails& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
64
66
69 inline const Aws::String& GetResource() const { return m_resource; }
70 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
71 template<typename ResourceT = Aws::String>
72 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
73 template<typename ResourceT = Aws::String>
74 AsyncErrorDetails& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
76
78
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
83 template<typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
85 template<typename RequestIdT = Aws::String>
86 AsyncErrorDetails& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
88 private:
89
90 Aws::String m_code;
91 bool m_codeHasBeenSet = false;
92
93 Aws::String m_message;
94 bool m_messageHasBeenSet = false;
95
96 Aws::String m_resource;
97 bool m_resourceHasBeenSet = false;
98
99 Aws::String m_requestId;
100 bool m_requestIdHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace S3Control
105} // 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