/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace OpsWorks { namespace Model { /** */ class RegisterInstanceRequest : public OpsWorksRequest { public: AWS_OPSWORKS_API RegisterInstanceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RegisterInstance"; } AWS_OPSWORKS_API Aws::String SerializePayload() const override; AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the stack that the instance is to be registered with.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

The ID of the stack that the instance is to be registered with.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

The ID of the stack that the instance is to be registered with.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

The ID of the stack that the instance is to be registered with.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

The ID of the stack that the instance is to be registered with.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

The ID of the stack that the instance is to be registered with.

*/ inline RegisterInstanceRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The ID of the stack that the instance is to be registered with.

*/ inline RegisterInstanceRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

The ID of the stack that the instance is to be registered with.

*/ inline RegisterInstanceRequest& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

The instance's hostname.

*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *

The instance's hostname.

*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *

The instance's hostname.

*/ inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *

The instance's hostname.

*/ inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *

The instance's hostname.

*/ inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); } /** *

The instance's hostname.

*/ inline RegisterInstanceRequest& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *

The instance's hostname.

*/ inline RegisterInstanceRequest& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *

The instance's hostname.

*/ inline RegisterInstanceRequest& WithHostname(const char* value) { SetHostname(value); return *this;} /** *

The instance's public IP address.

*/ inline const Aws::String& GetPublicIp() const{ return m_publicIp; } /** *

The instance's public IP address.

*/ inline bool PublicIpHasBeenSet() const { return m_publicIpHasBeenSet; } /** *

The instance's public IP address.

*/ inline void SetPublicIp(const Aws::String& value) { m_publicIpHasBeenSet = true; m_publicIp = value; } /** *

The instance's public IP address.

*/ inline void SetPublicIp(Aws::String&& value) { m_publicIpHasBeenSet = true; m_publicIp = std::move(value); } /** *

The instance's public IP address.

*/ inline void SetPublicIp(const char* value) { m_publicIpHasBeenSet = true; m_publicIp.assign(value); } /** *

The instance's public IP address.

*/ inline RegisterInstanceRequest& WithPublicIp(const Aws::String& value) { SetPublicIp(value); return *this;} /** *

The instance's public IP address.

*/ inline RegisterInstanceRequest& WithPublicIp(Aws::String&& value) { SetPublicIp(std::move(value)); return *this;} /** *

The instance's public IP address.

*/ inline RegisterInstanceRequest& WithPublicIp(const char* value) { SetPublicIp(value); return *this;} /** *

The instance's private IP address.

*/ inline const Aws::String& GetPrivateIp() const{ return m_privateIp; } /** *

The instance's private IP address.

*/ inline bool PrivateIpHasBeenSet() const { return m_privateIpHasBeenSet; } /** *

The instance's private IP address.

*/ inline void SetPrivateIp(const Aws::String& value) { m_privateIpHasBeenSet = true; m_privateIp = value; } /** *

The instance's private IP address.

*/ inline void SetPrivateIp(Aws::String&& value) { m_privateIpHasBeenSet = true; m_privateIp = std::move(value); } /** *

The instance's private IP address.

*/ inline void SetPrivateIp(const char* value) { m_privateIpHasBeenSet = true; m_privateIp.assign(value); } /** *

The instance's private IP address.

*/ inline RegisterInstanceRequest& WithPrivateIp(const Aws::String& value) { SetPrivateIp(value); return *this;} /** *

The instance's private IP address.

*/ inline RegisterInstanceRequest& WithPrivateIp(Aws::String&& value) { SetPrivateIp(std::move(value)); return *this;} /** *

The instance's private IP address.

*/ inline RegisterInstanceRequest& WithPrivateIp(const char* value) { SetPrivateIp(value); return *this;} /** *

The instances public RSA key. This key is used to encrypt communication * between the instance and the service.

*/ inline const Aws::String& GetRsaPublicKey() const{ return m_rsaPublicKey; } /** *

The instances public RSA key. This key is used to encrypt communication * between the instance and the service.

*/ inline bool RsaPublicKeyHasBeenSet() const { return m_rsaPublicKeyHasBeenSet; } /** *

The instances public RSA key. This key is used to encrypt communication * between the instance and the service.

*/ inline void SetRsaPublicKey(const Aws::String& value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey = value; } /** *

The instances public RSA key. This key is used to encrypt communication * between the instance and the service.

*/ inline void SetRsaPublicKey(Aws::String&& value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey = std::move(value); } /** *

The instances public RSA key. This key is used to encrypt communication * between the instance and the service.

*/ inline void SetRsaPublicKey(const char* value) { m_rsaPublicKeyHasBeenSet = true; m_rsaPublicKey.assign(value); } /** *

The instances public RSA key. This key is used to encrypt communication * between the instance and the service.

*/ inline RegisterInstanceRequest& WithRsaPublicKey(const Aws::String& value) { SetRsaPublicKey(value); return *this;} /** *

The instances public RSA key. This key is used to encrypt communication * between the instance and the service.

*/ inline RegisterInstanceRequest& WithRsaPublicKey(Aws::String&& value) { SetRsaPublicKey(std::move(value)); return *this;} /** *

The instances public RSA key. This key is used to encrypt communication * between the instance and the service.

*/ inline RegisterInstanceRequest& WithRsaPublicKey(const char* value) { SetRsaPublicKey(value); return *this;} /** *

The instances public RSA key fingerprint.

*/ inline const Aws::String& GetRsaPublicKeyFingerprint() const{ return m_rsaPublicKeyFingerprint; } /** *

The instances public RSA key fingerprint.

*/ inline bool RsaPublicKeyFingerprintHasBeenSet() const { return m_rsaPublicKeyFingerprintHasBeenSet; } /** *

The instances public RSA key fingerprint.

*/ inline void SetRsaPublicKeyFingerprint(const Aws::String& value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint = value; } /** *

The instances public RSA key fingerprint.

*/ inline void SetRsaPublicKeyFingerprint(Aws::String&& value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint = std::move(value); } /** *

The instances public RSA key fingerprint.

*/ inline void SetRsaPublicKeyFingerprint(const char* value) { m_rsaPublicKeyFingerprintHasBeenSet = true; m_rsaPublicKeyFingerprint.assign(value); } /** *

The instances public RSA key fingerprint.

*/ inline RegisterInstanceRequest& WithRsaPublicKeyFingerprint(const Aws::String& value) { SetRsaPublicKeyFingerprint(value); return *this;} /** *

The instances public RSA key fingerprint.

*/ inline RegisterInstanceRequest& WithRsaPublicKeyFingerprint(Aws::String&& value) { SetRsaPublicKeyFingerprint(std::move(value)); return *this;} /** *

The instances public RSA key fingerprint.

*/ inline RegisterInstanceRequest& WithRsaPublicKeyFingerprint(const char* value) { SetRsaPublicKeyFingerprint(value); return *this;} /** *

An InstanceIdentity object that contains the instance's identity.

*/ inline const InstanceIdentity& GetInstanceIdentity() const{ return m_instanceIdentity; } /** *

An InstanceIdentity object that contains the instance's identity.

*/ inline bool InstanceIdentityHasBeenSet() const { return m_instanceIdentityHasBeenSet; } /** *

An InstanceIdentity object that contains the instance's identity.

*/ inline void SetInstanceIdentity(const InstanceIdentity& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = value; } /** *

An InstanceIdentity object that contains the instance's identity.

*/ inline void SetInstanceIdentity(InstanceIdentity&& value) { m_instanceIdentityHasBeenSet = true; m_instanceIdentity = std::move(value); } /** *

An InstanceIdentity object that contains the instance's identity.

*/ inline RegisterInstanceRequest& WithInstanceIdentity(const InstanceIdentity& value) { SetInstanceIdentity(value); return *this;} /** *

An InstanceIdentity object that contains the instance's identity.

*/ inline RegisterInstanceRequest& WithInstanceIdentity(InstanceIdentity&& value) { SetInstanceIdentity(std::move(value)); return *this;} private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_hostname; bool m_hostnameHasBeenSet = false; Aws::String m_publicIp; bool m_publicIpHasBeenSet = false; Aws::String m_privateIp; bool m_privateIpHasBeenSet = false; Aws::String m_rsaPublicKey; bool m_rsaPublicKeyHasBeenSet = false; Aws::String m_rsaPublicKeyFingerprint; bool m_rsaPublicKeyFingerprintHasBeenSet = false; InstanceIdentity m_instanceIdentity; bool m_instanceIdentityHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws