AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegisterScalableTargetRequest.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/ApplicationAutoScalingRequest.h>
9#include <aws/application-autoscaling/model/ServiceNamespace.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/application-autoscaling/model/ScalableDimension.h>
12#include <aws/application-autoscaling/model/SuspendedState.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ApplicationAutoScaling
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPLICATIONAUTOSCALING_API RegisterScalableTargetRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "RegisterScalableTarget"; }
35
36 AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
37
38 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
47 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
48 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
49 inline void SetServiceNamespace(ServiceNamespace value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
52
54
118 inline const Aws::String& GetResourceId() const { return m_resourceId; }
119 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
120 template<typename ResourceIdT = Aws::String>
121 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
122 template<typename ResourceIdT = Aws::String>
123 RegisterScalableTargetRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
125
127
180 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
181 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
182 inline void SetScalableDimension(ScalableDimension value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
185
187
206 inline int GetMinCapacity() const { return m_minCapacity; }
207 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
208 inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
209 inline RegisterScalableTargetRequest& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
211
213
227 inline int GetMaxCapacity() const { return m_maxCapacity; }
228 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
229 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
230 inline RegisterScalableTargetRequest& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
232
234
244 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
245 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
246 template<typename RoleARNT = Aws::String>
247 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
248 template<typename RoleARNT = Aws::String>
249 RegisterScalableTargetRequest& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
251
253
269 inline const SuspendedState& GetSuspendedState() const { return m_suspendedState; }
270 inline bool SuspendedStateHasBeenSet() const { return m_suspendedStateHasBeenSet; }
271 template<typename SuspendedStateT = SuspendedState>
272 void SetSuspendedState(SuspendedStateT&& value) { m_suspendedStateHasBeenSet = true; m_suspendedState = std::forward<SuspendedStateT>(value); }
273 template<typename SuspendedStateT = SuspendedState>
274 RegisterScalableTargetRequest& WithSuspendedState(SuspendedStateT&& value) { SetSuspendedState(std::forward<SuspendedStateT>(value)); return *this;}
276
278
289 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
290 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
291 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
292 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
293 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
294 RegisterScalableTargetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
295 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
296 RegisterScalableTargetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
297 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
298 }
300 private:
301
303 bool m_serviceNamespaceHasBeenSet = false;
304
305 Aws::String m_resourceId;
306 bool m_resourceIdHasBeenSet = false;
307
309 bool m_scalableDimensionHasBeenSet = false;
310
311 int m_minCapacity{0};
312 bool m_minCapacityHasBeenSet = false;
313
314 int m_maxCapacity{0};
315 bool m_maxCapacityHasBeenSet = false;
316
317 Aws::String m_roleARN;
318 bool m_roleARNHasBeenSet = false;
319
320 SuspendedState m_suspendedState;
321 bool m_suspendedStateHasBeenSet = false;
322
324 bool m_tagsHasBeenSet = false;
325 };
326
327} // namespace Model
328} // namespace ApplicationAutoScaling
329} // 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