/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the SSH key pair.See Also:
AWS
* API Reference
The friendly name of the SSH key pair.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The friendly name of the SSH key pair.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The friendly name of the SSH key pair.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The friendly name of the SSH key pair.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The friendly name of the SSH key pair.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The friendly name of the SSH key pair.
*/ inline KeyPair& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The friendly name of the SSH key pair.
*/ inline KeyPair& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The friendly name of the SSH key pair.
*/ inline KeyPair& WithName(const char* value) { SetName(value); return *this;} /** *The Amazon Resource Name (ARN) of the key pair (e.g.,
* arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
The Amazon Resource Name (ARN) of the key pair (e.g.,
* arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
The Amazon Resource Name (ARN) of the key pair (e.g.,
* arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
The Amazon Resource Name (ARN) of the key pair (e.g.,
* arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
The Amazon Resource Name (ARN) of the key pair (e.g.,
* arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
The Amazon Resource Name (ARN) of the key pair (e.g.,
* arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
The Amazon Resource Name (ARN) of the key pair (e.g.,
* arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
The Amazon Resource Name (ARN) of the key pair (e.g.,
* arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).
The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.
*/ inline const Aws::String& GetSupportCode() const{ return m_supportCode; } /** *The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.
*/ inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; } /** *The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.
*/ inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; } /** *The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.
*/ inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); } /** *The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.
*/ inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); } /** *The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.
*/ inline KeyPair& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;} /** *The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.
*/ inline KeyPair& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;} /** *The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.
*/ inline KeyPair& WithSupportCode(const char* value) { SetSupportCode(value); return *this;} /** *The timestamp when the key pair was created (e.g.,
* 1479816991.349).
The timestamp when the key pair was created (e.g.,
* 1479816991.349).
The timestamp when the key pair was created (e.g.,
* 1479816991.349).
The timestamp when the key pair was created (e.g.,
* 1479816991.349).
The timestamp when the key pair was created (e.g.,
* 1479816991.349).
The timestamp when the key pair was created (e.g.,
* 1479816991.349).
The region name and Availability Zone where the key pair was created.
*/ inline const ResourceLocation& GetLocation() const{ return m_location; } /** *The region name and Availability Zone where the key pair was created.
*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *The region name and Availability Zone where the key pair was created.
*/ inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; } /** *The region name and Availability Zone where the key pair was created.
*/ inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *The region name and Availability Zone where the key pair was created.
*/ inline KeyPair& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;} /** *The region name and Availability Zone where the key pair was created.
*/ inline KeyPair& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;} /** *The resource type (usually KeyPair).
The resource type (usually KeyPair).
The resource type (usually KeyPair).
The resource type (usually KeyPair).
The resource type (usually KeyPair).
The resource type (usually KeyPair).
The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Lightsail * Dev Guide.
*/ inline const Aws::VectorThe tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Lightsail * Dev Guide.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Lightsail * Dev Guide.
*/ inline void SetTags(const Aws::VectorThe tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Lightsail * Dev Guide.
*/ inline void SetTags(Aws::VectorThe tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Lightsail * Dev Guide.
*/ inline KeyPair& WithTags(const Aws::VectorThe tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Lightsail * Dev Guide.
*/ inline KeyPair& WithTags(Aws::VectorThe tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Lightsail * Dev Guide.
*/ inline KeyPair& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tag keys and optional values for the resource. For more information about * tags in Lightsail, see the Lightsail * Dev Guide.
*/ inline KeyPair& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *The RSA fingerprint of the key pair.
*/ inline const Aws::String& GetFingerprint() const{ return m_fingerprint; } /** *The RSA fingerprint of the key pair.
*/ inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; } /** *The RSA fingerprint of the key pair.
*/ inline void SetFingerprint(const Aws::String& value) { m_fingerprintHasBeenSet = true; m_fingerprint = value; } /** *The RSA fingerprint of the key pair.
*/ inline void SetFingerprint(Aws::String&& value) { m_fingerprintHasBeenSet = true; m_fingerprint = std::move(value); } /** *The RSA fingerprint of the key pair.
*/ inline void SetFingerprint(const char* value) { m_fingerprintHasBeenSet = true; m_fingerprint.assign(value); } /** *The RSA fingerprint of the key pair.
*/ inline KeyPair& WithFingerprint(const Aws::String& value) { SetFingerprint(value); return *this;} /** *The RSA fingerprint of the key pair.
*/ inline KeyPair& WithFingerprint(Aws::String&& value) { SetFingerprint(std::move(value)); return *this;} /** *The RSA fingerprint of the key pair.
*/ inline KeyPair& WithFingerprint(const char* value) { SetFingerprint(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_supportCode; bool m_supportCodeHasBeenSet; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet; ResourceLocation m_location; bool m_locationHasBeenSet; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet; Aws::Vector