AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterInstanceRequest.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/opsworks/model/InstanceIdentity.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpsWorks
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPSWORKS_API RegisterInstanceRequest();
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_OPSWORKS_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetStackId() const{ return m_stackId; }
43 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
44 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
45 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
46 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
47 inline RegisterInstanceRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
48 inline RegisterInstanceRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
49 inline RegisterInstanceRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
51
53
58 inline const Aws::String& GetHostname() const{ return m_hostname; }
59 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
60 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
61 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
62 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
63 inline RegisterInstanceRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
64 inline RegisterInstanceRequest& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
65 inline RegisterInstanceRequest& WithHostname(const char* value) { SetHostname(value); return *this;}
67
69
72 inline const Aws::String& GetPublicIp() const{ return m_publicIp; }
73 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
74 inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; }
75 inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); }
76 inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); }
77 inline RegisterInstanceRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;}
78 inline RegisterInstanceRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;}
79 inline RegisterInstanceRequest& WithPublicIp(const char* value) { SetPublicIp(value); return *this;}
81
83
86 inline const Aws::String& GetPrivateIp() const{ return m_privateIp; }
87 inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; }
88 inline void SetPrivateIp(const Aws::String& value) { m_privateIpHasBeenSet = true; m_privateIp = value; }
89 inline void SetPrivateIp(Aws::String&& value) { m_privateIpHasBeenSet = true; m_privateIp = std::move(value); }
90 inline void SetPrivateIp(const char* value) { m_privateIpHasBeenSet = true; m_privateIp.assign(value); }
91 inline RegisterInstanceRequest& WithPrivateIp(const Aws::String& value) { SetPrivateIp(value); return *this;}
92 inline RegisterInstanceRequest& WithPrivateIp(Aws::String&& value) { SetPrivateIp(std::move(value)); return *this;}
93 inline RegisterInstanceRequest& WithPrivateIp(const char* value) { SetPrivateIp(value); return *this;}
95
97
101 inline const Aws::String& GetRsaPublicKey() const{ return m_rsaPublicKey; }
102 inline bool RsaPublicKeyHasBeenSet() const { return m_rsaPublicKeyHasBeenSet; }
103 inline void SetRsaPublicKey(const Aws::String& value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey = value; }
104 inline void SetRsaPublicKey(Aws::String&& value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey = std::move(value); }
105 inline void SetRsaPublicKey(const char* value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey.assign(value); }
106 inline RegisterInstanceRequest& WithRsaPublicKey(const Aws::String& value) { SetRsaPublicKey(value); return *this;}
107 inline RegisterInstanceRequest& WithRsaPublicKey(Aws::String&& value) { SetRsaPublicKey(std::move(value)); return *this;}
108 inline RegisterInstanceRequest& WithRsaPublicKey(const char* value) { SetRsaPublicKey(value); return *this;}
110
112
115 inline const Aws::String& GetRsaPublicKeyFingerprint() const{ return m_rsaPublicKeyFingerprint; }
116 inline bool RsaPublicKeyFingerprintHasBeenSet() const { return m_rsaPublicKeyFingerprintHasBeenSet; }
117 inline void SetRsaPublicKeyFingerprint(const Aws::String& value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint = value; }
118 inline void SetRsaPublicKeyFingerprint(Aws::String&& value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint = std::move(value); }
119 inline void SetRsaPublicKeyFingerprint(const char* value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint.assign(value); }
122 inline RegisterInstanceRequest& WithRsaPublicKeyFingerprint(const char* value) { SetRsaPublicKeyFingerprint(value); return *this;}
124
126
129 inline const InstanceIdentity& GetInstanceIdentity() const{ return m_instanceIdentity; }
130 inline bool InstanceIdentityHasBeenSet() const { return m_instanceIdentityHasBeenSet; }
131 inline void SetInstanceIdentity(const InstanceIdentity& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = value; }
132 inline void SetInstanceIdentity(InstanceIdentity&& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = std::move(value); }
134 inline RegisterInstanceRequest& WithInstanceIdentity(InstanceIdentity&& value) { SetInstanceIdentity(std::move(value)); return *this;}
136 private:
137
138 Aws::String m_stackId;
139 bool m_stackIdHasBeenSet = false;
140
141 Aws::String m_hostname;
142 bool m_hostnameHasBeenSet = false;
143
144 Aws::String m_publicIp;
145 bool m_publicIpHasBeenSet = false;
146
147 Aws::String m_privateIp;
148 bool m_privateIpHasBeenSet = false;
149
150 Aws::String m_rsaPublicKey;
151 bool m_rsaPublicKeyHasBeenSet = false;
152
153 Aws::String m_rsaPublicKeyFingerprint;
154 bool m_rsaPublicKeyFingerprintHasBeenSet = false;
155
156 InstanceIdentity m_instanceIdentity;
157 bool m_instanceIdentityHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace OpsWorks
162} // namespace Aws
RegisterInstanceRequest & WithHostname(const Aws::String &value)
RegisterInstanceRequest & WithHostname(const char *value)
RegisterInstanceRequest & WithInstanceIdentity(InstanceIdentity &&value)
RegisterInstanceRequest & WithInstanceIdentity(const InstanceIdentity &value)
void SetRsaPublicKeyFingerprint(const Aws::String &value)
RegisterInstanceRequest & WithStackId(const char *value)
RegisterInstanceRequest & WithRsaPublicKey(const char *value)
RegisterInstanceRequest & WithStackId(Aws::String &&value)
RegisterInstanceRequest & WithRsaPublicKeyFingerprint(const Aws::String &value)
RegisterInstanceRequest & WithRsaPublicKey(const Aws::String &value)
RegisterInstanceRequest & WithHostname(Aws::String &&value)
void SetInstanceIdentity(const InstanceIdentity &value)
RegisterInstanceRequest & WithPublicIp(const Aws::String &value)
RegisterInstanceRequest & WithStackId(const Aws::String &value)
RegisterInstanceRequest & WithPublicIp(Aws::String &&value)
RegisterInstanceRequest & WithPrivateIp(const Aws::String &value)
RegisterInstanceRequest & WithRsaPublicKeyFingerprint(Aws::String &&value)
RegisterInstanceRequest & WithPrivateIp(const char *value)
RegisterInstanceRequest & WithRsaPublicKeyFingerprint(const char *value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
RegisterInstanceRequest & WithPublicIp(const char *value)
RegisterInstanceRequest & WithPrivateIp(Aws::String &&value)
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterInstanceRequest & WithRsaPublicKey(Aws::String &&value)
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