AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateInstanceRequest.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/opsworks/OpsWorksRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/opsworks/model/AutoScalingType.h>
12#include <aws/opsworks/model/Architecture.h>
13#include <utility>
14
15namespace Aws
16{
17namespace OpsWorks
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_OPSWORKS_API UpdateInstanceRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateInstance"; }
34
35 AWS_OPSWORKS_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
47 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
48 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
49 inline UpdateInstanceRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
50 inline UpdateInstanceRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
51 inline UpdateInstanceRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetLayerIds() const{ return m_layerIds; }
59 inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; }
60 inline void SetLayerIds(const Aws::Vector<Aws::String>& value) { m_layerIdsHasBeenSet = true; m_layerIds = value; }
61 inline void SetLayerIds(Aws::Vector<Aws::String>&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::move(value); }
62 inline UpdateInstanceRequest& WithLayerIds(const Aws::Vector<Aws::String>& value) { SetLayerIds(value); return *this;}
63 inline UpdateInstanceRequest& WithLayerIds(Aws::Vector<Aws::String>&& value) { SetLayerIds(std::move(value)); return *this;}
64 inline UpdateInstanceRequest& AddLayerIds(const Aws::String& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
65 inline UpdateInstanceRequest& AddLayerIds(Aws::String&& value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(std::move(value)); return *this; }
66 inline UpdateInstanceRequest& AddLayerIds(const char* value) { m_layerIdsHasBeenSet = true; m_layerIds.push_back(value); return *this; }
68
70
80 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
81 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
82 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
83 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
84 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
85 inline UpdateInstanceRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
86 inline UpdateInstanceRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
87 inline UpdateInstanceRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
89
91
95 inline const AutoScalingType& GetAutoScalingType() const{ return m_autoScalingType; }
96 inline bool AutoScalingTypeHasBeenSet() const { return m_autoScalingTypeHasBeenSet; }
97 inline void SetAutoScalingType(const AutoScalingType& value) { m_autoScalingTypeHasBeenSet = true; m_autoScalingType = value; }
98 inline void SetAutoScalingType(AutoScalingType&& value) { m_autoScalingTypeHasBeenSet = true; m_autoScalingType = std::move(value); }
99 inline UpdateInstanceRequest& WithAutoScalingType(const AutoScalingType& value) { SetAutoScalingType(value); return *this;}
100 inline UpdateInstanceRequest& WithAutoScalingType(AutoScalingType&& value) { SetAutoScalingType(std::move(value)); return *this;}
102
104
109 inline const Aws::String& GetHostname() const{ return m_hostname; }
110 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
111 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
112 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
113 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
114 inline UpdateInstanceRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
115 inline UpdateInstanceRequest& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
116 inline UpdateInstanceRequest& WithHostname(const char* value) { SetHostname(value); return *this;}
118
120
148 inline const Aws::String& GetOs() const{ return m_os; }
149 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
150 inline void SetOs(const Aws::String& value) { m_osHasBeenSet = true; m_os = value; }
151 inline void SetOs(Aws::String&& value) { m_osHasBeenSet = true; m_os = std::move(value); }
152 inline void SetOs(const char* value) { m_osHasBeenSet = true; m_os.assign(value); }
153 inline UpdateInstanceRequest& WithOs(const Aws::String& value) { SetOs(value); return *this;}
154 inline UpdateInstanceRequest& WithOs(Aws::String&& value) { SetOs(std::move(value)); return *this;}
155 inline UpdateInstanceRequest& WithOs(const char* value) { SetOs(value); return *this;}
157
159
165 inline const Aws::String& GetAmiId() const{ return m_amiId; }
166 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
167 inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
168 inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
169 inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
170 inline UpdateInstanceRequest& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
171 inline UpdateInstanceRequest& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
172 inline UpdateInstanceRequest& WithAmiId(const char* value) { SetAmiId(value); return *this;}
174
176
179 inline const Aws::String& GetSshKeyName() const{ return m_sshKeyName; }
180 inline bool SshKeyNameHasBeenSet() const { return m_sshKeyNameHasBeenSet; }
181 inline void SetSshKeyName(const Aws::String& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = value; }
182 inline void SetSshKeyName(Aws::String&& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = std::move(value); }
183 inline void SetSshKeyName(const char* value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName.assign(value); }
184 inline UpdateInstanceRequest& WithSshKeyName(const Aws::String& value) { SetSshKeyName(value); return *this;}
185 inline UpdateInstanceRequest& WithSshKeyName(Aws::String&& value) { SetSshKeyName(std::move(value)); return *this;}
186 inline UpdateInstanceRequest& WithSshKeyName(const char* value) { SetSshKeyName(value); return *this;}
188
190
197 inline const Architecture& GetArchitecture() const{ return m_architecture; }
198 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
199 inline void SetArchitecture(const Architecture& value) { m_architectureHasBeenSet = true; m_architecture = value; }
200 inline void SetArchitecture(Architecture&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
201 inline UpdateInstanceRequest& WithArchitecture(const Architecture& value) { SetArchitecture(value); return *this;}
202 inline UpdateInstanceRequest& WithArchitecture(Architecture&& value) { SetArchitecture(std::move(value)); return *this;}
204
206
217 inline bool GetInstallUpdatesOnBoot() const{ return m_installUpdatesOnBoot; }
218 inline bool InstallUpdatesOnBootHasBeenSet() const { return m_installUpdatesOnBootHasBeenSet; }
219 inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; }
220 inline UpdateInstanceRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;}
222
224
227 inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
228 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
229 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
230 inline UpdateInstanceRequest& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
232
234
247 inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; }
248 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
249 inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; }
250 inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); }
251 inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); }
252 inline UpdateInstanceRequest& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;}
253 inline UpdateInstanceRequest& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;}
254 inline UpdateInstanceRequest& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;}
256 private:
257
258 Aws::String m_instanceId;
259 bool m_instanceIdHasBeenSet = false;
260
261 Aws::Vector<Aws::String> m_layerIds;
262 bool m_layerIdsHasBeenSet = false;
263
264 Aws::String m_instanceType;
265 bool m_instanceTypeHasBeenSet = false;
266
267 AutoScalingType m_autoScalingType;
268 bool m_autoScalingTypeHasBeenSet = false;
269
270 Aws::String m_hostname;
271 bool m_hostnameHasBeenSet = false;
272
273 Aws::String m_os;
274 bool m_osHasBeenSet = false;
275
276 Aws::String m_amiId;
277 bool m_amiIdHasBeenSet = false;
278
279 Aws::String m_sshKeyName;
280 bool m_sshKeyNameHasBeenSet = false;
281
282 Architecture m_architecture;
283 bool m_architectureHasBeenSet = false;
284
285 bool m_installUpdatesOnBoot;
286 bool m_installUpdatesOnBootHasBeenSet = false;
287
288 bool m_ebsOptimized;
289 bool m_ebsOptimizedHasBeenSet = false;
290
291 Aws::String m_agentVersion;
292 bool m_agentVersionHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace OpsWorks
297} // namespace Aws
UpdateInstanceRequest & WithOs(Aws::String &&value)
UpdateInstanceRequest & WithInstallUpdatesOnBoot(bool value)
UpdateInstanceRequest & WithInstanceId(const Aws::String &value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
UpdateInstanceRequest & WithOs(const char *value)
UpdateInstanceRequest & WithLayerIds(const Aws::Vector< Aws::String > &value)
UpdateInstanceRequest & WithAmiId(const Aws::String &value)
void SetLayerIds(Aws::Vector< Aws::String > &&value)
UpdateInstanceRequest & WithAgentVersion(Aws::String &&value)
UpdateInstanceRequest & WithAmiId(Aws::String &&value)
UpdateInstanceRequest & WithInstanceType(const Aws::String &value)
UpdateInstanceRequest & WithAgentVersion(const char *value)
UpdateInstanceRequest & WithInstanceId(const char *value)
UpdateInstanceRequest & WithInstanceType(const char *value)
UpdateInstanceRequest & WithHostname(const Aws::String &value)
UpdateInstanceRequest & WithSshKeyName(const Aws::String &value)
UpdateInstanceRequest & WithInstanceId(Aws::String &&value)
UpdateInstanceRequest & WithAgentVersion(const Aws::String &value)
UpdateInstanceRequest & WithArchitecture(const Architecture &value)
void SetAutoScalingType(const AutoScalingType &value)
UpdateInstanceRequest & WithArchitecture(Architecture &&value)
UpdateInstanceRequest & WithHostname(Aws::String &&value)
UpdateInstanceRequest & WithInstanceType(Aws::String &&value)
void SetArchitecture(const Architecture &value)
UpdateInstanceRequest & WithSshKeyName(const char *value)
void SetLayerIds(const Aws::Vector< Aws::String > &value)
UpdateInstanceRequest & WithOs(const Aws::String &value)
UpdateInstanceRequest & WithAutoScalingType(const AutoScalingType &value)
UpdateInstanceRequest & AddLayerIds(const char *value)
UpdateInstanceRequest & AddLayerIds(Aws::String &&value)
UpdateInstanceRequest & WithAmiId(const char *value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateInstanceRequest & WithEbsOptimized(bool value)
UpdateInstanceRequest & WithLayerIds(Aws::Vector< Aws::String > &&value)
UpdateInstanceRequest & WithHostname(const char *value)
UpdateInstanceRequest & WithSshKeyName(Aws::String &&value)
UpdateInstanceRequest & AddLayerIds(const Aws::String &value)
const AutoScalingType & GetAutoScalingType() const
UpdateInstanceRequest & WithAutoScalingType(AutoScalingType &&value)
const Aws::Vector< Aws::String > & GetLayerIds() const
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector