AWS SDK for C++  1.8.126
AWS SDK for C++
RegisterInstanceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace OpsWorks
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 "RegisterInstance"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetStackId() const{ return m_stackId; }
42 
46  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
47 
51  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
52 
56  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
57 
61  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
62 
66  inline RegisterInstanceRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
67 
71  inline RegisterInstanceRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
72 
76  inline RegisterInstanceRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
77 
78 
82  inline const Aws::String& GetHostname() const{ return m_hostname; }
83 
87  inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
88 
92  inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
93 
97  inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
98 
102  inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
103 
107  inline RegisterInstanceRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
108 
112  inline RegisterInstanceRequest& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
113 
117  inline RegisterInstanceRequest& WithHostname(const char* value) { SetHostname(value); return *this;}
118 
119 
123  inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
124 
128  inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
129 
133  inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
134 
138  inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
139 
143  inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
144 
148  inline RegisterInstanceRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
149 
153  inline RegisterInstanceRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
154 
158  inline RegisterInstanceRequest& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
159 
160 
164  inline const Aws::String& GetPrivateIp() const{ return m_privateIp; }
165 
169  inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; }
170 
174  inline void SetPrivateIp(const Aws::String& value) { m_privateIpHasBeenSet = true; m_privateIp = value; }
175 
179  inline void SetPrivateIp(Aws::String&& value) { m_privateIpHasBeenSet = true; m_privateIp = std::move(value); }
180 
184  inline void SetPrivateIp(const char* value) { m_privateIpHasBeenSet = true; m_privateIp.assign(value); }
185 
189  inline RegisterInstanceRequest& WithPrivateIp(const Aws::String& value) { SetPrivateIp(value); return *this;}
190 
194  inline RegisterInstanceRequest& WithPrivateIp(Aws::String&& value) { SetPrivateIp(std::move(value)); return *this;}
195 
199  inline RegisterInstanceRequest& WithPrivateIp(const char* value) { SetPrivateIp(value); return *this;}
200 
201 
206  inline const Aws::String& GetRsaPublicKey() const{ return m_rsaPublicKey; }
207 
212  inline bool RsaPublicKeyHasBeenSet() const { return m_rsaPublicKeyHasBeenSet; }
213 
218  inline void SetRsaPublicKey(const Aws::String& value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey = value; }
219 
224  inline void SetRsaPublicKey(Aws::String&& value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey = std::move(value); }
225 
230  inline void SetRsaPublicKey(const char* value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey.assign(value); }
231 
236  inline RegisterInstanceRequest& WithRsaPublicKey(const Aws::String& value) { SetRsaPublicKey(value); return *this;}
237 
242  inline RegisterInstanceRequest& WithRsaPublicKey(Aws::String&& value) { SetRsaPublicKey(std::move(value)); return *this;}
243 
248  inline RegisterInstanceRequest& WithRsaPublicKey(const char* value) { SetRsaPublicKey(value); return *this;}
249 
250 
254  inline const Aws::String& GetRsaPublicKeyFingerprint() const{ return m_rsaPublicKeyFingerprint; }
255 
259  inline bool RsaPublicKeyFingerprintHasBeenSet() const { return m_rsaPublicKeyFingerprintHasBeenSet; }
260 
264  inline void SetRsaPublicKeyFingerprint(const Aws::String& value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint = value; }
265 
269  inline void SetRsaPublicKeyFingerprint(Aws::String&& value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint = std::move(value); }
270 
274  inline void SetRsaPublicKeyFingerprint(const char* value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint.assign(value); }
275 
279  inline RegisterInstanceRequest& WithRsaPublicKeyFingerprint(const Aws::String& value) { SetRsaPublicKeyFingerprint(value); return *this;}
280 
284  inline RegisterInstanceRequest& WithRsaPublicKeyFingerprint(Aws::String&& value) { SetRsaPublicKeyFingerprint(std::move(value)); return *this;}
285 
289  inline RegisterInstanceRequest& WithRsaPublicKeyFingerprint(const char* value) { SetRsaPublicKeyFingerprint(value); return *this;}
290 
291 
295  inline const InstanceIdentity& GetInstanceIdentity() const{ return m_instanceIdentity; }
296 
300  inline bool InstanceIdentityHasBeenSet() const { return m_instanceIdentityHasBeenSet; }
301 
305  inline void SetInstanceIdentity(const InstanceIdentity& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = value; }
306 
310  inline void SetInstanceIdentity(InstanceIdentity&& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = std::move(value); }
311 
315  inline RegisterInstanceRequest& WithInstanceIdentity(const InstanceIdentity& value) { SetInstanceIdentity(value); return *this;}
316 
320  inline RegisterInstanceRequest& WithInstanceIdentity(InstanceIdentity&& value) { SetInstanceIdentity(std::move(value)); return *this;}
321 
322  private:
323 
324  Aws::String m_stackId;
325  bool m_stackIdHasBeenSet;
326 
327  Aws::String m_hostname;
328  bool m_hostnameHasBeenSet;
329 
330  Aws::String m_publicIp;
331  bool m_publicIpHasBeenSet;
332 
333  Aws::String m_privateIp;
334  bool m_privateIpHasBeenSet;
335 
336  Aws::String m_rsaPublicKey;
337  bool m_rsaPublicKeyHasBeenSet;
338 
339  Aws::String m_rsaPublicKeyFingerprint;
340  bool m_rsaPublicKeyFingerprintHasBeenSet;
341 
342  InstanceIdentity m_instanceIdentity;
343  bool m_instanceIdentityHasBeenSet;
344  };
345 
346 } // namespace Model
347 } // namespace OpsWorks
348 } // namespace Aws
Aws::OpsWorks::Model::RegisterInstanceRequest::SetRsaPublicKeyFingerprint
void SetRsaPublicKeyFingerprint(const char *value)
Definition: RegisterInstanceRequest.h:274
Aws::OpsWorks::Model::RegisterInstanceRequest::GetStackId
const Aws::String & GetStackId() const
Definition: RegisterInstanceRequest.h:41
Aws::OpsWorks::Model::RegisterInstanceRequest::SetPrivateIp
void SetPrivateIp(const char *value)
Definition: RegisterInstanceRequest.h:184
Aws::OpsWorks::Model::RegisterInstanceRequest::SetInstanceIdentity
void SetInstanceIdentity(InstanceIdentity &&value)
Definition: RegisterInstanceRequest.h:310
Aws::OpsWorks::Model::RegisterInstanceRequest::SetRsaPublicKey
void SetRsaPublicKey(Aws::String &&value)
Definition: RegisterInstanceRequest.h:224
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::RegisterInstanceRequest::WithRsaPublicKey
RegisterInstanceRequest & WithRsaPublicKey(const Aws::String &value)
Definition: RegisterInstanceRequest.h:236
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::RegisterInstanceRequest::WithPublicIp
RegisterInstanceRequest & WithPublicIp(Aws::String &&value)
Definition: RegisterInstanceRequest.h:153
Aws::OpsWorks::Model::RegisterInstanceRequest::WithPrivateIp
RegisterInstanceRequest & WithPrivateIp(const Aws::String &value)
Definition: RegisterInstanceRequest.h:189
Aws::OpsWorks::Model::RegisterInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterInstanceRequest.h:31
Aws::OpsWorks::Model::RegisterInstanceRequest::SetHostname
void SetHostname(Aws::String &&value)
Definition: RegisterInstanceRequest.h:97
Aws::OpsWorks::Model::RegisterInstanceRequest::WithHostname
RegisterInstanceRequest & WithHostname(Aws::String &&value)
Definition: RegisterInstanceRequest.h:112
Aws::OpsWorks::Model::RegisterInstanceRequest::GetPublicIp
const Aws::String & GetPublicIp() const
Definition: RegisterInstanceRequest.h:123
Aws::OpsWorks::Model::RegisterInstanceRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: RegisterInstanceRequest.h:56
Aws::OpsWorks::Model::RegisterInstanceRequest::GetHostname
const Aws::String & GetHostname() const
Definition: RegisterInstanceRequest.h:82
Aws::OpsWorks::Model::RegisterInstanceRequest::WithStackId
RegisterInstanceRequest & WithStackId(const char *value)
Definition: RegisterInstanceRequest.h:76
Aws::OpsWorks::Model::RegisterInstanceRequest::SetInstanceIdentity
void SetInstanceIdentity(const InstanceIdentity &value)
Definition: RegisterInstanceRequest.h:305
Aws::OpsWorks::Model::RegisterInstanceRequest
Definition: RegisterInstanceRequest.h:23
Aws::OpsWorks::Model::RegisterInstanceRequest::WithInstanceIdentity
RegisterInstanceRequest & WithInstanceIdentity(const InstanceIdentity &value)
Definition: RegisterInstanceRequest.h:315
Aws::OpsWorks::Model::RegisterInstanceRequest::WithHostname
RegisterInstanceRequest & WithHostname(const Aws::String &value)
Definition: RegisterInstanceRequest.h:107
Aws::OpsWorks::Model::RegisterInstanceRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: RegisterInstanceRequest.h:51
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::RegisterInstanceRequest::SetRsaPublicKeyFingerprint
void SetRsaPublicKeyFingerprint(const Aws::String &value)
Definition: RegisterInstanceRequest.h:264
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::RegisterInstanceRequest::WithRsaPublicKey
RegisterInstanceRequest & WithRsaPublicKey(const char *value)
Definition: RegisterInstanceRequest.h:248
Aws::OpsWorks::Model::RegisterInstanceRequest::SetPublicIp
void SetPublicIp(Aws::String &&value)
Definition: RegisterInstanceRequest.h:138
OpsWorksRequest.h
Aws::OpsWorks::Model::RegisterInstanceRequest::SetPublicIp
void SetPublicIp(const Aws::String &value)
Definition: RegisterInstanceRequest.h:133
Aws::OpsWorks::Model::RegisterInstanceRequest::PrivateIpHasBeenSet
bool PrivateIpHasBeenSet() const
Definition: RegisterInstanceRequest.h:169
Aws::OpsWorks::Model::RegisterInstanceRequest::WithStackId
RegisterInstanceRequest & WithStackId(const Aws::String &value)
Definition: RegisterInstanceRequest.h:66
Aws::OpsWorks::Model::RegisterInstanceRequest::SetHostname
void SetHostname(const char *value)
Definition: RegisterInstanceRequest.h:102
Aws::OpsWorks::Model::RegisterInstanceRequest::WithPublicIp
RegisterInstanceRequest & WithPublicIp(const Aws::String &value)
Definition: RegisterInstanceRequest.h:148
Aws::OpsWorks::Model::RegisterInstanceRequest::WithStackId
RegisterInstanceRequest & WithStackId(Aws::String &&value)
Definition: RegisterInstanceRequest.h:71
Aws::OpsWorks::Model::RegisterInstanceRequest::GetRsaPublicKeyFingerprint
const Aws::String & GetRsaPublicKeyFingerprint() const
Definition: RegisterInstanceRequest.h:254
Aws::OpsWorks::Model::RegisterInstanceRequest::SetHostname
void SetHostname(const Aws::String &value)
Definition: RegisterInstanceRequest.h:92
Aws::OpsWorks::Model::RegisterInstanceRequest::HostnameHasBeenSet
bool HostnameHasBeenSet() const
Definition: RegisterInstanceRequest.h:87
Aws::OpsWorks::Model::RegisterInstanceRequest::WithRsaPublicKey
RegisterInstanceRequest & WithRsaPublicKey(Aws::String &&value)
Definition: RegisterInstanceRequest.h:242
Aws::OpsWorks::Model::RegisterInstanceRequest::WithInstanceIdentity
RegisterInstanceRequest & WithInstanceIdentity(InstanceIdentity &&value)
Definition: RegisterInstanceRequest.h:320
AWSString.h
Aws::OpsWorks::Model::RegisterInstanceRequest::WithHostname
RegisterInstanceRequest & WithHostname(const char *value)
Definition: RegisterInstanceRequest.h:117
Aws::OpsWorks::Model::RegisterInstanceRequest::WithPublicIp
RegisterInstanceRequest & WithPublicIp(const char *value)
Definition: RegisterInstanceRequest.h:158
Aws::OpsWorks::Model::RegisterInstanceRequest::SetStackId
void SetStackId(const char *value)
Definition: RegisterInstanceRequest.h:61
Aws::OpsWorks::Model::RegisterInstanceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::RegisterInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::RegisterInstanceRequest::WithPrivateIp
RegisterInstanceRequest & WithPrivateIp(const char *value)
Definition: RegisterInstanceRequest.h:199
Aws::OpsWorks::Model::RegisterInstanceRequest::SetRsaPublicKeyFingerprint
void SetRsaPublicKeyFingerprint(Aws::String &&value)
Definition: RegisterInstanceRequest.h:269
Aws::OpsWorks::Model::RegisterInstanceRequest::WithPrivateIp
RegisterInstanceRequest & WithPrivateIp(Aws::String &&value)
Definition: RegisterInstanceRequest.h:194
Aws::OpsWorks::Model::RegisterInstanceRequest::WithRsaPublicKeyFingerprint
RegisterInstanceRequest & WithRsaPublicKeyFingerprint(const Aws::String &value)
Definition: RegisterInstanceRequest.h:279
Aws::OpsWorks::Model::RegisterInstanceRequest::RegisterInstanceRequest
RegisterInstanceRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::RegisterInstanceRequest::WithRsaPublicKeyFingerprint
RegisterInstanceRequest & WithRsaPublicKeyFingerprint(Aws::String &&value)
Definition: RegisterInstanceRequest.h:284
Aws::OpsWorks::Model::RegisterInstanceRequest::SetRsaPublicKey
void SetRsaPublicKey(const char *value)
Definition: RegisterInstanceRequest.h:230
InstanceIdentity.h
Aws::OpsWorks::Model::RegisterInstanceRequest::PublicIpHasBeenSet
bool PublicIpHasBeenSet() const
Definition: RegisterInstanceRequest.h:128
Aws::OpsWorks::Model::RegisterInstanceRequest::SetRsaPublicKey
void SetRsaPublicKey(const Aws::String &value)
Definition: RegisterInstanceRequest.h:218
Aws::OpsWorks::Model::RegisterInstanceRequest::InstanceIdentityHasBeenSet
bool InstanceIdentityHasBeenSet() const
Definition: RegisterInstanceRequest.h:300
Aws::OpsWorks::Model::RegisterInstanceRequest::SetPrivateIp
void SetPrivateIp(Aws::String &&value)
Definition: RegisterInstanceRequest.h:179
Aws::OpsWorks::Model::RegisterInstanceRequest::WithRsaPublicKeyFingerprint
RegisterInstanceRequest & WithRsaPublicKeyFingerprint(const char *value)
Definition: RegisterInstanceRequest.h:289
Aws::OpsWorks::Model::RegisterInstanceRequest::GetInstanceIdentity
const InstanceIdentity & GetInstanceIdentity() const
Definition: RegisterInstanceRequest.h:295
Aws::OpsWorks::Model::RegisterInstanceRequest::RsaPublicKeyFingerprintHasBeenSet
bool RsaPublicKeyFingerprintHasBeenSet() const
Definition: RegisterInstanceRequest.h:259
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::RegisterInstanceRequest::RsaPublicKeyHasBeenSet
bool RsaPublicKeyHasBeenSet() const
Definition: RegisterInstanceRequest.h:212
Aws::OpsWorks::Model::InstanceIdentity
Definition: InstanceIdentity.h:35
Aws::OpsWorks::Model::RegisterInstanceRequest::GetPrivateIp
const Aws::String & GetPrivateIp() const
Definition: RegisterInstanceRequest.h:164
Aws::OpsWorks::Model::RegisterInstanceRequest::SetPrivateIp
void SetPrivateIp(const Aws::String &value)
Definition: RegisterInstanceRequest.h:174
Aws::OpsWorks::Model::RegisterInstanceRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: RegisterInstanceRequest.h:46
Aws::OpsWorks::Model::RegisterInstanceRequest::GetRsaPublicKey
const Aws::String & GetRsaPublicKey() const
Definition: RegisterInstanceRequest.h:206
Aws::OpsWorks::Model::RegisterInstanceRequest::SetPublicIp
void SetPublicIp(const char *value)
Definition: RegisterInstanceRequest.h:143