AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
UpdateClusterSdkResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/ClusterNetworkSettings.h>
12#include <aws/medialive/model/ClusterState.h>
13#include <aws/medialive/model/ClusterType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace MediaLive {
27namespace Model {
34 public:
35 AWS_MEDIALIVE_API UpdateClusterSdkResult() = default;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::Vector<Aws::String>& GetChannelIds() const { return m_channelIds; }
64 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
65 void SetChannelIds(ChannelIdsT&& value) {
66 m_channelIdsHasBeenSet = true;
67 m_channelIds = std::forward<ChannelIdsT>(value);
68 }
69 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
70 UpdateClusterSdkResult& WithChannelIds(ChannelIdsT&& value) {
71 SetChannelIds(std::forward<ChannelIdsT>(value));
72 return *this;
73 }
74 template <typename ChannelIdsT = Aws::String>
75 UpdateClusterSdkResult& AddChannelIds(ChannelIdsT&& value) {
76 m_channelIdsHasBeenSet = true;
77 m_channelIds.emplace_back(std::forward<ChannelIdsT>(value));
78 return *this;
79 }
81
83
86 inline ClusterType GetClusterType() const { return m_clusterType; }
87 inline void SetClusterType(ClusterType value) {
88 m_clusterTypeHasBeenSet = true;
89 m_clusterType = value;
90 }
92 SetClusterType(value);
93 return *this;
94 }
96
98
101 inline const Aws::String& GetId() const { return m_id; }
102 template <typename IdT = Aws::String>
103 void SetId(IdT&& value) {
104 m_idHasBeenSet = true;
105 m_id = std::forward<IdT>(value);
106 }
107 template <typename IdT = Aws::String>
109 SetId(std::forward<IdT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetName() const { return m_name; }
119 template <typename NameT = Aws::String>
120 void SetName(NameT&& value) {
121 m_nameHasBeenSet = true;
122 m_name = std::forward<NameT>(value);
123 }
124 template <typename NameT = Aws::String>
126 SetName(std::forward<NameT>(value));
127 return *this;
128 }
130
132
136 inline const ClusterNetworkSettings& GetNetworkSettings() const { return m_networkSettings; }
137 template <typename NetworkSettingsT = ClusterNetworkSettings>
138 void SetNetworkSettings(NetworkSettingsT&& value) {
139 m_networkSettingsHasBeenSet = true;
140 m_networkSettings = std::forward<NetworkSettingsT>(value);
141 }
142 template <typename NetworkSettingsT = ClusterNetworkSettings>
143 UpdateClusterSdkResult& WithNetworkSettings(NetworkSettingsT&& value) {
144 SetNetworkSettings(std::forward<NetworkSettingsT>(value));
145 return *this;
146 }
148
150
153 inline ClusterState GetState() const { return m_state; }
154 inline void SetState(ClusterState value) {
155 m_stateHasBeenSet = true;
156 m_state = value;
157 }
159 SetState(value);
160 return *this;
161 }
163
165
166 inline const Aws::String& GetRequestId() const { return m_requestId; }
167 template <typename RequestIdT = Aws::String>
168 void SetRequestId(RequestIdT&& value) {
169 m_requestIdHasBeenSet = true;
170 m_requestId = std::forward<RequestIdT>(value);
171 }
172 template <typename RequestIdT = Aws::String>
174 SetRequestId(std::forward<RequestIdT>(value));
175 return *this;
176 }
178 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
179
180 private:
181 Aws::String m_arn;
182
183 Aws::Vector<Aws::String> m_channelIds;
184
185 ClusterType m_clusterType{ClusterType::NOT_SET};
186
187 Aws::String m_id;
188
189 Aws::String m_name;
190
191 ClusterNetworkSettings m_networkSettings;
192
194
195 Aws::String m_requestId;
196 Aws::Http::HttpResponseCode m_HttpResponseCode;
197 bool m_arnHasBeenSet = false;
198 bool m_channelIdsHasBeenSet = false;
199 bool m_clusterTypeHasBeenSet = false;
200 bool m_idHasBeenSet = false;
201 bool m_nameHasBeenSet = false;
202 bool m_networkSettingsHasBeenSet = false;
203 bool m_stateHasBeenSet = false;
204 bool m_requestIdHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace MediaLive
209} // namespace Aws
UpdateClusterSdkResult & WithChannelIds(ChannelIdsT &&value)
AWS_MEDIALIVE_API UpdateClusterSdkResult()=default
UpdateClusterSdkResult & WithArn(ArnT &&value)
const ClusterNetworkSettings & GetNetworkSettings() const
UpdateClusterSdkResult & WithState(ClusterState value)
AWS_MEDIALIVE_API UpdateClusterSdkResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateClusterSdkResult & WithNetworkSettings(NetworkSettingsT &&value)
AWS_MEDIALIVE_API UpdateClusterSdkResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateClusterSdkResult & WithId(IdT &&value)
UpdateClusterSdkResult & WithClusterType(ClusterType value)
const Aws::Vector< Aws::String > & GetChannelIds() const
UpdateClusterSdkResult & AddChannelIds(ChannelIdsT &&value)
UpdateClusterSdkResult & WithName(NameT &&value)
UpdateClusterSdkResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue