AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
DescribeClusterSdkResult.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 DescribeClusterSdkResult() = default;
38
40
44 inline const Aws::String& GetArn() const { return m_arn; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::Vector<Aws::String>& GetChannelIds() const { return m_channelIds; }
60 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
61 void SetChannelIds(ChannelIdsT&& value) {
62 m_channelIdsHasBeenSet = true;
63 m_channelIds = std::forward<ChannelIdsT>(value);
64 }
65 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
67 SetChannelIds(std::forward<ChannelIdsT>(value));
68 return *this;
69 }
70 template <typename ChannelIdsT = Aws::String>
72 m_channelIdsHasBeenSet = true;
73 m_channelIds.emplace_back(std::forward<ChannelIdsT>(value));
74 return *this;
75 }
77
79
82 inline ClusterType GetClusterType() const { return m_clusterType; }
83 inline void SetClusterType(ClusterType value) {
84 m_clusterTypeHasBeenSet = true;
85 m_clusterType = value;
86 }
88 SetClusterType(value);
89 return *this;
90 }
92
94
98 inline const Aws::String& GetId() const { return m_id; }
99 template <typename IdT = Aws::String>
100 void SetId(IdT&& value) {
101 m_idHasBeenSet = true;
102 m_id = std::forward<IdT>(value);
103 }
104 template <typename IdT = Aws::String>
106 SetId(std::forward<IdT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetInstanceRoleArn() const { return m_instanceRoleArn; }
118 template <typename InstanceRoleArnT = Aws::String>
119 void SetInstanceRoleArn(InstanceRoleArnT&& value) {
120 m_instanceRoleArnHasBeenSet = true;
121 m_instanceRoleArn = std::forward<InstanceRoleArnT>(value);
122 }
123 template <typename InstanceRoleArnT = Aws::String>
125 SetInstanceRoleArn(std::forward<InstanceRoleArnT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetName() const { return m_name; }
135 template <typename NameT = Aws::String>
136 void SetName(NameT&& value) {
137 m_nameHasBeenSet = true;
138 m_name = std::forward<NameT>(value);
139 }
140 template <typename NameT = Aws::String>
142 SetName(std::forward<NameT>(value));
143 return *this;
144 }
146
148
152 inline const ClusterNetworkSettings& GetNetworkSettings() const { return m_networkSettings; }
153 template <typename NetworkSettingsT = ClusterNetworkSettings>
154 void SetNetworkSettings(NetworkSettingsT&& value) {
155 m_networkSettingsHasBeenSet = true;
156 m_networkSettings = std::forward<NetworkSettingsT>(value);
157 }
158 template <typename NetworkSettingsT = ClusterNetworkSettings>
160 SetNetworkSettings(std::forward<NetworkSettingsT>(value));
161 return *this;
162 }
164
166
169 inline ClusterState GetState() const { return m_state; }
170 inline void SetState(ClusterState value) {
171 m_stateHasBeenSet = true;
172 m_state = value;
173 }
175 SetState(value);
176 return *this;
177 }
179
181
182 inline const Aws::String& GetRequestId() const { return m_requestId; }
183 template <typename RequestIdT = Aws::String>
184 void SetRequestId(RequestIdT&& value) {
185 m_requestIdHasBeenSet = true;
186 m_requestId = std::forward<RequestIdT>(value);
187 }
188 template <typename RequestIdT = Aws::String>
190 SetRequestId(std::forward<RequestIdT>(value));
191 return *this;
192 }
194 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
195
196 private:
197 Aws::String m_arn;
198
199 Aws::Vector<Aws::String> m_channelIds;
200
201 ClusterType m_clusterType{ClusterType::NOT_SET};
202
203 Aws::String m_id;
204
205 Aws::String m_instanceRoleArn;
206
207 Aws::String m_name;
208
209 ClusterNetworkSettings m_networkSettings;
210
212
213 Aws::String m_requestId;
214 Aws::Http::HttpResponseCode m_HttpResponseCode;
215 bool m_arnHasBeenSet = false;
216 bool m_channelIdsHasBeenSet = false;
217 bool m_clusterTypeHasBeenSet = false;
218 bool m_idHasBeenSet = false;
219 bool m_instanceRoleArnHasBeenSet = false;
220 bool m_nameHasBeenSet = false;
221 bool m_networkSettingsHasBeenSet = false;
222 bool m_stateHasBeenSet = false;
223 bool m_requestIdHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace MediaLive
228} // namespace Aws
DescribeClusterSdkResult & WithState(ClusterState value)
AWS_MEDIALIVE_API DescribeClusterSdkResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ClusterNetworkSettings & GetNetworkSettings() const
DescribeClusterSdkResult & WithId(IdT &&value)
DescribeClusterSdkResult & WithChannelIds(ChannelIdsT &&value)
AWS_MEDIALIVE_API DescribeClusterSdkResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeClusterSdkResult & WithArn(ArnT &&value)
DescribeClusterSdkResult & AddChannelIds(ChannelIdsT &&value)
DescribeClusterSdkResult & WithName(NameT &&value)
DescribeClusterSdkResult & WithNetworkSettings(NetworkSettingsT &&value)
DescribeClusterSdkResult & WithRequestId(RequestIdT &&value)
AWS_MEDIALIVE_API DescribeClusterSdkResult()=default
DescribeClusterSdkResult & WithClusterType(ClusterType value)
DescribeClusterSdkResult & WithInstanceRoleArn(InstanceRoleArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetChannelIds() 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