/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class ImportKeyPairResponse { public: AWS_EC2_API ImportKeyPairResponse(); AWS_EC2_API ImportKeyPairResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API ImportKeyPairResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *
  • For RSA key pairs, the key fingerprint is the MD5 public key * fingerprint as specified in section 4 of RFC 4716.

  • For ED25519 * key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is * the default for OpenSSH, starting with OpenSSH 6.8.

*/ inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; } /** *
  • For RSA key pairs, the key fingerprint is the MD5 public key * fingerprint as specified in section 4 of RFC 4716.

  • For ED25519 * key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is * the default for OpenSSH, starting with OpenSSH 6.8.

*/ inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprint = value; } /** *
  • For RSA key pairs, the key fingerprint is the MD5 public key * fingerprint as specified in section 4 of RFC 4716.

  • For ED25519 * key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is * the default for OpenSSH, starting with OpenSSH 6.8.

*/ inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprint = std::move(value); } /** *
  • For RSA key pairs, the key fingerprint is the MD5 public key * fingerprint as specified in section 4 of RFC 4716.

  • For ED25519 * key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is * the default for OpenSSH, starting with OpenSSH 6.8.

*/ inline void SetKeyFingerprint(const char* value) { m_keyFingerprint.assign(value); } /** *
  • For RSA key pairs, the key fingerprint is the MD5 public key * fingerprint as specified in section 4 of RFC 4716.

  • For ED25519 * key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is * the default for OpenSSH, starting with OpenSSH 6.8.

*/ inline ImportKeyPairResponse& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;} /** *
  • For RSA key pairs, the key fingerprint is the MD5 public key * fingerprint as specified in section 4 of RFC 4716.

  • For ED25519 * key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is * the default for OpenSSH, starting with OpenSSH 6.8.

*/ inline ImportKeyPairResponse& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(std::move(value)); return *this;} /** *
  • For RSA key pairs, the key fingerprint is the MD5 public key * fingerprint as specified in section 4 of RFC 4716.

  • For ED25519 * key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is * the default for OpenSSH, starting with OpenSSH 6.8.

*/ inline ImportKeyPairResponse& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;} /** *

The key pair name that you provided.

*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *

The key pair name that you provided.

*/ inline void SetKeyName(const Aws::String& value) { m_keyName = value; } /** *

The key pair name that you provided.

*/ inline void SetKeyName(Aws::String&& value) { m_keyName = std::move(value); } /** *

The key pair name that you provided.

*/ inline void SetKeyName(const char* value) { m_keyName.assign(value); } /** *

The key pair name that you provided.

*/ inline ImportKeyPairResponse& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *

The key pair name that you provided.

*/ inline ImportKeyPairResponse& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *

The key pair name that you provided.

*/ inline ImportKeyPairResponse& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *

The ID of the resulting key pair.

*/ inline const Aws::String& GetKeyPairId() const{ return m_keyPairId; } /** *

The ID of the resulting key pair.

*/ inline void SetKeyPairId(const Aws::String& value) { m_keyPairId = value; } /** *

The ID of the resulting key pair.

*/ inline void SetKeyPairId(Aws::String&& value) { m_keyPairId = std::move(value); } /** *

The ID of the resulting key pair.

*/ inline void SetKeyPairId(const char* value) { m_keyPairId.assign(value); } /** *

The ID of the resulting key pair.

*/ inline ImportKeyPairResponse& WithKeyPairId(const Aws::String& value) { SetKeyPairId(value); return *this;} /** *

The ID of the resulting key pair.

*/ inline ImportKeyPairResponse& WithKeyPairId(Aws::String&& value) { SetKeyPairId(std::move(value)); return *this;} /** *

The ID of the resulting key pair.

*/ inline ImportKeyPairResponse& WithKeyPairId(const char* value) { SetKeyPairId(value); return *this;} /** *

The tags applied to the imported key pair.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags applied to the imported key pair.

*/ inline void SetTags(const Aws::Vector& value) { m_tags = value; } /** *

The tags applied to the imported key pair.

*/ inline void SetTags(Aws::Vector&& value) { m_tags = std::move(value); } /** *

The tags applied to the imported key pair.

*/ inline ImportKeyPairResponse& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags applied to the imported key pair.

*/ inline ImportKeyPairResponse& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags applied to the imported key pair.

*/ inline ImportKeyPairResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

The tags applied to the imported key pair.

*/ inline ImportKeyPairResponse& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; } inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline ImportKeyPairResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ImportKeyPairResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_keyFingerprint; Aws::String m_keyName; Aws::String m_keyPairId; Aws::Vector m_tags; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws