/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about an SSH public key, without the key's body or
* fingerprint. This data type is used as a response element in the
* ListSSHPublicKeys operation.See Also:
AWS
* API Reference
The name of the IAM user associated with the SSH public key.
*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *The name of the IAM user associated with the SSH public key.
*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *The name of the IAM user associated with the SSH public key.
*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *The name of the IAM user associated with the SSH public key.
*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *The name of the IAM user associated with the SSH public key.
*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *The name of the IAM user associated with the SSH public key.
*/ inline SSHPublicKeyMetadata& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *The name of the IAM user associated with the SSH public key.
*/ inline SSHPublicKeyMetadata& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *The name of the IAM user associated with the SSH public key.
*/ inline SSHPublicKeyMetadata& WithUserName(const char* value) { SetUserName(value); return *this;} /** *The unique identifier for the SSH public key.
*/ inline const Aws::String& GetSSHPublicKeyId() const{ return m_sSHPublicKeyId; } /** *The unique identifier for the SSH public key.
*/ inline bool SSHPublicKeyIdHasBeenSet() const { return m_sSHPublicKeyIdHasBeenSet; } /** *The unique identifier for the SSH public key.
*/ inline void SetSSHPublicKeyId(const Aws::String& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = value; } /** *The unique identifier for the SSH public key.
*/ inline void SetSSHPublicKeyId(Aws::String&& value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId = std::move(value); } /** *The unique identifier for the SSH public key.
*/ inline void SetSSHPublicKeyId(const char* value) { m_sSHPublicKeyIdHasBeenSet = true; m_sSHPublicKeyId.assign(value); } /** *The unique identifier for the SSH public key.
*/ inline SSHPublicKeyMetadata& WithSSHPublicKeyId(const Aws::String& value) { SetSSHPublicKeyId(value); return *this;} /** *The unique identifier for the SSH public key.
*/ inline SSHPublicKeyMetadata& WithSSHPublicKeyId(Aws::String&& value) { SetSSHPublicKeyId(std::move(value)); return *this;} /** *The unique identifier for the SSH public key.
*/ inline SSHPublicKeyMetadata& WithSSHPublicKeyId(const char* value) { SetSSHPublicKeyId(value); return *this;} /** *The status of the SSH public key. Active
means that the key can
* be used for authentication with an CodeCommit repository. Inactive
* means that the key cannot be used.
The status of the SSH public key. Active
means that the key can
* be used for authentication with an CodeCommit repository. Inactive
* means that the key cannot be used.
The status of the SSH public key. Active
means that the key can
* be used for authentication with an CodeCommit repository. Inactive
* means that the key cannot be used.
The status of the SSH public key. Active
means that the key can
* be used for authentication with an CodeCommit repository. Inactive
* means that the key cannot be used.
The status of the SSH public key. Active
means that the key can
* be used for authentication with an CodeCommit repository. Inactive
* means that the key cannot be used.
The status of the SSH public key. Active
means that the key can
* be used for authentication with an CodeCommit repository. Inactive
* means that the key cannot be used.
The date and time, in ISO 8601 * date-time format, when the SSH public key was uploaded.
*/ inline const Aws::Utils::DateTime& GetUploadDate() const{ return m_uploadDate; } /** *The date and time, in ISO 8601 * date-time format, when the SSH public key was uploaded.
*/ inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; } /** *The date and time, in ISO 8601 * date-time format, when the SSH public key was uploaded.
*/ inline void SetUploadDate(const Aws::Utils::DateTime& value) { m_uploadDateHasBeenSet = true; m_uploadDate = value; } /** *The date and time, in ISO 8601 * date-time format, when the SSH public key was uploaded.
*/ inline void SetUploadDate(Aws::Utils::DateTime&& value) { m_uploadDateHasBeenSet = true; m_uploadDate = std::move(value); } /** *The date and time, in ISO 8601 * date-time format, when the SSH public key was uploaded.
*/ inline SSHPublicKeyMetadata& WithUploadDate(const Aws::Utils::DateTime& value) { SetUploadDate(value); return *this;} /** *The date and time, in ISO 8601 * date-time format, when the SSH public key was uploaded.
*/ inline SSHPublicKeyMetadata& WithUploadDate(Aws::Utils::DateTime&& value) { SetUploadDate(std::move(value)); return *this;} private: Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_sSHPublicKeyId; bool m_sSHPublicKeyIdHasBeenSet = false; StatusType m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_uploadDate; bool m_uploadDateHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws