AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
KxScalingGroup.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/finspace/Finspace_EXPORTS.h>
11#include <aws/finspace/model/KxScalingGroupStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace finspace {
23namespace Model {
24
32 public:
33 AWS_FINSPACE_API KxScalingGroup() = default;
34 AWS_FINSPACE_API KxScalingGroup(Aws::Utils::Json::JsonView jsonValue);
36 AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetScalingGroupName() const { return m_scalingGroupName; }
43 inline bool ScalingGroupNameHasBeenSet() const { return m_scalingGroupNameHasBeenSet; }
44 template <typename ScalingGroupNameT = Aws::String>
45 void SetScalingGroupName(ScalingGroupNameT&& value) {
46 m_scalingGroupNameHasBeenSet = true;
47 m_scalingGroupName = std::forward<ScalingGroupNameT>(value);
48 }
49 template <typename ScalingGroupNameT = Aws::String>
50 KxScalingGroup& WithScalingGroupName(ScalingGroupNameT&& value) {
51 SetScalingGroupName(std::forward<ScalingGroupNameT>(value));
52 return *this;
53 }
55
57
75 inline const Aws::String& GetHostType() const { return m_hostType; }
76 inline bool HostTypeHasBeenSet() const { return m_hostTypeHasBeenSet; }
77 template <typename HostTypeT = Aws::String>
78 void SetHostType(HostTypeT&& value) {
79 m_hostTypeHasBeenSet = true;
80 m_hostType = std::forward<HostTypeT>(value);
81 }
82 template <typename HostTypeT = Aws::String>
83 KxScalingGroup& WithHostType(HostTypeT&& value) {
84 SetHostType(std::forward<HostTypeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<Aws::String>& GetClusters() const { return m_clusters; }
94 inline bool ClustersHasBeenSet() const { return m_clustersHasBeenSet; }
95 template <typename ClustersT = Aws::Vector<Aws::String>>
96 void SetClusters(ClustersT&& value) {
97 m_clustersHasBeenSet = true;
98 m_clusters = std::forward<ClustersT>(value);
99 }
100 template <typename ClustersT = Aws::Vector<Aws::String>>
101 KxScalingGroup& WithClusters(ClustersT&& value) {
102 SetClusters(std::forward<ClustersT>(value));
103 return *this;
104 }
105 template <typename ClustersT = Aws::String>
106 KxScalingGroup& AddClusters(ClustersT&& value) {
107 m_clustersHasBeenSet = true;
108 m_clusters.emplace_back(std::forward<ClustersT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
118 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
119 template <typename AvailabilityZoneIdT = Aws::String>
120 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
121 m_availabilityZoneIdHasBeenSet = true;
122 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
123 }
124 template <typename AvailabilityZoneIdT = Aws::String>
125 KxScalingGroup& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
126 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
127 return *this;
128 }
130
132
135 inline KxScalingGroupStatus GetStatus() const { return m_status; }
136 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 inline void SetStatus(KxScalingGroupStatus value) {
138 m_statusHasBeenSet = true;
139 m_status = value;
140 }
142 SetStatus(value);
143 return *this;
144 }
146
148
151 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
152 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
153 template <typename StatusReasonT = Aws::String>
154 void SetStatusReason(StatusReasonT&& value) {
155 m_statusReasonHasBeenSet = true;
156 m_statusReason = std::forward<StatusReasonT>(value);
157 }
158 template <typename StatusReasonT = Aws::String>
159 KxScalingGroup& WithStatusReason(StatusReasonT&& value) {
160 SetStatusReason(std::forward<StatusReasonT>(value));
161 return *this;
162 }
164
166
171 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
172 inline bool LastModifiedTimestampHasBeenSet() const { return m_lastModifiedTimestampHasBeenSet; }
173 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
174 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) {
175 m_lastModifiedTimestampHasBeenSet = true;
176 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
177 }
178 template <typename LastModifiedTimestampT = Aws::Utils::DateTime>
179 KxScalingGroup& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) {
180 SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
192 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
193 template <typename CreatedTimestampT = Aws::Utils::DateTime>
194 void SetCreatedTimestamp(CreatedTimestampT&& value) {
195 m_createdTimestampHasBeenSet = true;
196 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
197 }
198 template <typename CreatedTimestampT = Aws::Utils::DateTime>
199 KxScalingGroup& WithCreatedTimestamp(CreatedTimestampT&& value) {
200 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_scalingGroupName;
206
207 Aws::String m_hostType;
208
209 Aws::Vector<Aws::String> m_clusters;
210
211 Aws::String m_availabilityZoneId;
212
214
215 Aws::String m_statusReason;
216
217 Aws::Utils::DateTime m_lastModifiedTimestamp{};
218
219 Aws::Utils::DateTime m_createdTimestamp{};
220 bool m_scalingGroupNameHasBeenSet = false;
221 bool m_hostTypeHasBeenSet = false;
222 bool m_clustersHasBeenSet = false;
223 bool m_availabilityZoneIdHasBeenSet = false;
224 bool m_statusHasBeenSet = false;
225 bool m_statusReasonHasBeenSet = false;
226 bool m_lastModifiedTimestampHasBeenSet = false;
227 bool m_createdTimestampHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace finspace
232} // namespace Aws
const Aws::String & GetScalingGroupName() const
AWS_FINSPACE_API KxScalingGroup(Aws::Utils::Json::JsonView jsonValue)
KxScalingGroup & WithScalingGroupName(ScalingGroupNameT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
void SetHostType(HostTypeT &&value)
KxScalingGroup & AddClusters(ClustersT &&value)
KxScalingGroupStatus GetStatus() const
void SetLastModifiedTimestamp(LastModifiedTimestampT &&value)
KxScalingGroup & WithHostType(HostTypeT &&value)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
KxScalingGroup & WithStatus(KxScalingGroupStatus value)
const Aws::Utils::DateTime & GetLastModifiedTimestamp() const
KxScalingGroup & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
void SetStatusReason(StatusReasonT &&value)
AWS_FINSPACE_API KxScalingGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetClusters(ClustersT &&value)
const Aws::String & GetStatusReason() const
KxScalingGroup & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_FINSPACE_API KxScalingGroup()=default
const Aws::Vector< Aws::String > & GetClusters() const
void SetStatus(KxScalingGroupStatus value)
const Aws::String & GetHostType() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
const Aws::String & GetAvailabilityZoneId() const
AWS_FINSPACE_API Aws::Utils::Json::JsonValue Jsonize() const
KxScalingGroup & WithStatusReason(StatusReasonT &&value)
KxScalingGroup & WithClusters(ClustersT &&value)
void SetScalingGroupName(ScalingGroupNameT &&value)
KxScalingGroup & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue