AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ivs/IVS_EXPORTS.h>
9#include <aws/ivs/model/Channel.h>
10#include <aws/ivs/model/StreamKey.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace IVS {
24namespace Model {
26 public:
27 AWS_IVS_API CreateChannelResult() = default;
30
32
35 inline const Channel& GetChannel() const { return m_channel; }
36 template <typename ChannelT = Channel>
37 void SetChannel(ChannelT&& value) {
38 m_channelHasBeenSet = true;
39 m_channel = std::forward<ChannelT>(value);
40 }
41 template <typename ChannelT = Channel>
42 CreateChannelResult& WithChannel(ChannelT&& value) {
43 SetChannel(std::forward<ChannelT>(value));
44 return *this;
45 }
47
49
52 inline const StreamKey& GetStreamKey() const { return m_streamKey; }
53 template <typename StreamKeyT = StreamKey>
54 void SetStreamKey(StreamKeyT&& value) {
55 m_streamKeyHasBeenSet = true;
56 m_streamKey = std::forward<StreamKeyT>(value);
57 }
58 template <typename StreamKeyT = StreamKey>
59 CreateChannelResult& WithStreamKey(StreamKeyT&& value) {
60 SetStreamKey(std::forward<StreamKeyT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template <typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) {
70 m_requestIdHasBeenSet = true;
71 m_requestId = std::forward<RequestIdT>(value);
72 }
73 template <typename RequestIdT = Aws::String>
74 CreateChannelResult& WithRequestId(RequestIdT&& value) {
75 SetRequestId(std::forward<RequestIdT>(value));
76 return *this;
77 }
79 private:
80 Channel m_channel;
81
82 StreamKey m_streamKey;
83
84 Aws::String m_requestId;
85 bool m_channelHasBeenSet = false;
86 bool m_streamKeyHasBeenSet = false;
87 bool m_requestIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace IVS
92} // namespace Aws
CreateChannelResult & WithStreamKey(StreamKeyT &&value)
const Aws::String & GetRequestId() const
AWS_IVS_API CreateChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateChannelResult & WithRequestId(RequestIdT &&value)
AWS_IVS_API CreateChannelResult()=default
CreateChannelResult & WithChannel(ChannelT &&value)
AWS_IVS_API CreateChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue