AWS SDK for C++  1.8.71
AWS SDK for C++
ExitStandbyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AutoScaling
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "ExitStandby"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
44 
48  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
49 
53  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
54 
58  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
59 
63  inline ExitStandbyRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
64 
68  inline ExitStandbyRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
69 
73  inline ExitStandbyRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
74 
78  inline ExitStandbyRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
79 
83  inline ExitStandbyRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
84 
85 
89  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
90 
94  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
95 
99  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
100 
104  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
105 
109  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
110 
114  inline ExitStandbyRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
115 
119  inline ExitStandbyRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
120 
124  inline ExitStandbyRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
125 
126  private:
127 
128  Aws::Vector<Aws::String> m_instanceIds;
129  bool m_instanceIdsHasBeenSet;
130 
131  Aws::String m_autoScalingGroupName;
132  bool m_autoScalingGroupNameHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace AutoScaling
137 } // namespace Aws
void SetAutoScalingGroupName(const Aws::String &value)
ExitStandbyRequest & AddInstanceIds(const Aws::String &value)
ExitStandbyRequest & WithAutoScalingGroupName(Aws::String &&value)
ExitStandbyRequest & AddInstanceIds(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
ExitStandbyRequest & WithAutoScalingGroupName(const Aws::String &value)
ExitStandbyRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
ExitStandbyRequest & WithAutoScalingGroupName(const char *value)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetAutoScalingGroupName() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Vector< Aws::String > & GetInstanceIds() const
ExitStandbyRequest & AddInstanceIds(const char *value)
ExitStandbyRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
#define AWS_AUTOSCALING_API