AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
BatchGetChannelResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ivs/IVS_EXPORTS.h>
10#include <aws/ivs/model/BatchError.h>
11#include <aws/ivs/model/Channel.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace IVS {
25namespace Model {
27 public:
28 AWS_IVS_API BatchGetChannelResult() = default;
31
33
36 inline const Aws::Vector<Channel>& GetChannels() const { return m_channels; }
37 template <typename ChannelsT = Aws::Vector<Channel>>
38 void SetChannels(ChannelsT&& value) {
39 m_channelsHasBeenSet = true;
40 m_channels = std::forward<ChannelsT>(value);
41 }
42 template <typename ChannelsT = Aws::Vector<Channel>>
43 BatchGetChannelResult& WithChannels(ChannelsT&& value) {
44 SetChannels(std::forward<ChannelsT>(value));
45 return *this;
46 }
47 template <typename ChannelsT = Channel>
48 BatchGetChannelResult& AddChannels(ChannelsT&& value) {
49 m_channelsHasBeenSet = true;
50 m_channels.emplace_back(std::forward<ChannelsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<BatchError>& GetErrors() const { return m_errors; }
60 template <typename ErrorsT = Aws::Vector<BatchError>>
61 void SetErrors(ErrorsT&& value) {
62 m_errorsHasBeenSet = true;
63 m_errors = std::forward<ErrorsT>(value);
64 }
65 template <typename ErrorsT = Aws::Vector<BatchError>>
67 SetErrors(std::forward<ErrorsT>(value));
68 return *this;
69 }
70 template <typename ErrorsT = BatchError>
71 BatchGetChannelResult& AddErrors(ErrorsT&& value) {
72 m_errorsHasBeenSet = true;
73 m_errors.emplace_back(std::forward<ErrorsT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 template <typename RequestIdT = Aws::String>
82 void SetRequestId(RequestIdT&& value) {
83 m_requestIdHasBeenSet = true;
84 m_requestId = std::forward<RequestIdT>(value);
85 }
86 template <typename RequestIdT = Aws::String>
87 BatchGetChannelResult& WithRequestId(RequestIdT&& value) {
88 SetRequestId(std::forward<RequestIdT>(value));
89 return *this;
90 }
92 private:
93 Aws::Vector<Channel> m_channels;
94
96
97 Aws::String m_requestId;
98 bool m_channelsHasBeenSet = false;
99 bool m_errorsHasBeenSet = false;
100 bool m_requestIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace IVS
105} // namespace Aws
BatchGetChannelResult & WithChannels(ChannelsT &&value)
BatchGetChannelResult & WithErrors(ErrorsT &&value)
BatchGetChannelResult & AddErrors(ErrorsT &&value)
const Aws::Vector< BatchError > & GetErrors() const
AWS_IVS_API BatchGetChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IVS_API BatchGetChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Channel > & GetChannels() const
BatchGetChannelResult & WithRequestId(RequestIdT &&value)
BatchGetChannelResult & AddChannels(ChannelsT &&value)
AWS_IVS_API BatchGetChannelResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue