AWS SDK for C++  1.9.109
AWS SDK for C++
TerminateInstanceInAutoScalingGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AutoScaling
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "TerminateInstanceInAutoScalingGroup"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
43 
47  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 
52  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
53 
57  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
58 
62  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
63 
67  inline TerminateInstanceInAutoScalingGroupRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
68 
72  inline TerminateInstanceInAutoScalingGroupRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
73 
77  inline TerminateInstanceInAutoScalingGroupRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
78 
79 
84  inline bool GetShouldDecrementDesiredCapacity() const{ return m_shouldDecrementDesiredCapacity; }
85 
90  inline bool ShouldDecrementDesiredCapacityHasBeenSet() const { return m_shouldDecrementDesiredCapacityHasBeenSet; }
91 
96  inline void SetShouldDecrementDesiredCapacity(bool value) { m_shouldDecrementDesiredCapacityHasBeenSet = true; m_shouldDecrementDesiredCapacity = value; }
97 
102  inline TerminateInstanceInAutoScalingGroupRequest& WithShouldDecrementDesiredCapacity(bool value) { SetShouldDecrementDesiredCapacity(value); return *this;}
103 
104  private:
105 
106  Aws::String m_instanceId;
107  bool m_instanceIdHasBeenSet;
108 
109  bool m_shouldDecrementDesiredCapacity;
110  bool m_shouldDecrementDesiredCapacityHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace AutoScaling
115 } // namespace Aws
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::GetShouldDecrementDesiredCapacity
bool GetShouldDecrementDesiredCapacity() const
Definition: TerminateInstanceInAutoScalingGroupRequest.h:84
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: TerminateInstanceInAutoScalingGroupRequest.h:52
Aws::Http::URI
Definition: URI.h:32
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::ShouldDecrementDesiredCapacityHasBeenSet
bool ShouldDecrementDesiredCapacityHasBeenSet() const
Definition: TerminateInstanceInAutoScalingGroupRequest.h:90
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::TerminateInstanceInAutoScalingGroupRequest
TerminateInstanceInAutoScalingGroupRequest()
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::WithInstanceId
TerminateInstanceInAutoScalingGroupRequest & WithInstanceId(const char *value)
Definition: TerminateInstanceInAutoScalingGroupRequest.h:77
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::WithShouldDecrementDesiredCapacity
TerminateInstanceInAutoScalingGroupRequest & WithShouldDecrementDesiredCapacity(bool value)
Definition: TerminateInstanceInAutoScalingGroupRequest.h:102
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: TerminateInstanceInAutoScalingGroupRequest.h:62
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: TerminateInstanceInAutoScalingGroupRequest.h:47
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest
Definition: TerminateInstanceInAutoScalingGroupRequest.h:22
AutoScalingRequest.h
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TerminateInstanceInAutoScalingGroupRequest.h:30
AWSString.h
Aws::AutoScaling::AutoScalingRequest
Definition: AutoScalingRequest.h:17
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AutoScaling_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::SetShouldDecrementDesiredCapacity
void SetShouldDecrementDesiredCapacity(bool value)
Definition: TerminateInstanceInAutoScalingGroupRequest.h:96
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: TerminateInstanceInAutoScalingGroupRequest.h:42
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: TerminateInstanceInAutoScalingGroupRequest.h:57
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::WithInstanceId
TerminateInstanceInAutoScalingGroupRequest & WithInstanceId(const Aws::String &value)
Definition: TerminateInstanceInAutoScalingGroupRequest.h:67
Aws::AutoScaling::Model::TerminateInstanceInAutoScalingGroupRequest::WithInstanceId
TerminateInstanceInAutoScalingGroupRequest & WithInstanceId(Aws::String &&value)
Definition: TerminateInstanceInAutoScalingGroupRequest.h:72