AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
GetChannelResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/Destination.h>
9#include <aws/cloudtrail/model/IngestionStatus.h>
10#include <aws/cloudtrail/model/SourceConfig.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CloudTrail {
27namespace Model {
29 public:
30 AWS_CLOUDTRAIL_API GetChannelResult() = default;
33
35
38 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
39 template <typename ChannelArnT = Aws::String>
40 void SetChannelArn(ChannelArnT&& value) {
41 m_channelArnHasBeenSet = true;
42 m_channelArn = std::forward<ChannelArnT>(value);
43 }
44 template <typename ChannelArnT = Aws::String>
45 GetChannelResult& WithChannelArn(ChannelArnT&& value) {
46 SetChannelArn(std::forward<ChannelArnT>(value));
47 return *this;
48 }
50
52
59 inline const Aws::String& GetName() const { return m_name; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 GetChannelResult& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetSource() const { return m_source; }
77 template <typename SourceT = Aws::String>
78 void SetSource(SourceT&& value) {
79 m_sourceHasBeenSet = true;
80 m_source = std::forward<SourceT>(value);
81 }
82 template <typename SourceT = Aws::String>
83 GetChannelResult& WithSource(SourceT&& value) {
84 SetSource(std::forward<SourceT>(value));
85 return *this;
86 }
88
90
94 inline const SourceConfig& GetSourceConfig() const { return m_sourceConfig; }
95 template <typename SourceConfigT = SourceConfig>
96 void SetSourceConfig(SourceConfigT&& value) {
97 m_sourceConfigHasBeenSet = true;
98 m_sourceConfig = std::forward<SourceConfigT>(value);
99 }
100 template <typename SourceConfigT = SourceConfig>
101 GetChannelResult& WithSourceConfig(SourceConfigT&& value) {
102 SetSourceConfig(std::forward<SourceConfigT>(value));
103 return *this;
104 }
106
108
114 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
115 template <typename DestinationsT = Aws::Vector<Destination>>
116 void SetDestinations(DestinationsT&& value) {
117 m_destinationsHasBeenSet = true;
118 m_destinations = std::forward<DestinationsT>(value);
119 }
120 template <typename DestinationsT = Aws::Vector<Destination>>
121 GetChannelResult& WithDestinations(DestinationsT&& value) {
122 SetDestinations(std::forward<DestinationsT>(value));
123 return *this;
124 }
125 template <typename DestinationsT = Destination>
126 GetChannelResult& AddDestinations(DestinationsT&& value) {
127 m_destinationsHasBeenSet = true;
128 m_destinations.emplace_back(std::forward<DestinationsT>(value));
129 return *this;
130 }
132
134
138 inline const IngestionStatus& GetIngestionStatus() const { return m_ingestionStatus; }
139 template <typename IngestionStatusT = IngestionStatus>
140 void SetIngestionStatus(IngestionStatusT&& value) {
141 m_ingestionStatusHasBeenSet = true;
142 m_ingestionStatus = std::forward<IngestionStatusT>(value);
143 }
144 template <typename IngestionStatusT = IngestionStatus>
145 GetChannelResult& WithIngestionStatus(IngestionStatusT&& value) {
146 SetIngestionStatus(std::forward<IngestionStatusT>(value));
147 return *this;
148 }
150
152
153 inline const Aws::String& GetRequestId() const { return m_requestId; }
154 template <typename RequestIdT = Aws::String>
155 void SetRequestId(RequestIdT&& value) {
156 m_requestIdHasBeenSet = true;
157 m_requestId = std::forward<RequestIdT>(value);
158 }
159 template <typename RequestIdT = Aws::String>
160 GetChannelResult& WithRequestId(RequestIdT&& value) {
161 SetRequestId(std::forward<RequestIdT>(value));
162 return *this;
163 }
165 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
166
167 private:
168 Aws::String m_channelArn;
169
170 Aws::String m_name;
171
172 Aws::String m_source;
173
174 SourceConfig m_sourceConfig;
175
176 Aws::Vector<Destination> m_destinations;
177
178 IngestionStatus m_ingestionStatus;
179
180 Aws::String m_requestId;
181 Aws::Http::HttpResponseCode m_HttpResponseCode;
182 bool m_channelArnHasBeenSet = false;
183 bool m_nameHasBeenSet = false;
184 bool m_sourceHasBeenSet = false;
185 bool m_sourceConfigHasBeenSet = false;
186 bool m_destinationsHasBeenSet = false;
187 bool m_ingestionStatusHasBeenSet = false;
188 bool m_requestIdHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace CloudTrail
193} // namespace Aws
const SourceConfig & GetSourceConfig() const
GetChannelResult & WithName(NameT &&value)
GetChannelResult & WithRequestId(RequestIdT &&value)
void SetIngestionStatus(IngestionStatusT &&value)
const Aws::String & GetChannelArn() const
const Aws::String & GetSource() const
GetChannelResult & WithChannelArn(ChannelArnT &&value)
const IngestionStatus & GetIngestionStatus() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetChannelResult & WithDestinations(DestinationsT &&value)
GetChannelResult & WithSourceConfig(SourceConfigT &&value)
const Aws::String & GetRequestId() const
void SetDestinations(DestinationsT &&value)
void SetSourceConfig(SourceConfigT &&value)
const Aws::Vector< Destination > & GetDestinations() const
AWS_CLOUDTRAIL_API GetChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API GetChannelResult()=default
GetChannelResult & AddDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API GetChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetChannelResult & WithSource(SourceT &&value)
GetChannelResult & WithIngestionStatus(IngestionStatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue