AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
CreateClusterResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/ClusterNetworkSettings.h>
11#include <aws/medialive/model/ClusterState.h>
12#include <aws/medialive/model/ClusterType.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace MediaLive {
26namespace Model {
33 public:
34 AWS_MEDIALIVE_API CreateClusterResult() = default;
37
39
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
58 inline const Aws::Vector<Aws::String>& GetChannelIds() const { return m_channelIds; }
59 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
60 void SetChannelIds(ChannelIdsT&& value) {
61 m_channelIdsHasBeenSet = true;
62 m_channelIds = std::forward<ChannelIdsT>(value);
63 }
64 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
65 CreateClusterResult& WithChannelIds(ChannelIdsT&& value) {
66 SetChannelIds(std::forward<ChannelIdsT>(value));
67 return *this;
68 }
69 template <typename ChannelIdsT = Aws::String>
70 CreateClusterResult& AddChannelIds(ChannelIdsT&& value) {
71 m_channelIdsHasBeenSet = true;
72 m_channelIds.emplace_back(std::forward<ChannelIdsT>(value));
73 return *this;
74 }
76
78
81 inline ClusterType GetClusterType() const { return m_clusterType; }
82 inline void SetClusterType(ClusterType value) {
83 m_clusterTypeHasBeenSet = true;
84 m_clusterType = value;
85 }
87 SetClusterType(value);
88 return *this;
89 }
91
93
97 inline const Aws::String& GetId() const { return m_id; }
98 template <typename IdT = Aws::String>
99 void SetId(IdT&& value) {
100 m_idHasBeenSet = true;
101 m_id = std::forward<IdT>(value);
102 }
103 template <typename IdT = Aws::String>
105 SetId(std::forward<IdT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::String& GetInstanceRoleArn() const { return m_instanceRoleArn; }
117 template <typename InstanceRoleArnT = Aws::String>
118 void SetInstanceRoleArn(InstanceRoleArnT&& value) {
119 m_instanceRoleArnHasBeenSet = true;
120 m_instanceRoleArn = std::forward<InstanceRoleArnT>(value);
121 }
122 template <typename InstanceRoleArnT = Aws::String>
123 CreateClusterResult& WithInstanceRoleArn(InstanceRoleArnT&& value) {
124 SetInstanceRoleArn(std::forward<InstanceRoleArnT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetName() const { return m_name; }
134 template <typename NameT = Aws::String>
135 void SetName(NameT&& value) {
136 m_nameHasBeenSet = true;
137 m_name = std::forward<NameT>(value);
138 }
139 template <typename NameT = Aws::String>
141 SetName(std::forward<NameT>(value));
142 return *this;
143 }
145
147
151 inline const ClusterNetworkSettings& GetNetworkSettings() const { return m_networkSettings; }
152 template <typename NetworkSettingsT = ClusterNetworkSettings>
153 void SetNetworkSettings(NetworkSettingsT&& value) {
154 m_networkSettingsHasBeenSet = true;
155 m_networkSettings = std::forward<NetworkSettingsT>(value);
156 }
157 template <typename NetworkSettingsT = ClusterNetworkSettings>
158 CreateClusterResult& WithNetworkSettings(NetworkSettingsT&& value) {
159 SetNetworkSettings(std::forward<NetworkSettingsT>(value));
160 return *this;
161 }
163
165
168 inline ClusterState GetState() const { return m_state; }
169 inline void SetState(ClusterState value) {
170 m_stateHasBeenSet = true;
171 m_state = value;
172 }
174 SetState(value);
175 return *this;
176 }
178
180
181 inline const Aws::String& GetRequestId() const { return m_requestId; }
182 template <typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) {
184 m_requestIdHasBeenSet = true;
185 m_requestId = std::forward<RequestIdT>(value);
186 }
187 template <typename RequestIdT = Aws::String>
188 CreateClusterResult& WithRequestId(RequestIdT&& value) {
189 SetRequestId(std::forward<RequestIdT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_arn;
195
196 Aws::Vector<Aws::String> m_channelIds;
197
198 ClusterType m_clusterType{ClusterType::NOT_SET};
199
200 Aws::String m_id;
201
202 Aws::String m_instanceRoleArn;
203
204 Aws::String m_name;
205
206 ClusterNetworkSettings m_networkSettings;
207
209
210 Aws::String m_requestId;
211 bool m_arnHasBeenSet = false;
212 bool m_channelIdsHasBeenSet = false;
213 bool m_clusterTypeHasBeenSet = false;
214 bool m_idHasBeenSet = false;
215 bool m_instanceRoleArnHasBeenSet = false;
216 bool m_nameHasBeenSet = false;
217 bool m_networkSettingsHasBeenSet = false;
218 bool m_stateHasBeenSet = false;
219 bool m_requestIdHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace MediaLive
224} // namespace Aws
CreateClusterResult & WithChannelIds(ChannelIdsT &&value)
AWS_MEDIALIVE_API CreateClusterResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MEDIALIVE_API CreateClusterResult()=default
CreateClusterResult & WithArn(ArnT &&value)
const Aws::Vector< Aws::String > & GetChannelIds() const
void SetNetworkSettings(NetworkSettingsT &&value)
CreateClusterResult & WithRequestId(RequestIdT &&value)
CreateClusterResult & WithClusterType(ClusterType value)
void SetInstanceRoleArn(InstanceRoleArnT &&value)
CreateClusterResult & WithName(NameT &&value)
const ClusterNetworkSettings & GetNetworkSettings() const
CreateClusterResult & WithId(IdT &&value)
CreateClusterResult & WithNetworkSettings(NetworkSettingsT &&value)
AWS_MEDIALIVE_API CreateClusterResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateClusterResult & AddChannelIds(ChannelIdsT &&value)
CreateClusterResult & WithInstanceRoleArn(InstanceRoleArnT &&value)
CreateClusterResult & WithState(ClusterState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue