AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::String& GetId() const{ return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
49 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
50 inline ClusterSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline ClusterSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline ClusterSummary& WithId(const char* value) { SetId(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline ClusterSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline ClusterSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline ClusterSummary& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const ClusterStatus& GetStatus() const{ return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(const ClusterStatus& value) { m_statusHasBeenSet = true; m_status = value; }
76 inline void SetStatus(ClusterStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
77 inline ClusterSummary& WithStatus(const ClusterStatus& value) { SetStatus(value); return *this;}
78 inline ClusterSummary& WithStatus(ClusterStatus&& value) { SetStatus(std::move(value)); return *this;}
80
82
90 inline int GetNormalizedInstanceHours() const{ return m_normalizedInstanceHours; }
91 inline bool NormalizedInstanceHoursHasBeenSet() const { return m_normalizedInstanceHoursHasBeenSet; }
92 inline void SetNormalizedInstanceHours(int value) { m_normalizedInstanceHoursHasBeenSet = true; m_normalizedInstanceHours = value; }
93 inline ClusterSummary& WithNormalizedInstanceHours(int value) { SetNormalizedInstanceHours(value); return *this;}
95
97
100 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
101 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
102 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
103 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
104 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
105 inline ClusterSummary& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
106 inline ClusterSummary& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
107 inline ClusterSummary& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
109
111
115 inline const Aws::String& GetOutpostArn() const{ return m_outpostArn; }
116 inline bool OutpostArnHasBeenSet() const { return m_outpostArnHasBeenSet; }
117 inline void SetOutpostArn(const Aws::String& value) { m_outpostArnHasBeenSet = true; m_outpostArn = value; }
118 inline void SetOutpostArn(Aws::String&& value) { m_outpostArnHasBeenSet = true; m_outpostArn = std::move(value); }
119 inline void SetOutpostArn(const char* value) { m_outpostArnHasBeenSet = true; m_outpostArn.assign(value); }
120 inline ClusterSummary& WithOutpostArn(const Aws::String& value) { SetOutpostArn(value); return *this;}
121 inline ClusterSummary& WithOutpostArn(Aws::String&& value) { SetOutpostArn(std::move(value)); return *this;}
122 inline ClusterSummary& WithOutpostArn(const char* value) { SetOutpostArn(value); return *this;}
124 private:
125
126 Aws::String m_id;
127 bool m_idHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 ClusterStatus m_status;
133 bool m_statusHasBeenSet = false;
134
135 int m_normalizedInstanceHours;
136 bool m_normalizedInstanceHoursHasBeenSet = false;
137
138 Aws::String m_clusterArn;
139 bool m_clusterArnHasBeenSet = false;
140
141 Aws::String m_outpostArn;
142 bool m_outpostArnHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace EMR
147} // namespace Aws
void SetOutpostArn(const Aws::String &value)
void SetStatus(ClusterStatus &&value)
void SetOutpostArn(Aws::String &&value)
ClusterSummary & WithClusterArn(Aws::String &&value)
void SetId(const Aws::String &value)
void SetClusterArn(const char *value)
ClusterSummary & WithNormalizedInstanceHours(int value)
ClusterSummary & WithClusterArn(const char *value)
void SetName(Aws::String &&value)
AWS_EMR_API ClusterSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
bool NormalizedInstanceHoursHasBeenSet() const
ClusterSummary & WithClusterArn(const Aws::String &value)
ClusterSummary & WithName(const char *value)
void SetName(const char *value)
void SetStatus(const ClusterStatus &value)
void SetId(Aws::String &&value)
const ClusterStatus & GetStatus() const
void SetClusterArn(Aws::String &&value)
ClusterSummary & WithStatus(ClusterStatus &&value)
const Aws::String & GetName() const
const Aws::String & GetOutpostArn() const
ClusterSummary & WithStatus(const ClusterStatus &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterSummary & WithId(Aws::String &&value)
void SetOutpostArn(const char *value)
ClusterSummary & WithName(Aws::String &&value)
ClusterSummary & WithId(const char *value)
void SetName(const Aws::String &value)
void SetClusterArn(const Aws::String &value)
const Aws::String & GetId() const
ClusterSummary & WithOutpostArn(const Aws::String &value)
ClusterSummary & WithOutpostArn(const char *value)
void SetNormalizedInstanceHours(int value)
ClusterSummary & WithId(const Aws::String &value)
ClusterSummary & WithName(const Aws::String &value)
AWS_EMR_API ClusterSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClusterArn() const
void SetId(const char *value)
ClusterSummary & WithOutpostArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue