AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename StackIdT = Aws::String>
45 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
46 template<typename StackIdT = Aws::String>
47 RegisterInstanceRequest& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
49
51
56 inline const Aws::String& GetHostname() const { return m_hostname; }
57 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
58 template<typename HostnameT = Aws::String>
59 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet = true; m_hostname = std::forward<HostnameT>(value); }
60 template<typename HostnameT = Aws::String>
61 RegisterInstanceRequest& WithHostname(HostnameT&& value) { SetHostname(std::forward<HostnameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetPublicIp() const { return m_publicIp; }
69 inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; }
70 template<typename PublicIpT = Aws::String>
71 void SetPublicIp(PublicIpT&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::forward<PublicIpT>(value); }
72 template<typename PublicIpT = Aws::String>
73 RegisterInstanceRequest& WithPublicIp(PublicIpT&& value) { SetPublicIp(std::forward<PublicIpT>(value)); return *this;}
75
77
80 inline const Aws::String& GetPrivateIp() const { return m_privateIp; }
81 inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; }
82 template<typename PrivateIpT = Aws::String>
83 void SetPrivateIp(PrivateIpT&& value) { m_privateIpHasBeenSet = true; m_privateIp = std::forward<PrivateIpT>(value); }
84 template<typename PrivateIpT = Aws::String>
85 RegisterInstanceRequest& WithPrivateIp(PrivateIpT&& value) { SetPrivateIp(std::forward<PrivateIpT>(value)); return *this;}
87
89
93 inline const Aws::String& GetRsaPublicKey() const { return m_rsaPublicKey; }
94 inline bool RsaPublicKeyHasBeenSet() const { return m_rsaPublicKeyHasBeenSet; }
95 template<typename RsaPublicKeyT = Aws::String>
96 void SetRsaPublicKey(RsaPublicKeyT&& value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey = std::forward<RsaPublicKeyT>(value); }
97 template<typename RsaPublicKeyT = Aws::String>
98 RegisterInstanceRequest& WithRsaPublicKey(RsaPublicKeyT&& value) { SetRsaPublicKey(std::forward<RsaPublicKeyT>(value)); return *this;}
100
102
105 inline const Aws::String& GetRsaPublicKeyFingerprint() const { return m_rsaPublicKeyFingerprint; }
106 inline bool RsaPublicKeyFingerprintHasBeenSet() const { return m_rsaPublicKeyFingerprintHasBeenSet; }
107 template<typename RsaPublicKeyFingerprintT = Aws::String>
108 void SetRsaPublicKeyFingerprint(RsaPublicKeyFingerprintT&& value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint = std::forward<RsaPublicKeyFingerprintT>(value); }
109 template<typename RsaPublicKeyFingerprintT = Aws::String>
110 RegisterInstanceRequest& WithRsaPublicKeyFingerprint(RsaPublicKeyFingerprintT&& value) { SetRsaPublicKeyFingerprint(std::forward<RsaPublicKeyFingerprintT>(value)); return *this;}
112
114
117 inline const InstanceIdentity& GetInstanceIdentity() const { return m_instanceIdentity; }
118 inline bool InstanceIdentityHasBeenSet() const { return m_instanceIdentityHasBeenSet; }
119 template<typename InstanceIdentityT = InstanceIdentity>
120 void SetInstanceIdentity(InstanceIdentityT&& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = std::forward<InstanceIdentityT>(value); }
121 template<typename InstanceIdentityT = InstanceIdentity>
122 RegisterInstanceRequest& WithInstanceIdentity(InstanceIdentityT&& value) { SetInstanceIdentity(std::forward<InstanceIdentityT>(value)); return *this;}
124 private:
125
126 Aws::String m_stackId;
127 bool m_stackIdHasBeenSet = false;
128
129 Aws::String m_hostname;
130 bool m_hostnameHasBeenSet = false;
131
132 Aws::String m_publicIp;
133 bool m_publicIpHasBeenSet = false;
134
135 Aws::String m_privateIp;
136 bool m_privateIpHasBeenSet = false;
137
138 Aws::String m_rsaPublicKey;
139 bool m_rsaPublicKeyHasBeenSet = false;
140
141 Aws::String m_rsaPublicKeyFingerprint;
142 bool m_rsaPublicKeyFingerprintHasBeenSet = false;
143
144 InstanceIdentity m_instanceIdentity;
145 bool m_instanceIdentityHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace OpsWorks
150} // namespace Aws
RegisterInstanceRequest & WithRsaPublicKeyFingerprint(RsaPublicKeyFingerprintT &&value)
AWS_OPSWORKS_API RegisterInstanceRequest()=default
RegisterInstanceRequest & WithRsaPublicKey(RsaPublicKeyT &&value)
RegisterInstanceRequest & WithPrivateIp(PrivateIpT &&value)
RegisterInstanceRequest & WithPublicIp(PublicIpT &&value)
void SetRsaPublicKeyFingerprint(RsaPublicKeyFingerprintT &&value)
RegisterInstanceRequest & WithInstanceIdentity(InstanceIdentityT &&value)
RegisterInstanceRequest & WithHostname(HostnameT &&value)
AWS_OPSWORKS_API Aws::String SerializePayload() const override
AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
RegisterInstanceRequest & WithStackId(StackIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String