AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/ivs/model/Channel.h>
9#include <aws/ivs/model/StreamKey.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace IVS
26{
27namespace Model
28{
30 {
31 public:
32 AWS_IVS_API CreateChannelResult() = default;
35
36
38
41 inline const Channel& GetChannel() const { return m_channel; }
42 template<typename ChannelT = Channel>
43 void SetChannel(ChannelT&& value) { m_channelHasBeenSet = true; m_channel = std::forward<ChannelT>(value); }
44 template<typename ChannelT = Channel>
45 CreateChannelResult& WithChannel(ChannelT&& value) { SetChannel(std::forward<ChannelT>(value)); return *this;}
47
49
52 inline const StreamKey& GetStreamKey() const { return m_streamKey; }
53 template<typename StreamKeyT = StreamKey>
54 void SetStreamKey(StreamKeyT&& value) { m_streamKeyHasBeenSet = true; m_streamKey = std::forward<StreamKeyT>(value); }
55 template<typename StreamKeyT = StreamKey>
56 CreateChannelResult& WithStreamKey(StreamKeyT&& value) { SetStreamKey(std::forward<StreamKeyT>(value)); return *this;}
58
60
61 inline const Aws::String& GetRequestId() const { return m_requestId; }
62 template<typename RequestIdT = Aws::String>
63 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
64 template<typename RequestIdT = Aws::String>
65 CreateChannelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
67 private:
68
69 Channel m_channel;
70 bool m_channelHasBeenSet = false;
71
72 StreamKey m_streamKey;
73 bool m_streamKeyHasBeenSet = false;
74
75 Aws::String m_requestId;
76 bool m_requestIdHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace IVS
81} // 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