AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
36 {
37 public:
38 AWS_IAM_API ErrorDetails();
39 AWS_IAM_API ErrorDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_IAM_API ErrorDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetMessage() const{ return m_message; }
51 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
52 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
53 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
54 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 inline ErrorDetails& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
56 inline ErrorDetails& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
57 inline ErrorDetails& WithMessage(const char* value) { SetMessage(value); return *this;}
59
61
64 inline const Aws::String& GetCode() const{ return m_code; }
65 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
66 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
67 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
68 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
69 inline ErrorDetails& WithCode(const Aws::String& value) { SetCode(value); return *this;}
70 inline ErrorDetails& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
71 inline ErrorDetails& WithCode(const char* value) { SetCode(value); return *this;}
73 private:
74
75 Aws::String m_message;
76 bool m_messageHasBeenSet = false;
77
78 Aws::String m_code;
79 bool m_codeHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace IAM
84} // namespace Aws
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ErrorDetails & WithCode(const Aws::String &value)
void SetCode(Aws::String &&value)
ErrorDetails & WithMessage(const Aws::String &value)
const Aws::String & GetCode() const
void SetMessage(const Aws::String &value)
void SetCode(const char *value)
void SetMessage(const char *value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ErrorDetails & WithMessage(Aws::String &&value)
ErrorDetails & WithCode(const char *value)
ErrorDetails & WithMessage(const char *value)
AWS_IAM_API ErrorDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
ErrorDetails & WithCode(Aws::String &&value)
AWS_IAM_API ErrorDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCode(const Aws::String &value)
void SetMessage(Aws::String &&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