AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Redshift {
20namespace Model {
21
28 public:
29 AWS_REDSHIFT_API IntegrationError() = default;
30 AWS_REDSHIFT_API IntegrationError(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_REDSHIFT_API IntegrationError& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
41 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
42 template <typename ErrorCodeT = Aws::String>
43 void SetErrorCode(ErrorCodeT&& value) {
44 m_errorCodeHasBeenSet = true;
45 m_errorCode = std::forward<ErrorCodeT>(value);
46 }
47 template <typename ErrorCodeT = Aws::String>
48 IntegrationError& WithErrorCode(ErrorCodeT&& value) {
49 SetErrorCode(std::forward<ErrorCodeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
59 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
60 template <typename ErrorMessageT = Aws::String>
61 void SetErrorMessage(ErrorMessageT&& value) {
62 m_errorMessageHasBeenSet = true;
63 m_errorMessage = std::forward<ErrorMessageT>(value);
64 }
65 template <typename ErrorMessageT = Aws::String>
66 IntegrationError& WithErrorMessage(ErrorMessageT&& value) {
67 SetErrorMessage(std::forward<ErrorMessageT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_errorCode;
73
74 Aws::String m_errorMessage;
75 bool m_errorCodeHasBeenSet = false;
76 bool m_errorMessageHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Redshift
81} // namespace Aws
IntegrationError & WithErrorCode(ErrorCodeT &&value)
const Aws::String & GetErrorCode() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetErrorMessage(ErrorMessageT &&value)
const Aws::String & GetErrorMessage() const
AWS_REDSHIFT_API IntegrationError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API IntegrationError(const Aws::Utils::Xml::XmlNode &xmlNode)
IntegrationError & WithErrorMessage(ErrorMessageT &&value)
AWS_REDSHIFT_API IntegrationError()=default
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream