AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ClusterSummary.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticmapreduce/model/ClusterStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EMR_API ClusterSummary() = default;
39
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 ClusterSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 ClusterSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const ClusterStatus& GetStatus() const { return m_status; }
70 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
71 template<typename StatusT = ClusterStatus>
72 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
73 template<typename StatusT = ClusterStatus>
74 ClusterSummary& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
76
78
86 inline int GetNormalizedInstanceHours() const { return m_normalizedInstanceHours; }
87 inline bool NormalizedInstanceHoursHasBeenSet() const { return m_normalizedInstanceHoursHasBeenSet; }
88 inline void SetNormalizedInstanceHours(int value) { m_normalizedInstanceHoursHasBeenSet = true; m_normalizedInstanceHours = value; }
89 inline ClusterSummary& WithNormalizedInstanceHours(int value) { SetNormalizedInstanceHours(value); return *this;}
91
93
96 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
97 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
98 template<typename ClusterArnT = Aws::String>
99 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
100 template<typename ClusterArnT = Aws::String>
101 ClusterSummary& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
103
105
109 inline const Aws::String& GetOutpostArn() const { return m_outpostArn; }
110 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
111 template<typename OutpostArnT = Aws::String>
112 void SetOutpostArn(OutpostArnT&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::forward<OutpostArnT>(value); }
113 template<typename OutpostArnT = Aws::String>
114 ClusterSummary& WithOutpostArn(OutpostArnT&& value) { SetOutpostArn(std::forward<OutpostArnT>(value)); return *this;}
116 private:
117
118 Aws::String m_id;
119 bool m_idHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 ClusterStatus m_status;
125 bool m_statusHasBeenSet = false;
126
127 int m_normalizedInstanceHours{0};
128 bool m_normalizedInstanceHoursHasBeenSet = false;
129
130 Aws::String m_clusterArn;
131 bool m_clusterArnHasBeenSet = false;
132
133 Aws::String m_outpostArn;
134 bool m_outpostArnHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace EMR
139} // 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