AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
IntegrationError.h
1
6#pragma once
7#include <aws/redshift/Redshift_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 Redshift
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_REDSHIFT_API IntegrationError() = default;
35 AWS_REDSHIFT_API IntegrationError(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_REDSHIFT_API IntegrationError& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
47 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
48 template<typename ErrorCodeT = Aws::String>
49 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
50 template<typename ErrorCodeT = Aws::String>
51 IntegrationError& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
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) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
62 template<typename ErrorMessageT = Aws::String>
63 IntegrationError& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
65 private:
66
67 Aws::String m_errorCode;
68 bool m_errorCodeHasBeenSet = false;
69
70 Aws::String m_errorMessage;
71 bool m_errorMessageHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Redshift
76} // 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