AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs/IVS_EXPORTS.h>
10#include <aws/ivs/model/Channel.h>
11#include <aws/ivs/model/StreamKey.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 CreateChannelResult() = default;
31
33
36 inline const Channel& GetChannel() const { return m_channel; }
37 template <typename ChannelT = Channel>
38 void SetChannel(ChannelT&& value) {
39 m_channelHasBeenSet = true;
40 m_channel = std::forward<ChannelT>(value);
41 }
42 template <typename ChannelT = Channel>
43 CreateChannelResult& WithChannel(ChannelT&& value) {
44 SetChannel(std::forward<ChannelT>(value));
45 return *this;
46 }
48
50
53 inline const StreamKey& GetStreamKey() const { return m_streamKey; }
54 template <typename StreamKeyT = StreamKey>
55 void SetStreamKey(StreamKeyT&& value) {
56 m_streamKeyHasBeenSet = true;
57 m_streamKey = std::forward<StreamKeyT>(value);
58 }
59 template <typename StreamKeyT = StreamKey>
60 CreateChannelResult& WithStreamKey(StreamKeyT&& value) {
61 SetStreamKey(std::forward<StreamKeyT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template <typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) {
71 m_requestIdHasBeenSet = true;
72 m_requestId = std::forward<RequestIdT>(value);
73 }
74 template <typename RequestIdT = Aws::String>
75 CreateChannelResult& WithRequestId(RequestIdT&& value) {
76 SetRequestId(std::forward<RequestIdT>(value));
77 return *this;
78 }
80 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
81
82 private:
83 Channel m_channel;
84
85 StreamKey m_streamKey;
86
87 Aws::String m_requestId;
88 Aws::Http::HttpResponseCode m_HttpResponseCode;
89 bool m_channelHasBeenSet = false;
90 bool m_streamKeyHasBeenSet = false;
91 bool m_requestIdHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace IVS
96} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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