AWS SDK for C++  1.9.129
AWS SDK for C++
StartInstancesRequest.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 "StartInstances"; }
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 StartInstancesRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
64 
68  inline StartInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
69 
73  inline StartInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
74 
78  inline StartInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
79 
83  inline StartInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
84 
85 
89  inline const Aws::String& GetAdditionalInfo() const{ return m_additionalInfo; }
90 
94  inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; }
95 
99  inline void SetAdditionalInfo(const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; }
100 
104  inline void SetAdditionalInfo(Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); }
105 
109  inline void SetAdditionalInfo(const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.assign(value); }
110 
114  inline StartInstancesRequest& WithAdditionalInfo(const Aws::String& value) { SetAdditionalInfo(value); return *this;}
115 
119  inline StartInstancesRequest& WithAdditionalInfo(Aws::String&& value) { SetAdditionalInfo(std::move(value)); return *this;}
120 
124  inline StartInstancesRequest& WithAdditionalInfo(const char* value) { SetAdditionalInfo(value); return *this;}
125 
126 
133  inline bool GetDryRun() const{ return m_dryRun; }
134 
141  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
142 
149  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
150 
157  inline StartInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
158 
159  private:
160 
161  Aws::Vector<Aws::String> m_instanceIds;
162  bool m_instanceIdsHasBeenSet;
163 
164  Aws::String m_additionalInfo;
165  bool m_additionalInfoHasBeenSet;
166 
167  bool m_dryRun;
168  bool m_dryRunHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace EC2
173 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::StartInstancesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::StartInstancesRequest::WithInstanceIds
StartInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: StartInstancesRequest.h:68
Aws::EC2::Model::StartInstancesRequest::SetAdditionalInfo
void SetAdditionalInfo(const Aws::String &value)
Definition: StartInstancesRequest.h:99
Aws::EC2::Model::StartInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::StartInstancesRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: StartInstancesRequest.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::StartInstancesRequest::SetAdditionalInfo
void SetAdditionalInfo(Aws::String &&value)
Definition: StartInstancesRequest.h:104
AWSVector.h
Aws::EC2::Model::StartInstancesRequest::SetDryRun
void SetDryRun(bool value)
Definition: StartInstancesRequest.h:149
Aws::EC2::Model::StartInstancesRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: StartInstancesRequest.h:58
Aws::EC2::Model::StartInstancesRequest::GetAdditionalInfo
const Aws::String & GetAdditionalInfo() const
Definition: StartInstancesRequest.h:89
Aws::EC2::Model::StartInstancesRequest::AddInstanceIds
StartInstancesRequest & AddInstanceIds(const Aws::String &value)
Definition: StartInstancesRequest.h:73
Aws::EC2::Model::StartInstancesRequest::AdditionalInfoHasBeenSet
bool AdditionalInfoHasBeenSet() const
Definition: StartInstancesRequest.h:94
Aws::EC2::Model::StartInstancesRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: StartInstancesRequest.h:43
Aws::EC2::Model::StartInstancesRequest::WithInstanceIds
StartInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: StartInstancesRequest.h:63
EC2Request.h
Aws::EC2::Model::StartInstancesRequest::GetDryRun
bool GetDryRun() const
Definition: StartInstancesRequest.h:133
Aws::EC2::Model::StartInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartInstancesRequest.h:31
AWSString.h
Aws::EC2::Model::StartInstancesRequest::AddInstanceIds
StartInstancesRequest & AddInstanceIds(const char *value)
Definition: StartInstancesRequest.h:83
Aws::EC2::Model::StartInstancesRequest::WithAdditionalInfo
StartInstancesRequest & WithAdditionalInfo(Aws::String &&value)
Definition: StartInstancesRequest.h:119
Aws::EC2::Model::StartInstancesRequest::WithAdditionalInfo
StartInstancesRequest & WithAdditionalInfo(const char *value)
Definition: StartInstancesRequest.h:124
Aws::EC2::Model::StartInstancesRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: StartInstancesRequest.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::StartInstancesRequest::SetAdditionalInfo
void SetAdditionalInfo(const char *value)
Definition: StartInstancesRequest.h:109
Aws::EC2::Model::StartInstancesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: StartInstancesRequest.h:141
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::StartInstancesRequest
Definition: StartInstancesRequest.h:23
Aws::EC2::Model::StartInstancesRequest::WithDryRun
StartInstancesRequest & WithDryRun(bool value)
Definition: StartInstancesRequest.h:157
EC2_EXPORTS.h
Aws::EC2::Model::StartInstancesRequest::WithAdditionalInfo
StartInstancesRequest & WithAdditionalInfo(const Aws::String &value)
Definition: StartInstancesRequest.h:114
Aws::EC2::Model::StartInstancesRequest::StartInstancesRequest
StartInstancesRequest()
Aws::EC2::Model::StartInstancesRequest::AddInstanceIds
StartInstancesRequest & AddInstanceIds(Aws::String &&value)
Definition: StartInstancesRequest.h:78