AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
49 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
50 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
51 inline IntegrationError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
52 inline IntegrationError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
53 inline IntegrationError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
55
57
60 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
61 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
62 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
63 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
64 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
65 inline IntegrationError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
66 inline IntegrationError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
67 inline IntegrationError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
69 private:
70
71 Aws::String m_errorCode;
72 bool m_errorCodeHasBeenSet = false;
73
74 Aws::String m_errorMessage;
75 bool m_errorMessageHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Redshift
80} // namespace Aws
void SetErrorCode(Aws::String &&value)
IntegrationError & WithErrorCode(const char *value)
const Aws::String & GetErrorCode() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetErrorMessage() const
void SetErrorCode(const Aws::String &value)
IntegrationError & WithErrorMessage(Aws::String &&value)
IntegrationError & WithErrorMessage(const char *value)
AWS_REDSHIFT_API IntegrationError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API IntegrationError(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetErrorMessage(Aws::String &&value)
IntegrationError & WithErrorMessage(const Aws::String &value)
IntegrationError & WithErrorCode(const Aws::String &value)
void SetErrorMessage(const Aws::String &value)
IntegrationError & WithErrorCode(Aws::String &&value)
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