AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
IntegrationError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
29 public:
30 AWS_RDS_API IntegrationError() = default;
31 AWS_RDS_API IntegrationError(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
42 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
43 template <typename ErrorCodeT = Aws::String>
44 void SetErrorCode(ErrorCodeT&& value) {
45 m_errorCodeHasBeenSet = true;
46 m_errorCode = std::forward<ErrorCodeT>(value);
47 }
48 template <typename ErrorCodeT = Aws::String>
49 IntegrationError& WithErrorCode(ErrorCodeT&& value) {
50 SetErrorCode(std::forward<ErrorCodeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
60 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
61 template <typename ErrorMessageT = Aws::String>
62 void SetErrorMessage(ErrorMessageT&& value) {
63 m_errorMessageHasBeenSet = true;
64 m_errorMessage = std::forward<ErrorMessageT>(value);
65 }
66 template <typename ErrorMessageT = Aws::String>
67 IntegrationError& WithErrorMessage(ErrorMessageT&& value) {
68 SetErrorMessage(std::forward<ErrorMessageT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_errorCode;
74
75 Aws::String m_errorMessage;
76 bool m_errorCodeHasBeenSet = false;
77 bool m_errorMessageHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace RDS
82} // namespace Aws
const Aws::String & GetErrorMessage() const
void SetErrorMessage(ErrorMessageT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API IntegrationError(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetErrorCode(ErrorCodeT &&value)
const Aws::String & GetErrorCode() const
AWS_RDS_API IntegrationError()=default
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_RDS_API IntegrationError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IntegrationError & WithErrorCode(ErrorCodeT &&value)
IntegrationError & WithErrorMessage(ErrorMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream