AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ClusterSummary.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/pcs/model/ClusterStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PCS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_PCS_API ClusterSummary() = default;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 ClusterSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template<typename IdT = Aws::String>
62 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
63 template<typename IdT = Aws::String>
64 ClusterSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetArn() const { return m_arn; }
72 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
73 template<typename ArnT = Aws::String>
74 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
75 template<typename ArnT = Aws::String>
76 ClusterSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
84 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
85 template<typename CreatedAtT = Aws::Utils::DateTime>
86 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
87 template<typename CreatedAtT = Aws::Utils::DateTime>
88 ClusterSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
96 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
97 template<typename ModifiedAtT = Aws::Utils::DateTime>
98 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
99 template<typename ModifiedAtT = Aws::Utils::DateTime>
100 ClusterSummary& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
102
104
117 inline ClusterStatus GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 inline void SetStatus(ClusterStatus value) { m_statusHasBeenSet = true; m_status = value; }
120 inline ClusterSummary& WithStatus(ClusterStatus value) { SetStatus(value); return *this;}
122 private:
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::String m_id;
128 bool m_idHasBeenSet = false;
129
130 Aws::String m_arn;
131 bool m_arnHasBeenSet = false;
132
133 Aws::Utils::DateTime m_createdAt{};
134 bool m_createdAtHasBeenSet = false;
135
136 Aws::Utils::DateTime m_modifiedAt{};
137 bool m_modifiedAtHasBeenSet = false;
138
140 bool m_statusHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace PCS
145} // namespace Aws
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_PCS_API ClusterSummary(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ClusterStatus value)
ClusterSummary & WithId(IdT &&value)
const Aws::Utils::DateTime & GetModifiedAt() const
const Aws::String & GetId() const
ClusterSummary & WithName(NameT &&value)
ClusterSummary & WithModifiedAt(ModifiedAtT &&value)
AWS_PCS_API ClusterSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ClusterSummary & WithCreatedAt(CreatedAtT &&value)
AWS_PCS_API ClusterSummary()=default
const Aws::String & GetName() const
ClusterSummary & WithStatus(ClusterStatus value)
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterSummary & WithArn(ArnT &&value)
ClusterStatus GetStatus() const
void SetModifiedAt(ModifiedAtT &&value)
const Aws::String & GetArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue