AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CloudTrail {
26namespace Model {
28 public:
29 AWS_CLOUDTRAIL_API GetChannelResult() = default;
32
34
37 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
38 template <typename ChannelArnT = Aws::String>
39 void SetChannelArn(ChannelArnT&& value) {
40 m_channelArnHasBeenSet = true;
41 m_channelArn = std::forward<ChannelArnT>(value);
42 }
43 template <typename ChannelArnT = Aws::String>
44 GetChannelResult& WithChannelArn(ChannelArnT&& value) {
45 SetChannelArn(std::forward<ChannelArnT>(value));
46 return *this;
47 }
49
51
58 inline const Aws::String& GetName() const { return m_name; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 GetChannelResult& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetSource() const { return m_source; }
76 template <typename SourceT = Aws::String>
77 void SetSource(SourceT&& value) {
78 m_sourceHasBeenSet = true;
79 m_source = std::forward<SourceT>(value);
80 }
81 template <typename SourceT = Aws::String>
82 GetChannelResult& WithSource(SourceT&& value) {
83 SetSource(std::forward<SourceT>(value));
84 return *this;
85 }
87
89
93 inline const SourceConfig& GetSourceConfig() const { return m_sourceConfig; }
94 template <typename SourceConfigT = SourceConfig>
95 void SetSourceConfig(SourceConfigT&& value) {
96 m_sourceConfigHasBeenSet = true;
97 m_sourceConfig = std::forward<SourceConfigT>(value);
98 }
99 template <typename SourceConfigT = SourceConfig>
100 GetChannelResult& WithSourceConfig(SourceConfigT&& value) {
101 SetSourceConfig(std::forward<SourceConfigT>(value));
102 return *this;
103 }
105
107
113 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
114 template <typename DestinationsT = Aws::Vector<Destination>>
115 void SetDestinations(DestinationsT&& value) {
116 m_destinationsHasBeenSet = true;
117 m_destinations = std::forward<DestinationsT>(value);
118 }
119 template <typename DestinationsT = Aws::Vector<Destination>>
120 GetChannelResult& WithDestinations(DestinationsT&& value) {
121 SetDestinations(std::forward<DestinationsT>(value));
122 return *this;
123 }
124 template <typename DestinationsT = Destination>
125 GetChannelResult& AddDestinations(DestinationsT&& value) {
126 m_destinationsHasBeenSet = true;
127 m_destinations.emplace_back(std::forward<DestinationsT>(value));
128 return *this;
129 }
131
133
137 inline const IngestionStatus& GetIngestionStatus() const { return m_ingestionStatus; }
138 template <typename IngestionStatusT = IngestionStatus>
139 void SetIngestionStatus(IngestionStatusT&& value) {
140 m_ingestionStatusHasBeenSet = true;
141 m_ingestionStatus = std::forward<IngestionStatusT>(value);
142 }
143 template <typename IngestionStatusT = IngestionStatus>
144 GetChannelResult& WithIngestionStatus(IngestionStatusT&& value) {
145 SetIngestionStatus(std::forward<IngestionStatusT>(value));
146 return *this;
147 }
149
151
152 inline const Aws::String& GetRequestId() const { return m_requestId; }
153 template <typename RequestIdT = Aws::String>
154 void SetRequestId(RequestIdT&& value) {
155 m_requestIdHasBeenSet = true;
156 m_requestId = std::forward<RequestIdT>(value);
157 }
158 template <typename RequestIdT = Aws::String>
159 GetChannelResult& WithRequestId(RequestIdT&& value) {
160 SetRequestId(std::forward<RequestIdT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_channelArn;
166
167 Aws::String m_name;
168
169 Aws::String m_source;
170
171 SourceConfig m_sourceConfig;
172
173 Aws::Vector<Destination> m_destinations;
174
175 IngestionStatus m_ingestionStatus;
176
177 Aws::String m_requestId;
178 bool m_channelArnHasBeenSet = false;
179 bool m_nameHasBeenSet = false;
180 bool m_sourceHasBeenSet = false;
181 bool m_sourceConfigHasBeenSet = false;
182 bool m_destinationsHasBeenSet = false;
183 bool m_ingestionStatusHasBeenSet = false;
184 bool m_requestIdHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace CloudTrail
189} // 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
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