AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InboundIntegration.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 <aws/redshift/model/ZeroETLIntegrationStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/redshift/model/IntegrationError.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace Redshift
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_REDSHIFT_API InboundIntegration() = default;
39 AWS_REDSHIFT_API InboundIntegration(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_REDSHIFT_API InboundIntegration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetIntegrationArn() const { return m_integrationArn; }
51 inline bool IntegrationArnHasBeenSet() const { return m_integrationArnHasBeenSet; }
52 template<typename IntegrationArnT = Aws::String>
53 void SetIntegrationArn(IntegrationArnT&& value) { m_integrationArnHasBeenSet = true; m_integrationArn = std::forward<IntegrationArnT>(value); }
54 template<typename IntegrationArnT = Aws::String>
55 InboundIntegration& WithIntegrationArn(IntegrationArnT&& value) { SetIntegrationArn(std::forward<IntegrationArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
63 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
64 template<typename SourceArnT = Aws::String>
65 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
66 template<typename SourceArnT = Aws::String>
67 InboundIntegration& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
75 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
76 template<typename TargetArnT = Aws::String>
77 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
78 template<typename TargetArnT = Aws::String>
79 InboundIntegration& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
81
83
86 inline ZeroETLIntegrationStatus GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(ZeroETLIntegrationStatus value) { m_statusHasBeenSet = true; m_status = value; }
89 inline InboundIntegration& WithStatus(ZeroETLIntegrationStatus value) { SetStatus(value); return *this;}
91
93
97 inline const Aws::Vector<IntegrationError>& GetErrors() const { return m_errors; }
98 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
99 template<typename ErrorsT = Aws::Vector<IntegrationError>>
100 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
101 template<typename ErrorsT = Aws::Vector<IntegrationError>>
102 InboundIntegration& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
103 template<typename ErrorsT = IntegrationError>
104 InboundIntegration& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
106
108
111 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
112 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
113 template<typename CreateTimeT = Aws::Utils::DateTime>
114 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
115 template<typename CreateTimeT = Aws::Utils::DateTime>
116 InboundIntegration& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
118 private:
119
120 Aws::String m_integrationArn;
121 bool m_integrationArnHasBeenSet = false;
122
123 Aws::String m_sourceArn;
124 bool m_sourceArnHasBeenSet = false;
125
126 Aws::String m_targetArn;
127 bool m_targetArnHasBeenSet = false;
128
130 bool m_statusHasBeenSet = false;
131
133 bool m_errorsHasBeenSet = false;
134
135 Aws::Utils::DateTime m_createTime{};
136 bool m_createTimeHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Redshift
141} // namespace Aws
InboundIntegration & WithSourceArn(SourceArnT &&value)
InboundIntegration & WithIntegrationArn(IntegrationArnT &&value)
InboundIntegration & WithErrors(ErrorsT &&value)
const Aws::Vector< IntegrationError > & GetErrors() const
AWS_REDSHIFT_API InboundIntegration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetIntegrationArn() const
void SetIntegrationArn(IntegrationArnT &&value)
InboundIntegration & WithTargetArn(TargetArnT &&value)
AWS_REDSHIFT_API InboundIntegration()=default
const Aws::Utils::DateTime & GetCreateTime() const
ZeroETLIntegrationStatus GetStatus() const
void SetStatus(ZeroETLIntegrationStatus value)
InboundIntegration & WithStatus(ZeroETLIntegrationStatus value)
InboundIntegration & AddErrors(ErrorsT &&value)
InboundIntegration & WithCreateTime(CreateTimeT &&value)
AWS_REDSHIFT_API InboundIntegration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream