AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
48 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
49 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
50 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
54
56
117 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
118 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
119 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
120 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
121 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
122 inline RegisterScalableTargetRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
123 inline RegisterScalableTargetRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
124 inline RegisterScalableTargetRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
126
128
179 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
180 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
181 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
182 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(value); }
186
188
207 inline int GetMinCapacity() const{ return m_minCapacity; }
208 inline bool MinCapacityHasBeenSet() const { return m_minCapacityHasBeenSet; }
209 inline void SetMinCapacity(int value) { m_minCapacityHasBeenSet = true; m_minCapacity = value; }
210 inline RegisterScalableTargetRequest& WithMinCapacity(int value) { SetMinCapacity(value); return *this;}
212
214
228 inline int GetMaxCapacity() const{ return m_maxCapacity; }
229 inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }
230 inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }
231 inline RegisterScalableTargetRequest& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}
233
235
245 inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
246 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
247 inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
248 inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
249 inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
250 inline RegisterScalableTargetRequest& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
251 inline RegisterScalableTargetRequest& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
252 inline RegisterScalableTargetRequest& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
254
256
272 inline const SuspendedState& GetSuspendedState() const{ return m_suspendedState; }
273 inline bool SuspendedStateHasBeenSet() const { return m_suspendedStateHasBeenSet; }
274 inline void SetSuspendedState(const SuspendedState& value) { m_suspendedStateHasBeenSet = true; m_suspendedState = value; }
275 inline void SetSuspendedState(SuspendedState&& value) { m_suspendedStateHasBeenSet = true; m_suspendedState = std::move(value); }
277 inline RegisterScalableTargetRequest& WithSuspendedState(SuspendedState&& value) { SetSuspendedState(std::move(value)); return *this;}
279
281
292 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
293 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
294 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
295 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
297 inline RegisterScalableTargetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
298 inline RegisterScalableTargetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
299 inline RegisterScalableTargetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
300 inline RegisterScalableTargetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
301 inline RegisterScalableTargetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
302 inline RegisterScalableTargetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
303 inline RegisterScalableTargetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
304 inline RegisterScalableTargetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
306 private:
307
308 ServiceNamespace m_serviceNamespace;
309 bool m_serviceNamespaceHasBeenSet = false;
310
311 Aws::String m_resourceId;
312 bool m_resourceIdHasBeenSet = false;
313
314 ScalableDimension m_scalableDimension;
315 bool m_scalableDimensionHasBeenSet = false;
316
317 int m_minCapacity;
318 bool m_minCapacityHasBeenSet = false;
319
320 int m_maxCapacity;
321 bool m_maxCapacityHasBeenSet = false;
322
323 Aws::String m_roleARN;
324 bool m_roleARNHasBeenSet = false;
325
326 SuspendedState m_suspendedState;
327 bool m_suspendedStateHasBeenSet = false;
328
330 bool m_tagsHasBeenSet = false;
331 };
332
333} // namespace Model
334} // namespace ApplicationAutoScaling
335} // namespace Aws
RegisterScalableTargetRequest & WithSuspendedState(SuspendedState &&value)
RegisterScalableTargetRequest & AddTags(const char *key, Aws::String &&value)
RegisterScalableTargetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
RegisterScalableTargetRequest & AddTags(const char *key, const char *value)
RegisterScalableTargetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
RegisterScalableTargetRequest & WithSuspendedState(const SuspendedState &value)
RegisterScalableTargetRequest & AddTags(Aws::String &&key, const char *value)
RegisterScalableTargetRequest & WithServiceNamespace(const ServiceNamespace &value)
RegisterScalableTargetRequest & AddTags(const Aws::String &key, Aws::String &&value)
RegisterScalableTargetRequest & AddTags(Aws::String &&key, Aws::String &&value)
RegisterScalableTargetRequest & WithServiceNamespace(ServiceNamespace &&value)
RegisterScalableTargetRequest & WithResourceId(const Aws::String &value)
RegisterScalableTargetRequest & WithRoleARN(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
RegisterScalableTargetRequest & WithScalableDimension(ScalableDimension &&value)
RegisterScalableTargetRequest & WithResourceId(Aws::String &&value)
RegisterScalableTargetRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
RegisterScalableTargetRequest & AddTags(const Aws::String &key, const Aws::String &value)
RegisterScalableTargetRequest & WithScalableDimension(const ScalableDimension &value)
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