/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace EC2InstanceConnect { namespace Model { /** */ class SendSSHPublicKeyRequest : public EC2InstanceConnectRequest { public: AWS_EC2INSTANCECONNECT_API SendSSHPublicKeyRequest(); // 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 "SendSSHPublicKey"; } AWS_EC2INSTANCECONNECT_API Aws::String SerializePayload() const override; AWS_EC2INSTANCECONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the EC2 instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The ID of the EC2 instance.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The ID of the EC2 instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The ID of the EC2 instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The ID of the EC2 instance.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The ID of the EC2 instance.

*/ inline SendSSHPublicKeyRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The ID of the EC2 instance.

*/ inline SendSSHPublicKeyRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The ID of the EC2 instance.

*/ inline SendSSHPublicKeyRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The OS user on the EC2 instance for whom the key can be used to * authenticate.

*/ inline const Aws::String& GetInstanceOSUser() const{ return m_instanceOSUser; } /** *

The OS user on the EC2 instance for whom the key can be used to * authenticate.

*/ inline bool InstanceOSUserHasBeenSet() const { return m_instanceOSUserHasBeenSet; } /** *

The OS user on the EC2 instance for whom the key can be used to * authenticate.

*/ inline void SetInstanceOSUser(const Aws::String& value) { m_instanceOSUserHasBeenSet = true; m_instanceOSUser = value; } /** *

The OS user on the EC2 instance for whom the key can be used to * authenticate.

*/ inline void SetInstanceOSUser(Aws::String&& value) { m_instanceOSUserHasBeenSet = true; m_instanceOSUser = std::move(value); } /** *

The OS user on the EC2 instance for whom the key can be used to * authenticate.

*/ inline void SetInstanceOSUser(const char* value) { m_instanceOSUserHasBeenSet = true; m_instanceOSUser.assign(value); } /** *

The OS user on the EC2 instance for whom the key can be used to * authenticate.

*/ inline SendSSHPublicKeyRequest& WithInstanceOSUser(const Aws::String& value) { SetInstanceOSUser(value); return *this;} /** *

The OS user on the EC2 instance for whom the key can be used to * authenticate.

*/ inline SendSSHPublicKeyRequest& WithInstanceOSUser(Aws::String&& value) { SetInstanceOSUser(std::move(value)); return *this;} /** *

The OS user on the EC2 instance for whom the key can be used to * authenticate.

*/ inline SendSSHPublicKeyRequest& WithInstanceOSUser(const char* value) { SetInstanceOSUser(value); return *this;} /** *

The public key material. To use the public key, you must have the matching * private key.

*/ inline const Aws::String& GetSSHPublicKey() const{ return m_sSHPublicKey; } /** *

The public key material. To use the public key, you must have the matching * private key.

*/ inline bool SSHPublicKeyHasBeenSet() const { return m_sSHPublicKeyHasBeenSet; } /** *

The public key material. To use the public key, you must have the matching * private key.

*/ inline void SetSSHPublicKey(const Aws::String& value) { m_sSHPublicKeyHasBeenSet = true; m_sSHPublicKey = value; } /** *

The public key material. To use the public key, you must have the matching * private key.

*/ inline void SetSSHPublicKey(Aws::String&& value) { m_sSHPublicKeyHasBeenSet = true; m_sSHPublicKey = std::move(value); } /** *

The public key material. To use the public key, you must have the matching * private key.

*/ inline void SetSSHPublicKey(const char* value) { m_sSHPublicKeyHasBeenSet = true; m_sSHPublicKey.assign(value); } /** *

The public key material. To use the public key, you must have the matching * private key.

*/ inline SendSSHPublicKeyRequest& WithSSHPublicKey(const Aws::String& value) { SetSSHPublicKey(value); return *this;} /** *

The public key material. To use the public key, you must have the matching * private key.

*/ inline SendSSHPublicKeyRequest& WithSSHPublicKey(Aws::String&& value) { SetSSHPublicKey(std::move(value)); return *this;} /** *

The public key material. To use the public key, you must have the matching * private key.

*/ inline SendSSHPublicKeyRequest& WithSSHPublicKey(const char* value) { SetSSHPublicKey(value); return *this;} /** *

The Availability Zone in which the EC2 instance was launched.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone in which the EC2 instance was launched.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone in which the EC2 instance was launched.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone in which the EC2 instance was launched.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone in which the EC2 instance was launched.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone in which the EC2 instance was launched.

*/ inline SendSSHPublicKeyRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone in which the EC2 instance was launched.

*/ inline SendSSHPublicKeyRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone in which the EC2 instance was launched.

*/ inline SendSSHPublicKeyRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_instanceOSUser; bool m_instanceOSUserHasBeenSet = false; Aws::String m_sSHPublicKey; bool m_sSHPublicKeyHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; }; } // namespace Model } // namespace EC2InstanceConnect } // namespace Aws