AWS SDK for C++  1.9.67
AWS SDK for C++
RebootInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
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 "RebootInstances"; }
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 RebootInstancesRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
64 
68  inline RebootInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
69 
73  inline RebootInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
74 
78  inline RebootInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
79 
83  inline RebootInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
84 
85 
92  inline bool GetDryRun() const{ return m_dryRun; }
93 
100  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
101 
108  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
109 
116  inline RebootInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
117 
118  private:
119 
120  Aws::Vector<Aws::String> m_instanceIds;
121  bool m_instanceIdsHasBeenSet;
122 
123  bool m_dryRun;
124  bool m_dryRunHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace EC2
129 } // namespace Aws
Aws::EC2::Model::RebootInstancesRequest::AddInstanceIds
RebootInstancesRequest & AddInstanceIds(const char *value)
Definition: RebootInstancesRequest.h:83
Aws::EC2::Model::RebootInstancesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::RebootInstancesRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: RebootInstancesRequest.h:58
Aws::EC2::Model::RebootInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::RebootInstancesRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: RebootInstancesRequest.h:53
Aws::EC2::Model::RebootInstancesRequest::WithDryRun
RebootInstancesRequest & WithDryRun(bool value)
Definition: RebootInstancesRequest.h:116
Aws::EC2::Model::RebootInstancesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: RebootInstancesRequest.h:100
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::RebootInstancesRequest::WithInstanceIds
RebootInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: RebootInstancesRequest.h:63
AWSVector.h
Aws::EC2::Model::RebootInstancesRequest::RebootInstancesRequest
RebootInstancesRequest()
Aws::EC2::Model::RebootInstancesRequest::GetDryRun
bool GetDryRun() const
Definition: RebootInstancesRequest.h:92
Aws::EC2::Model::RebootInstancesRequest::AddInstanceIds
RebootInstancesRequest & AddInstanceIds(Aws::String &&value)
Definition: RebootInstancesRequest.h:78
Aws::EC2::Model::RebootInstancesRequest::SetDryRun
void SetDryRun(bool value)
Definition: RebootInstancesRequest.h:108
EC2Request.h
Aws::EC2::Model::RebootInstancesRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: RebootInstancesRequest.h:43
AWSString.h
Aws::EC2::Model::RebootInstancesRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: RebootInstancesRequest.h:48
Aws::EC2::Model::RebootInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RebootInstancesRequest.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RebootInstancesRequest::WithInstanceIds
RebootInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: RebootInstancesRequest.h:68
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::RebootInstancesRequest
Definition: RebootInstancesRequest.h:23
EC2_EXPORTS.h
Aws::EC2::Model::RebootInstancesRequest::AddInstanceIds
RebootInstancesRequest & AddInstanceIds(const Aws::String &value)
Definition: RebootInstancesRequest.h:73