AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9#include <aws/medialive/model/Channel.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace MediaLive {
23namespace Model {
30 public:
31 AWS_MEDIALIVE_API CreateChannelResult() = default;
34
36
37 inline const Channel& GetChannel() const { return m_channel; }
38 template <typename ChannelT = Channel>
39 void SetChannel(ChannelT&& value) {
40 m_channelHasBeenSet = true;
41 m_channel = std::forward<ChannelT>(value);
42 }
43 template <typename ChannelT = Channel>
44 CreateChannelResult& WithChannel(ChannelT&& value) {
45 SetChannel(std::forward<ChannelT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetRequestId() const { return m_requestId; }
53 template <typename RequestIdT = Aws::String>
54 void SetRequestId(RequestIdT&& value) {
55 m_requestIdHasBeenSet = true;
56 m_requestId = std::forward<RequestIdT>(value);
57 }
58 template <typename RequestIdT = Aws::String>
59 CreateChannelResult& WithRequestId(RequestIdT&& value) {
60 SetRequestId(std::forward<RequestIdT>(value));
61 return *this;
62 }
64 private:
65 Channel m_channel;
66
67 Aws::String m_requestId;
68 bool m_channelHasBeenSet = false;
69 bool m_requestIdHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace MediaLive
74} // namespace Aws
AWS_MEDIALIVE_API CreateChannelResult()=default
AWS_MEDIALIVE_API CreateChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateChannelResult & WithRequestId(RequestIdT &&value)
CreateChannelResult & WithChannel(ChannelT &&value)
AWS_MEDIALIVE_API CreateChannelResult(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