AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeClusterSummary.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 {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace MediaLive {
24namespace Model {
25
32 public:
33 AWS_MEDIALIVE_API DescribeClusterSummary() = default;
36 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
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
64 inline const Aws::Vector<Aws::String>& GetChannelIds() const { return m_channelIds; }
65 inline bool ChannelIdsHasBeenSet() const { return m_channelIdsHasBeenSet; }
66 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
67 void SetChannelIds(ChannelIdsT&& value) {
68 m_channelIdsHasBeenSet = true;
69 m_channelIds = std::forward<ChannelIdsT>(value);
70 }
71 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
72 DescribeClusterSummary& WithChannelIds(ChannelIdsT&& value) {
73 SetChannelIds(std::forward<ChannelIdsT>(value));
74 return *this;
75 }
76 template <typename ChannelIdsT = Aws::String>
77 DescribeClusterSummary& AddChannelIds(ChannelIdsT&& value) {
78 m_channelIdsHasBeenSet = true;
79 m_channelIds.emplace_back(std::forward<ChannelIdsT>(value));
80 return *this;
81 }
83
85
88 inline ClusterType GetClusterType() const { return m_clusterType; }
89 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
90 inline void SetClusterType(ClusterType value) {
91 m_clusterTypeHasBeenSet = true;
92 m_clusterType = value;
93 }
95 SetClusterType(value);
96 return *this;
97 }
99
101
105 inline const Aws::String& GetId() const { return m_id; }
106 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
107 template <typename IdT = Aws::String>
108 void SetId(IdT&& value) {
109 m_idHasBeenSet = true;
110 m_id = std::forward<IdT>(value);
111 }
112 template <typename IdT = Aws::String>
114 SetId(std::forward<IdT>(value));
115 return *this;
116 }
118
120
125 inline const Aws::String& GetInstanceRoleArn() const { return m_instanceRoleArn; }
126 inline bool InstanceRoleArnHasBeenSet() const { return m_instanceRoleArnHasBeenSet; }
127 template <typename InstanceRoleArnT = Aws::String>
128 void SetInstanceRoleArn(InstanceRoleArnT&& value) {
129 m_instanceRoleArnHasBeenSet = true;
130 m_instanceRoleArn = std::forward<InstanceRoleArnT>(value);
131 }
132 template <typename InstanceRoleArnT = Aws::String>
133 DescribeClusterSummary& WithInstanceRoleArn(InstanceRoleArnT&& value) {
134 SetInstanceRoleArn(std::forward<InstanceRoleArnT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetName() const { return m_name; }
144 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
145 template <typename NameT = Aws::String>
146 void SetName(NameT&& value) {
147 m_nameHasBeenSet = true;
148 m_name = std::forward<NameT>(value);
149 }
150 template <typename NameT = Aws::String>
152 SetName(std::forward<NameT>(value));
153 return *this;
154 }
156
158
162 inline const ClusterNetworkSettings& GetNetworkSettings() const { return m_networkSettings; }
163 inline bool NetworkSettingsHasBeenSet() const { return m_networkSettingsHasBeenSet; }
164 template <typename NetworkSettingsT = ClusterNetworkSettings>
165 void SetNetworkSettings(NetworkSettingsT&& value) {
166 m_networkSettingsHasBeenSet = true;
167 m_networkSettings = std::forward<NetworkSettingsT>(value);
168 }
169 template <typename NetworkSettingsT = ClusterNetworkSettings>
170 DescribeClusterSummary& WithNetworkSettings(NetworkSettingsT&& value) {
171 SetNetworkSettings(std::forward<NetworkSettingsT>(value));
172 return *this;
173 }
175
177
180 inline ClusterState GetState() const { return m_state; }
181 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
182 inline void SetState(ClusterState value) {
183 m_stateHasBeenSet = true;
184 m_state = value;
185 }
187 SetState(value);
188 return *this;
189 }
191 private:
192 Aws::String m_arn;
193
194 Aws::Vector<Aws::String> m_channelIds;
195
196 ClusterType m_clusterType{ClusterType::NOT_SET};
197
198 Aws::String m_id;
199
200 Aws::String m_instanceRoleArn;
201
202 Aws::String m_name;
203
204 ClusterNetworkSettings m_networkSettings;
205
207 bool m_arnHasBeenSet = false;
208 bool m_channelIdsHasBeenSet = false;
209 bool m_clusterTypeHasBeenSet = false;
210 bool m_idHasBeenSet = false;
211 bool m_instanceRoleArnHasBeenSet = false;
212 bool m_nameHasBeenSet = false;
213 bool m_networkSettingsHasBeenSet = false;
214 bool m_stateHasBeenSet = false;
215};
216
217} // namespace Model
218} // namespace MediaLive
219} // namespace Aws
DescribeClusterSummary & WithId(IdT &&value)
const ClusterNetworkSettings & GetNetworkSettings() const
AWS_MEDIALIVE_API DescribeClusterSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetChannelIds() const
DescribeClusterSummary & AddChannelIds(ChannelIdsT &&value)
DescribeClusterSummary & WithState(ClusterState value)
DescribeClusterSummary & WithNetworkSettings(NetworkSettingsT &&value)
DescribeClusterSummary & WithClusterType(ClusterType value)
DescribeClusterSummary & WithInstanceRoleArn(InstanceRoleArnT &&value)
AWS_MEDIALIVE_API DescribeClusterSummary()=default
AWS_MEDIALIVE_API DescribeClusterSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribeClusterSummary & WithChannelIds(ChannelIdsT &&value)
DescribeClusterSummary & WithArn(ArnT &&value)
DescribeClusterSummary & WithName(NameT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() 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