AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalableTarget.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/ServiceNamespace.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/application-autoscaling/model/ScalableDimension.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/application-autoscaling/model/SuspendedState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ApplicationAutoScaling
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_APPLICATIONAUTOSCALING_API ScalableTarget();
39 AWS_APPLICATIONAUTOSCALING_API ScalableTarget(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONAUTOSCALING_API ScalableTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
50 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
51 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
52 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
53 inline ScalableTarget& WithServiceNamespace(const ServiceNamespace& value) { SetServiceNamespace(value); return *this;}
54 inline ScalableTarget& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(std::move(value)); return *this;}
56
58
119 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
120 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
121 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
122 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
123 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
124 inline ScalableTarget& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
125 inline ScalableTarget& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
126 inline ScalableTarget& WithResourceId(const char* value) { SetResourceId(value); return *this;}
128
130
181 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
182 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
183 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
184 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(value); }
185 inline ScalableTarget& WithScalableDimension(const ScalableDimension& value) { SetScalableDimension(value); return *this;}
186 inline ScalableTarget& WithScalableDimension(ScalableDimension&& value) { SetScalableDimension(std::move(value)); return *this;}
188
190
193 inline int GetMinCapacity() const{ return m_minCapacity; }
194 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
195 inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
196 inline ScalableTarget& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
198
200
203 inline int GetMaxCapacity() const{ return m_maxCapacity; }
204 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
205 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
206 inline ScalableTarget& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
208
210
214 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
215 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
216 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
217 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
218 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
219 inline ScalableTarget& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
220 inline ScalableTarget& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
221 inline ScalableTarget& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
223
225
228 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
229 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
230 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
231 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
232 inline ScalableTarget& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
233 inline ScalableTarget& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
235
237
241 inline const SuspendedState& GetSuspendedState() const{ return m_suspendedState; }
242 inline bool SuspendedStateHasBeenSet() const { return m_suspendedStateHasBeenSet; }
243 inline void SetSuspendedState(const SuspendedState& value) { m_suspendedStateHasBeenSet = true; m_suspendedState = value; }
244 inline void SetSuspendedState(SuspendedState&& value) { m_suspendedStateHasBeenSet = true; m_suspendedState = std::move(value); }
245 inline ScalableTarget& WithSuspendedState(const SuspendedState& value) { SetSuspendedState(value); return *this;}
246 inline ScalableTarget& WithSuspendedState(SuspendedState&& value) { SetSuspendedState(std::move(value)); return *this;}
248
250
253 inline const Aws::String& GetScalableTargetARN() const{ return m_scalableTargetARN; }
254 inline bool ScalableTargetARNHasBeenSet() const { return m_scalableTargetARNHasBeenSet; }
255 inline void SetScalableTargetARN(const Aws::String& value) { m_scalableTargetARNHasBeenSet = true; m_scalableTargetARN = value; }
256 inline void SetScalableTargetARN(Aws::String&& value) { m_scalableTargetARNHasBeenSet = true; m_scalableTargetARN = std::move(value); }
257 inline void SetScalableTargetARN(const char* value) { m_scalableTargetARNHasBeenSet = true; m_scalableTargetARN.assign(value); }
258 inline ScalableTarget& WithScalableTargetARN(const Aws::String& value) { SetScalableTargetARN(value); return *this;}
259 inline ScalableTarget& WithScalableTargetARN(Aws::String&& value) { SetScalableTargetARN(std::move(value)); return *this;}
260 inline ScalableTarget& WithScalableTargetARN(const char* value) { SetScalableTargetARN(value); return *this;}
262 private:
263
264 ServiceNamespace m_serviceNamespace;
265 bool m_serviceNamespaceHasBeenSet = false;
266
267 Aws::String m_resourceId;
268 bool m_resourceIdHasBeenSet = false;
269
270 ScalableDimension m_scalableDimension;
271 bool m_scalableDimensionHasBeenSet = false;
272
273 int m_minCapacity;
274 bool m_minCapacityHasBeenSet = false;
275
276 int m_maxCapacity;
277 bool m_maxCapacityHasBeenSet = false;
278
279 Aws::String m_roleARN;
280 bool m_roleARNHasBeenSet = false;
281
282 Aws::Utils::DateTime m_creationTime;
283 bool m_creationTimeHasBeenSet = false;
284
285 SuspendedState m_suspendedState;
286 bool m_suspendedStateHasBeenSet = false;
287
288 Aws::String m_scalableTargetARN;
289 bool m_scalableTargetARNHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace ApplicationAutoScaling
294} // namespace Aws
ScalableTarget & WithSuspendedState(const SuspendedState &value)
void SetScalableDimension(ScalableDimension &&value)
ScalableTarget & WithResourceId(const char *value)
void SetSuspendedState(const SuspendedState &value)
ScalableTarget & WithScalableTargetARN(const char *value)
AWS_APPLICATIONAUTOSCALING_API ScalableTarget()
ScalableTarget & WithSuspendedState(SuspendedState &&value)
ScalableTarget & WithResourceId(Aws::String &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
const ScalableDimension & GetScalableDimension() const
ScalableTarget & WithResourceId(const Aws::String &value)
const ServiceNamespace & GetServiceNamespace() const
ScalableTarget & WithServiceNamespace(ServiceNamespace &&value)
void SetServiceNamespace(const ServiceNamespace &value)
void SetScalableTargetARN(const Aws::String &value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetScalableDimension(const ScalableDimension &value)
ScalableTarget & WithScalableDimension(ScalableDimension &&value)
ScalableTarget & WithRoleARN(const char *value)
ScalableTarget & WithCreationTime(Aws::Utils::DateTime &&value)
AWS_APPLICATIONAUTOSCALING_API ScalableTarget(Aws::Utils::Json::JsonView jsonValue)
void SetServiceNamespace(ServiceNamespace &&value)
ScalableTarget & WithCreationTime(const Aws::Utils::DateTime &value)
ScalableTarget & WithRoleARN(const Aws::String &value)
ScalableTarget & WithScalableTargetARN(const Aws::String &value)
const Aws::Utils::DateTime & GetCreationTime() const
ScalableTarget & WithRoleARN(Aws::String &&value)
AWS_APPLICATIONAUTOSCALING_API ScalableTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(Aws::Utils::DateTime &&value)
ScalableTarget & WithScalableTargetARN(Aws::String &&value)
ScalableTarget & WithServiceNamespace(const ServiceNamespace &value)
ScalableTarget & WithScalableDimension(const ScalableDimension &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue