AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ErrorDetails.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace IAM
22{
23namespace Model
24{
25
39 {
40 public:
41 AWS_IAM_API ErrorDetails() = default;
42 AWS_IAM_API ErrorDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_IAM_API ErrorDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetMessage() const { return m_message; }
54 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
55 template<typename MessageT = Aws::String>
56 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
57 template<typename MessageT = Aws::String>
58 ErrorDetails& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
60
62
65 inline const Aws::String& GetCode() const { return m_code; }
66 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
67 template<typename CodeT = Aws::String>
68 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
69 template<typename CodeT = Aws::String>
70 ErrorDetails& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
72 private:
73
74 Aws::String m_message;
75 bool m_messageHasBeenSet = false;
76
77 Aws::String m_code;
78 bool m_codeHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace IAM
83} // namespace Aws
ErrorDetails & WithMessage(MessageT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetCode(CodeT &&value)
const Aws::String & GetCode() const
ErrorDetails & WithCode(CodeT &&value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_IAM_API ErrorDetails()=default
AWS_IAM_API ErrorDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_IAM_API ErrorDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessage(MessageT &&value)
const Aws::String & GetMessage() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream