/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a key pair.See Also:
AWS API
* Reference
For RSA key pairs, the key fingerprint is the SHA-1 digest of the * DER encoded private key.
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.
For RSA key pairs, the key fingerprint is the SHA-1 digest of the * DER encoded private key.
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.
For RSA key pairs, the key fingerprint is the SHA-1 digest of the * DER encoded private key.
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.
For RSA key pairs, the key fingerprint is the SHA-1 digest of the * DER encoded private key.
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.
For RSA key pairs, the key fingerprint is the SHA-1 digest of the * DER encoded private key.
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.
For RSA key pairs, the key fingerprint is the SHA-1 digest of the * DER encoded private key.
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.
For RSA key pairs, the key fingerprint is the SHA-1 digest of the * DER encoded private key.
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.
An unencrypted PEM encoded RSA or ED25519 private key.
*/ inline const Aws::String& GetKeyMaterial() const{ return m_keyMaterial; } /** *An unencrypted PEM encoded RSA or ED25519 private key.
*/ inline void SetKeyMaterial(const Aws::String& value) { m_keyMaterial = value; } /** *An unencrypted PEM encoded RSA or ED25519 private key.
*/ inline void SetKeyMaterial(Aws::String&& value) { m_keyMaterial = std::move(value); } /** *An unencrypted PEM encoded RSA or ED25519 private key.
*/ inline void SetKeyMaterial(const char* value) { m_keyMaterial.assign(value); } /** *An unencrypted PEM encoded RSA or ED25519 private key.
*/ inline CreateKeyPairResponse& WithKeyMaterial(const Aws::String& value) { SetKeyMaterial(value); return *this;} /** *An unencrypted PEM encoded RSA or ED25519 private key.
*/ inline CreateKeyPairResponse& WithKeyMaterial(Aws::String&& value) { SetKeyMaterial(std::move(value)); return *this;} /** *An unencrypted PEM encoded RSA or ED25519 private key.
*/ inline CreateKeyPairResponse& WithKeyMaterial(const char* value) { SetKeyMaterial(value); return *this;} /** *The name of the key pair.
*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *The name of the key pair.
*/ inline void SetKeyName(const Aws::String& value) { m_keyName = value; } /** *The name of the key pair.
*/ inline void SetKeyName(Aws::String&& value) { m_keyName = std::move(value); } /** *The name of the key pair.
*/ inline void SetKeyName(const char* value) { m_keyName.assign(value); } /** *The name of the key pair.
*/ inline CreateKeyPairResponse& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *The name of the key pair.
*/ inline CreateKeyPairResponse& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *The name of the key pair.
*/ inline CreateKeyPairResponse& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *The ID of the key pair.
*/ inline const Aws::String& GetKeyPairId() const{ return m_keyPairId; } /** *The ID of the key pair.
*/ inline void SetKeyPairId(const Aws::String& value) { m_keyPairId = value; } /** *The ID of the key pair.
*/ inline void SetKeyPairId(Aws::String&& value) { m_keyPairId = std::move(value); } /** *The ID of the key pair.
*/ inline void SetKeyPairId(const char* value) { m_keyPairId.assign(value); } /** *The ID of the key pair.
*/ inline CreateKeyPairResponse& WithKeyPairId(const Aws::String& value) { SetKeyPairId(value); return *this;} /** *The ID of the key pair.
*/ inline CreateKeyPairResponse& WithKeyPairId(Aws::String&& value) { SetKeyPairId(std::move(value)); return *this;} /** *The ID of the key pair.
*/ inline CreateKeyPairResponse& WithKeyPairId(const char* value) { SetKeyPairId(value); return *this;} /** *Any tags applied to the key pair.
*/ inline const Aws::VectorAny tags applied to the key pair.
*/ inline void SetTags(const Aws::VectorAny tags applied to the key pair.
*/ inline void SetTags(Aws::VectorAny tags applied to the key pair.
*/ inline CreateKeyPairResponse& WithTags(const Aws::VectorAny tags applied to the key pair.
*/ inline CreateKeyPairResponse& WithTags(Aws::VectorAny tags applied to the key pair.
*/ inline CreateKeyPairResponse& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *Any tags applied to the key pair.
*/ inline CreateKeyPairResponse& 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 CreateKeyPairResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CreateKeyPairResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_keyFingerprint; Aws::String m_keyMaterial; Aws::String m_keyName; Aws::String m_keyPairId; Aws::Vector