AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
RegisterScalableTargetRequest.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScalingRequest.h>
8#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
9#include <aws/application-autoscaling/model/ScalableDimension.h>
10#include <aws/application-autoscaling/model/ServiceNamespace.h>
11#include <aws/application-autoscaling/model/SuspendedState.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ApplicationAutoScaling {
19namespace Model {
20
24 public:
25 AWS_APPLICATIONAUTOSCALING_API RegisterScalableTargetRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "RegisterScalableTarget"; }
32
33 AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
34
35 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
43 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
44 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
46 m_serviceNamespaceHasBeenSet = true;
47 m_serviceNamespace = value;
48 }
51 return *this;
52 }
54
56
120 inline const Aws::String& GetResourceId() const { return m_resourceId; }
121 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
122 template <typename ResourceIdT = Aws::String>
123 void SetResourceId(ResourceIdT&& value) {
124 m_resourceIdHasBeenSet = true;
125 m_resourceId = std::forward<ResourceIdT>(value);
126 }
127 template <typename ResourceIdT = Aws::String>
129 SetResourceId(std::forward<ResourceIdT>(value));
130 return *this;
131 }
133
135
188 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
189 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
191 m_scalableDimensionHasBeenSet = true;
192 m_scalableDimension = value;
193 }
196 return *this;
197 }
199
201
220 inline int GetMinCapacity() const { return m_minCapacity; }
221 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
222 inline void SetMinCapacity(int value) {
223 m_minCapacityHasBeenSet = true;
224 m_minCapacity = value;
225 }
227 SetMinCapacity(value);
228 return *this;
229 }
231
233
247 inline int GetMaxCapacity() const { return m_maxCapacity; }
248 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
249 inline void SetMaxCapacity(int value) {
250 m_maxCapacityHasBeenSet = true;
251 m_maxCapacity = value;
252 }
254 SetMaxCapacity(value);
255 return *this;
256 }
258
260
270 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
271 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
272 template <typename RoleARNT = Aws::String>
273 void SetRoleARN(RoleARNT&& value) {
274 m_roleARNHasBeenSet = true;
275 m_roleARN = std::forward<RoleARNT>(value);
276 }
277 template <typename RoleARNT = Aws::String>
279 SetRoleARN(std::forward<RoleARNT>(value));
280 return *this;
281 }
283
285
301 inline const SuspendedState& GetSuspendedState() const { return m_suspendedState; }
302 inline bool SuspendedStateHasBeenSet() const { return m_suspendedStateHasBeenSet; }
303 template <typename SuspendedStateT = SuspendedState>
304 void SetSuspendedState(SuspendedStateT&& value) {
305 m_suspendedStateHasBeenSet = true;
306 m_suspendedState = std::forward<SuspendedStateT>(value);
307 }
308 template <typename SuspendedStateT = SuspendedState>
310 SetSuspendedState(std::forward<SuspendedStateT>(value));
311 return *this;
312 }
314
316
327 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
328 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
329 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
330 void SetTags(TagsT&& value) {
331 m_tagsHasBeenSet = true;
332 m_tags = std::forward<TagsT>(value);
333 }
334 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
336 SetTags(std::forward<TagsT>(value));
337 return *this;
338 }
339 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
340 RegisterScalableTargetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
341 m_tagsHasBeenSet = true;
342 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
343 return *this;
344 }
346 private:
348
349 Aws::String m_resourceId;
350
352
353 int m_minCapacity{0};
354
355 int m_maxCapacity{0};
356
357 Aws::String m_roleARN;
358
359 SuspendedState m_suspendedState;
360
362 bool m_serviceNamespaceHasBeenSet = false;
363 bool m_resourceIdHasBeenSet = false;
364 bool m_scalableDimensionHasBeenSet = false;
365 bool m_minCapacityHasBeenSet = false;
366 bool m_maxCapacityHasBeenSet = false;
367 bool m_roleARNHasBeenSet = false;
368 bool m_suspendedStateHasBeenSet = false;
369 bool m_tagsHasBeenSet = false;
370};
371
372} // namespace Model
373} // namespace ApplicationAutoScaling
374} // namespace Aws
RegisterScalableTargetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
RegisterScalableTargetRequest & WithSuspendedState(SuspendedStateT &&value)
AWS_APPLICATIONAUTOSCALING_API RegisterScalableTargetRequest()=default
RegisterScalableTargetRequest & WithServiceNamespace(ServiceNamespace value)
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterScalableTargetRequest & WithResourceId(ResourceIdT &&value)
RegisterScalableTargetRequest & WithScalableDimension(ScalableDimension value)
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String