AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetachInstancesRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AutoScaling
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_AUTOSCALING_API DetachInstancesRequest();
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 "DetachInstances"; }
32
33 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
45 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
46 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
47 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
49 inline DetachInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
50 inline DetachInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
51 inline DetachInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
52 inline DetachInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
54
56
59 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
60 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
61 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
62 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
63 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
65 inline DetachInstancesRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
66 inline DetachInstancesRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
68
70
74 inline bool GetShouldDecrementDesiredCapacity() const{ return m_shouldDecrementDesiredCapacity; }
75 inline bool ShouldDecrementDesiredCapacityHasBeenSet() const { return m_shouldDecrementDesiredCapacityHasBeenSet; }
76 inline void SetShouldDecrementDesiredCapacity(bool value) { m_shouldDecrementDesiredCapacityHasBeenSet = true; m_shouldDecrementDesiredCapacity = value; }
79 private:
80
81 Aws::Vector<Aws::String> m_instanceIds;
82 bool m_instanceIdsHasBeenSet = false;
83
84 Aws::String m_autoScalingGroupName;
85 bool m_autoScalingGroupNameHasBeenSet = false;
86
87 bool m_shouldDecrementDesiredCapacity;
88 bool m_shouldDecrementDesiredCapacityHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace AutoScaling
93} // namespace Aws
DetachInstancesRequest & WithAutoScalingGroupName(Aws::String &&value)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
DetachInstancesRequest & WithAutoScalingGroupName(const char *value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
DetachInstancesRequest & AddInstanceIds(const Aws::String &value)
DetachInstancesRequest & AddInstanceIds(Aws::String &&value)
DetachInstancesRequest & WithAutoScalingGroupName(const Aws::String &value)
DetachInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
DetachInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
DetachInstancesRequest & WithShouldDecrementDesiredCapacity(bool value)
DetachInstancesRequest & AddInstanceIds(const char *value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetInstanceIds() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector