AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticmapreduce/EMR_EXPORTS.h>
9#include <aws/elasticmapreduce/model/ClusterStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EMR {
21namespace Model {
22
29 public:
30 AWS_EMR_API ClusterSummary() = default;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 ClusterSummary& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 ClusterSummary& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const ClusterStatus& GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 template <typename StatusT = ClusterStatus>
78 void SetStatus(StatusT&& value) {
79 m_statusHasBeenSet = true;
80 m_status = std::forward<StatusT>(value);
81 }
82 template <typename StatusT = ClusterStatus>
83 ClusterSummary& WithStatus(StatusT&& value) {
84 SetStatus(std::forward<StatusT>(value));
85 return *this;
86 }
88
90
98 inline int GetNormalizedInstanceHours() const { return m_normalizedInstanceHours; }
99 inline bool NormalizedInstanceHoursHasBeenSet() const { return m_normalizedInstanceHoursHasBeenSet; }
100 inline void SetNormalizedInstanceHours(int value) {
101 m_normalizedInstanceHoursHasBeenSet = true;
102 m_normalizedInstanceHours = value;
103 }
106 return *this;
107 }
109
111
114 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
115 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
116 template <typename ClusterArnT = Aws::String>
117 void SetClusterArn(ClusterArnT&& value) {
118 m_clusterArnHasBeenSet = true;
119 m_clusterArn = std::forward<ClusterArnT>(value);
120 }
121 template <typename ClusterArnT = Aws::String>
122 ClusterSummary& WithClusterArn(ClusterArnT&& value) {
123 SetClusterArn(std::forward<ClusterArnT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
134 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
135 template <typename OutpostArnT = Aws::String>
136 void SetOutpostArn(OutpostArnT&& value) {
137 m_outpostArnHasBeenSet = true;
138 m_outpostArn = std::forward<OutpostArnT>(value);
139 }
140 template <typename OutpostArnT = Aws::String>
141 ClusterSummary& WithOutpostArn(OutpostArnT&& value) {
142 SetOutpostArn(std::forward<OutpostArnT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_id;
148
149 Aws::String m_name;
150
151 ClusterStatus m_status;
152
153 int m_normalizedInstanceHours{0};
154
155 Aws::String m_clusterArn;
156
157 Aws::String m_outpostArn;
158 bool m_idHasBeenSet = false;
159 bool m_nameHasBeenSet = false;
160 bool m_statusHasBeenSet = false;
161 bool m_normalizedInstanceHoursHasBeenSet = false;
162 bool m_clusterArnHasBeenSet = false;
163 bool m_outpostArnHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace EMR
168} // namespace Aws
void SetStatus(StatusT &&value)
void SetClusterArn(ClusterArnT &&value)
ClusterSummary & WithNormalizedInstanceHours(int value)
AWS_EMR_API ClusterSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
bool NormalizedInstanceHoursHasBeenSet() const
ClusterSummary & WithClusterArn(ClusterArnT &&value)
void SetOutpostArn(OutpostArnT &&value)
AWS_EMR_API ClusterSummary()=default
const ClusterStatus & GetStatus() const
const Aws::String & GetName() const
const Aws::String & GetOutpostArn() const
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
ClusterSummary & WithId(IdT &&value)
void SetNormalizedInstanceHours(int value)
ClusterSummary & WithOutpostArn(OutpostArnT &&value)
AWS_EMR_API ClusterSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClusterArn() const
ClusterSummary & WithName(NameT &&value)
ClusterSummary & WithStatus(StatusT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue