AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutWarmPoolRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling/model/WarmPoolState.h>
11#include <aws/autoscaling/model/InstanceReusePolicy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AutoScaling
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_AUTOSCALING_API PutWarmPoolRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutWarmPool"; }
33
34 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
46 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
47 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
48 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
49 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
51 inline PutWarmPoolRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
52 inline PutWarmPoolRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
54
56
75 inline int GetMaxGroupPreparedCapacity() const{ return m_maxGroupPreparedCapacity; }
76 inline bool MaxGroupPreparedCapacityHasBeenSet() const { return m_maxGroupPreparedCapacityHasBeenSet; }
77 inline void SetMaxGroupPreparedCapacity(int value) { m_maxGroupPreparedCapacityHasBeenSet = true; m_maxGroupPreparedCapacity = value; }
80
82
87 inline int GetMinSize() const{ return m_minSize; }
88 inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
89 inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
90 inline PutWarmPoolRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
92
94
98 inline const WarmPoolState& GetPoolState() const{ return m_poolState; }
99 inline bool PoolStateHasBeenSet() const { return m_poolStateHasBeenSet; }
100 inline void SetPoolState(const WarmPoolState& value) { m_poolStateHasBeenSet = true; m_poolState = value; }
101 inline void SetPoolState(WarmPoolState&& value) { m_poolStateHasBeenSet = true; m_poolState = std::move(value); }
102 inline PutWarmPoolRequest& WithPoolState(const WarmPoolState& value) { SetPoolState(value); return *this;}
103 inline PutWarmPoolRequest& WithPoolState(WarmPoolState&& value) { SetPoolState(std::move(value)); return *this;}
105
107
112 inline const InstanceReusePolicy& GetInstanceReusePolicy() const{ return m_instanceReusePolicy; }
113 inline bool InstanceReusePolicyHasBeenSet() const { return m_instanceReusePolicyHasBeenSet; }
114 inline void SetInstanceReusePolicy(const InstanceReusePolicy& value) { m_instanceReusePolicyHasBeenSet = true; m_instanceReusePolicy = value; }
115 inline void SetInstanceReusePolicy(InstanceReusePolicy&& value) { m_instanceReusePolicyHasBeenSet = true; m_instanceReusePolicy = std::move(value); }
119 private:
120
121 Aws::String m_autoScalingGroupName;
122 bool m_autoScalingGroupNameHasBeenSet = false;
123
124 int m_maxGroupPreparedCapacity;
125 bool m_maxGroupPreparedCapacityHasBeenSet = false;
126
127 int m_minSize;
128 bool m_minSizeHasBeenSet = false;
129
130 WarmPoolState m_poolState;
131 bool m_poolStateHasBeenSet = false;
132
133 InstanceReusePolicy m_instanceReusePolicy;
134 bool m_instanceReusePolicyHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace AutoScaling
139} // namespace Aws
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
const InstanceReusePolicy & GetInstanceReusePolicy() const
PutWarmPoolRequest & WithAutoScalingGroupName(const Aws::String &value)
void SetPoolState(const WarmPoolState &value)
PutWarmPoolRequest & WithMaxGroupPreparedCapacity(int value)
PutWarmPoolRequest & WithMinSize(int value)
void SetInstanceReusePolicy(InstanceReusePolicy &&value)
const Aws::String & GetAutoScalingGroupName() const
PutWarmPoolRequest & WithInstanceReusePolicy(const InstanceReusePolicy &value)
virtual const char * GetServiceRequestName() const override
PutWarmPoolRequest & WithPoolState(WarmPoolState &&value)
PutWarmPoolRequest & WithInstanceReusePolicy(InstanceReusePolicy &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutWarmPoolRequest & WithAutoScalingGroupName(Aws::String &&value)
PutWarmPoolRequest & WithPoolState(const WarmPoolState &value)
void SetAutoScalingGroupName(const Aws::String &value)
void SetInstanceReusePolicy(const InstanceReusePolicy &value)
PutWarmPoolRequest & WithAutoScalingGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String