AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StopInstancesRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.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 EC2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EC2_API StopInstancesRequest();
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 "StopInstances"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_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); }
48 inline StopInstancesRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
49 inline StopInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
50 inline StopInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
51 inline StopInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
52 inline StopInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
54
56
64 inline bool GetHibernate() const{ return m_hibernate; }
65 inline bool HibernateHasBeenSet() const { return m_hibernateHasBeenSet; }
66 inline void SetHibernate(bool value) { m_hibernateHasBeenSet = true; m_hibernate = value; }
67 inline StopInstancesRequest& WithHibernate(bool value) { SetHibernate(value); return *this;}
69
71
77 inline bool GetDryRun() const{ return m_dryRun; }
78 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
79 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
80 inline StopInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
82
84
90 inline bool GetForce() const{ return m_force; }
91 inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
92 inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
93 inline StopInstancesRequest& WithForce(bool value) { SetForce(value); return *this;}
95 private:
96
97 Aws::Vector<Aws::String> m_instanceIds;
98 bool m_instanceIdsHasBeenSet = false;
99
100 bool m_hibernate;
101 bool m_hibernateHasBeenSet = false;
102
103 bool m_dryRun;
104 bool m_dryRunHasBeenSet = false;
105
106 bool m_force;
107 bool m_forceHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace EC2
112} // namespace Aws
const Aws::Vector< Aws::String > & GetInstanceIds() const
virtual const char * GetServiceRequestName() const override
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
StopInstancesRequest & WithDryRun(bool value)
StopInstancesRequest & AddInstanceIds(Aws::String &&value)
StopInstancesRequest & AddInstanceIds(const char *value)
StopInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
StopInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
StopInstancesRequest & WithHibernate(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
StopInstancesRequest & AddInstanceIds(const Aws::String &value)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
StopInstancesRequest & WithForce(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector