AWS SDK for C++

AWS SDK for C++ Version 1.11.796

Loading...
Searching...
No Matches
BatchGetChannelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ivs/IVS_EXPORTS.h>
11#include <aws/ivs/model/BatchError.h>
12#include <aws/ivs/model/Channel.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 IVS {
26namespace Model {
28 public:
29 AWS_IVS_API BatchGetChannelResult() = default;
32
34
39 inline const Aws::String& GetAccessControlAllowOrigin() const { return m_accessControlAllowOrigin; }
40 template <typename AccessControlAllowOriginT = Aws::String>
41 void SetAccessControlAllowOrigin(AccessControlAllowOriginT&& value) {
42 m_accessControlAllowOriginHasBeenSet = true;
43 m_accessControlAllowOrigin = std::forward<AccessControlAllowOriginT>(value);
44 }
45 template <typename AccessControlAllowOriginT = Aws::String>
46 BatchGetChannelResult& WithAccessControlAllowOrigin(AccessControlAllowOriginT&& value) {
47 SetAccessControlAllowOrigin(std::forward<AccessControlAllowOriginT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetAccessControlExposeHeaders() const { return m_accessControlExposeHeaders; }
59 template <typename AccessControlExposeHeadersT = Aws::String>
60 void SetAccessControlExposeHeaders(AccessControlExposeHeadersT&& value) {
61 m_accessControlExposeHeadersHasBeenSet = true;
62 m_accessControlExposeHeaders = std::forward<AccessControlExposeHeadersT>(value);
63 }
64 template <typename AccessControlExposeHeadersT = Aws::String>
65 BatchGetChannelResult& WithAccessControlExposeHeaders(AccessControlExposeHeadersT&& value) {
66 SetAccessControlExposeHeaders(std::forward<AccessControlExposeHeadersT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
78 template <typename CacheControlT = Aws::String>
79 void SetCacheControl(CacheControlT&& value) {
80 m_cacheControlHasBeenSet = true;
81 m_cacheControl = std::forward<CacheControlT>(value);
82 }
83 template <typename CacheControlT = Aws::String>
84 BatchGetChannelResult& WithCacheControl(CacheControlT&& value) {
85 SetCacheControl(std::forward<CacheControlT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetContentSecurityPolicy() const { return m_contentSecurityPolicy; }
97 template <typename ContentSecurityPolicyT = Aws::String>
98 void SetContentSecurityPolicy(ContentSecurityPolicyT&& value) {
99 m_contentSecurityPolicyHasBeenSet = true;
100 m_contentSecurityPolicy = std::forward<ContentSecurityPolicyT>(value);
101 }
102 template <typename ContentSecurityPolicyT = Aws::String>
103 BatchGetChannelResult& WithContentSecurityPolicy(ContentSecurityPolicyT&& value) {
104 SetContentSecurityPolicy(std::forward<ContentSecurityPolicyT>(value));
105 return *this;
106 }
108
110
115 inline const Aws::String& GetStrictTransportSecurity() const { return m_strictTransportSecurity; }
116 template <typename StrictTransportSecurityT = Aws::String>
117 void SetStrictTransportSecurity(StrictTransportSecurityT&& value) {
118 m_strictTransportSecurityHasBeenSet = true;
119 m_strictTransportSecurity = std::forward<StrictTransportSecurityT>(value);
120 }
121 template <typename StrictTransportSecurityT = Aws::String>
122 BatchGetChannelResult& WithStrictTransportSecurity(StrictTransportSecurityT&& value) {
123 SetStrictTransportSecurity(std::forward<StrictTransportSecurityT>(value));
124 return *this;
125 }
127
129
134 inline const Aws::String& GetXContentTypeOptions() const { return m_xContentTypeOptions; }
135 template <typename XContentTypeOptionsT = Aws::String>
136 void SetXContentTypeOptions(XContentTypeOptionsT&& value) {
137 m_xContentTypeOptionsHasBeenSet = true;
138 m_xContentTypeOptions = std::forward<XContentTypeOptionsT>(value);
139 }
140 template <typename XContentTypeOptionsT = Aws::String>
141 BatchGetChannelResult& WithXContentTypeOptions(XContentTypeOptionsT&& value) {
142 SetXContentTypeOptions(std::forward<XContentTypeOptionsT>(value));
143 return *this;
144 }
146
148
153 inline const Aws::String& GetXFrameOptions() const { return m_xFrameOptions; }
154 template <typename XFrameOptionsT = Aws::String>
155 void SetXFrameOptions(XFrameOptionsT&& value) {
156 m_xFrameOptionsHasBeenSet = true;
157 m_xFrameOptions = std::forward<XFrameOptionsT>(value);
158 }
159 template <typename XFrameOptionsT = Aws::String>
160 BatchGetChannelResult& WithXFrameOptions(XFrameOptionsT&& value) {
161 SetXFrameOptions(std::forward<XFrameOptionsT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Vector<Channel>& GetChannels() const { return m_channels; }
171 template <typename ChannelsT = Aws::Vector<Channel>>
172 void SetChannels(ChannelsT&& value) {
173 m_channelsHasBeenSet = true;
174 m_channels = std::forward<ChannelsT>(value);
175 }
176 template <typename ChannelsT = Aws::Vector<Channel>>
178 SetChannels(std::forward<ChannelsT>(value));
179 return *this;
180 }
181 template <typename ChannelsT = Channel>
182 BatchGetChannelResult& AddChannels(ChannelsT&& value) {
183 m_channelsHasBeenSet = true;
184 m_channels.emplace_back(std::forward<ChannelsT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Vector<BatchError>& GetErrors() const { return m_errors; }
194 template <typename ErrorsT = Aws::Vector<BatchError>>
195 void SetErrors(ErrorsT&& value) {
196 m_errorsHasBeenSet = true;
197 m_errors = std::forward<ErrorsT>(value);
198 }
199 template <typename ErrorsT = Aws::Vector<BatchError>>
201 SetErrors(std::forward<ErrorsT>(value));
202 return *this;
203 }
204 template <typename ErrorsT = BatchError>
206 m_errorsHasBeenSet = true;
207 m_errors.emplace_back(std::forward<ErrorsT>(value));
208 return *this;
209 }
211
213
214 inline const Aws::String& GetRequestId() const { return m_requestId; }
215 template <typename RequestIdT = Aws::String>
216 void SetRequestId(RequestIdT&& value) {
217 m_requestIdHasBeenSet = true;
218 m_requestId = std::forward<RequestIdT>(value);
219 }
220 template <typename RequestIdT = Aws::String>
222 SetRequestId(std::forward<RequestIdT>(value));
223 return *this;
224 }
226 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
227
228 private:
229 Aws::String m_accessControlAllowOrigin;
230
231 Aws::String m_accessControlExposeHeaders;
232
233 Aws::String m_cacheControl;
234
235 Aws::String m_contentSecurityPolicy;
236
237 Aws::String m_strictTransportSecurity;
238
239 Aws::String m_xContentTypeOptions;
240
241 Aws::String m_xFrameOptions;
242
243 Aws::Vector<Channel> m_channels;
244
246
247 Aws::String m_requestId;
248 Aws::Http::HttpResponseCode m_HttpResponseCode;
249 bool m_accessControlAllowOriginHasBeenSet = false;
250 bool m_accessControlExposeHeadersHasBeenSet = false;
251 bool m_cacheControlHasBeenSet = false;
252 bool m_contentSecurityPolicyHasBeenSet = false;
253 bool m_strictTransportSecurityHasBeenSet = false;
254 bool m_xContentTypeOptionsHasBeenSet = false;
255 bool m_xFrameOptionsHasBeenSet = false;
256 bool m_channelsHasBeenSet = false;
257 bool m_errorsHasBeenSet = false;
258 bool m_requestIdHasBeenSet = false;
259};
260
261} // namespace Model
262} // namespace IVS
263} // namespace Aws
BatchGetChannelResult & WithXFrameOptions(XFrameOptionsT &&value)
const Aws::String & GetCacheControl() const
BatchGetChannelResult & WithXContentTypeOptions(XContentTypeOptionsT &&value)
BatchGetChannelResult & WithChannels(ChannelsT &&value)
BatchGetChannelResult & WithErrors(ErrorsT &&value)
const Aws::String & GetContentSecurityPolicy() const
const Aws::String & GetAccessControlExposeHeaders() const
BatchGetChannelResult & AddErrors(ErrorsT &&value)
BatchGetChannelResult & WithStrictTransportSecurity(StrictTransportSecurityT &&value)
const Aws::Vector< BatchError > & GetErrors() const
void SetStrictTransportSecurity(StrictTransportSecurityT &&value)
const Aws::String & GetStrictTransportSecurity() const
AWS_IVS_API BatchGetChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetChannelResult & WithContentSecurityPolicy(ContentSecurityPolicyT &&value)
void SetCacheControl(CacheControlT &&value)
AWS_IVS_API BatchGetChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Channel > & GetChannels() const
BatchGetChannelResult & WithCacheControl(CacheControlT &&value)
const Aws::String & GetXContentTypeOptions() const
void SetXContentTypeOptions(XContentTypeOptionsT &&value)
BatchGetChannelResult & WithRequestId(RequestIdT &&value)
BatchGetChannelResult & WithAccessControlExposeHeaders(AccessControlExposeHeadersT &&value)
void SetAccessControlAllowOrigin(AccessControlAllowOriginT &&value)
BatchGetChannelResult & AddChannels(ChannelsT &&value)
const Aws::String & GetAccessControlAllowOrigin() const
AWS_IVS_API BatchGetChannelResult()=default
void SetAccessControlExposeHeaders(AccessControlExposeHeadersT &&value)
void SetXFrameOptions(XFrameOptionsT &&value)
void SetContentSecurityPolicy(ContentSecurityPolicyT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
BatchGetChannelResult & WithAccessControlAllowOrigin(AccessControlAllowOriginT &&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