AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename InstanceIdT = Aws::String>
47 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
48 template<typename InstanceIdT = Aws::String>
49 UpdateInstanceRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
51
53
56 inline const Aws::Vector<Aws::String>& GetLayerIds() const { return m_layerIds; }
57 inline bool LayerIdsHasBeenSet() const { return m_layerIdsHasBeenSet; }
58 template<typename LayerIdsT = Aws::Vector<Aws::String>>
59 void SetLayerIds(LayerIdsT&& value) { m_layerIdsHasBeenSet = true; m_layerIds = std::forward<LayerIdsT>(value); }
60 template<typename LayerIdsT = Aws::Vector<Aws::String>>
61 UpdateInstanceRequest& WithLayerIds(LayerIdsT&& value) { SetLayerIds(std::forward<LayerIdsT>(value)); return *this;}
62 template<typename LayerIdsT = Aws::String>
63 UpdateInstanceRequest& AddLayerIds(LayerIdsT&& value) { m_layerIdsHasBeenSet = true; m_layerIds.emplace_back(std::forward<LayerIdsT>(value)); return *this; }
65
67
77 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
78 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
79 template<typename InstanceTypeT = Aws::String>
80 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
81 template<typename InstanceTypeT = Aws::String>
82 UpdateInstanceRequest& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
84
86
90 inline AutoScalingType GetAutoScalingType() const { return m_autoScalingType; }
91 inline bool AutoScalingTypeHasBeenSet() const { return m_autoScalingTypeHasBeenSet; }
92 inline void SetAutoScalingType(AutoScalingType value) { m_autoScalingTypeHasBeenSet = true; m_autoScalingType = value; }
95
97
102 inline const Aws::String& GetHostname() const { return m_hostname; }
103 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
104 template<typename HostnameT = Aws::String>
105 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet = true; m_hostname = std::forward<HostnameT>(value); }
106 template<typename HostnameT = Aws::String>
107 UpdateInstanceRequest& WithHostname(HostnameT&& value) { SetHostname(std::forward<HostnameT>(value)); return *this;}
109
111
139 inline const Aws::String& GetOs() const { return m_os; }
140 inline bool OsHasBeenSet() const { return m_osHasBeenSet; }
141 template<typename OsT = Aws::String>
142 void SetOs(OsT&& value) { m_osHasBeenSet = true; m_os = std::forward<OsT>(value); }
143 template<typename OsT = Aws::String>
144 UpdateInstanceRequest& WithOs(OsT&& value) { SetOs(std::forward<OsT>(value)); return *this;}
146
148
154 inline const Aws::String& GetAmiId() const { return m_amiId; }
155 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
156 template<typename AmiIdT = Aws::String>
157 void SetAmiId(AmiIdT&& value) { m_amiIdHasBeenSet = true; m_amiId = std::forward<AmiIdT>(value); }
158 template<typename AmiIdT = Aws::String>
159 UpdateInstanceRequest& WithAmiId(AmiIdT&& value) { SetAmiId(std::forward<AmiIdT>(value)); return *this;}
161
163
166 inline const Aws::String& GetSshKeyName() const { return m_sshKeyName; }
167 inline bool SshKeyNameHasBeenSet() const { return m_sshKeyNameHasBeenSet; }
168 template<typename SshKeyNameT = Aws::String>
169 void SetSshKeyName(SshKeyNameT&& value) { m_sshKeyNameHasBeenSet = true; m_sshKeyName = std::forward<SshKeyNameT>(value); }
170 template<typename SshKeyNameT = Aws::String>
171 UpdateInstanceRequest& WithSshKeyName(SshKeyNameT&& value) { SetSshKeyName(std::forward<SshKeyNameT>(value)); return *this;}
173
175
182 inline Architecture GetArchitecture() const { return m_architecture; }
183 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
184 inline void SetArchitecture(Architecture value) { m_architectureHasBeenSet = true; m_architecture = value; }
187
189
200 inline bool GetInstallUpdatesOnBoot() const { return m_installUpdatesOnBoot; }
201 inline bool InstallUpdatesOnBootHasBeenSet() const { return m_installUpdatesOnBootHasBeenSet; }
202 inline void SetInstallUpdatesOnBoot(bool value) { m_installUpdatesOnBootHasBeenSet = true; m_installUpdatesOnBoot = value; }
203 inline UpdateInstanceRequest& WithInstallUpdatesOnBoot(bool value) { SetInstallUpdatesOnBoot(value); return *this;}
205
207
210 inline bool GetEbsOptimized() const { return m_ebsOptimized; }
211 inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
212 inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
213 inline UpdateInstanceRequest& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
215
217
230 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
231 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
232 template<typename AgentVersionT = Aws::String>
233 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
234 template<typename AgentVersionT = Aws::String>
235 UpdateInstanceRequest& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
237 private:
238
239 Aws::String m_instanceId;
240 bool m_instanceIdHasBeenSet = false;
241
242 Aws::Vector<Aws::String> m_layerIds;
243 bool m_layerIdsHasBeenSet = false;
244
245 Aws::String m_instanceType;
246 bool m_instanceTypeHasBeenSet = false;
247
248 AutoScalingType m_autoScalingType{AutoScalingType::NOT_SET};
249 bool m_autoScalingTypeHasBeenSet = false;
250
251 Aws::String m_hostname;
252 bool m_hostnameHasBeenSet = false;
253
254 Aws::String m_os;
255 bool m_osHasBeenSet = false;
256
257 Aws::String m_amiId;
258 bool m_amiIdHasBeenSet = false;
259
260 Aws::String m_sshKeyName;
261 bool m_sshKeyNameHasBeenSet = false;
262
263 Architecture m_architecture{Architecture::NOT_SET};
264 bool m_architectureHasBeenSet = false;
265
266 bool m_installUpdatesOnBoot{false};
267 bool m_installUpdatesOnBootHasBeenSet = false;
268
269 bool m_ebsOptimized{false};
270 bool m_ebsOptimizedHasBeenSet = false;
271
272 Aws::String m_agentVersion;
273 bool m_agentVersionHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace OpsWorks
278} // namespace Aws
UpdateInstanceRequest & WithOs(OsT &&value)
UpdateInstanceRequest & WithArchitecture(Architecture value)
UpdateInstanceRequest & WithAutoScalingType(AutoScalingType value)
UpdateInstanceRequest & WithInstallUpdatesOnBoot(bool value)
UpdateInstanceRequest & WithAmiId(AmiIdT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
UpdateInstanceRequest & WithInstanceType(InstanceTypeT &&value)
UpdateInstanceRequest & WithLayerIds(LayerIdsT &&value)
UpdateInstanceRequest & WithInstanceId(InstanceIdT &&value)
UpdateInstanceRequest & WithHostname(HostnameT &&value)
AWS_OPSWORKS_API UpdateInstanceRequest()=default
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateInstanceRequest & WithEbsOptimized(bool value)
UpdateInstanceRequest & WithAgentVersion(AgentVersionT &&value)
UpdateInstanceRequest & WithSshKeyName(SshKeyNameT &&value)
UpdateInstanceRequest & AddLayerIds(LayerIdsT &&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