/** * 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 { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace IAM { namespace Model { /** *

Contains information about an X.509 signing certificate.

This data * type is used as a response element in the UploadSigningCertificate and * ListSigningCertificates operations.

See Also:

AWS * API Reference

*/ class SigningCertificate { public: AWS_IAM_API SigningCertificate(); AWS_IAM_API SigningCertificate(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API SigningCertificate& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The name of the user the signing certificate is associated with.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The name of the user the signing certificate is associated with.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

The name of the user the signing certificate is associated with.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

The name of the user the signing certificate is associated with.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

The name of the user the signing certificate is associated with.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

The name of the user the signing certificate is associated with.

*/ inline SigningCertificate& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The name of the user the signing certificate is associated with.

*/ inline SigningCertificate& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The name of the user the signing certificate is associated with.

*/ inline SigningCertificate& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

The ID for the signing certificate.

*/ inline const Aws::String& GetCertificateId() const{ return m_certificateId; } /** *

The ID for the signing certificate.

*/ inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; } /** *

The ID for the signing certificate.

*/ inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; } /** *

The ID for the signing certificate.

*/ inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); } /** *

The ID for the signing certificate.

*/ inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); } /** *

The ID for the signing certificate.

*/ inline SigningCertificate& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;} /** *

The ID for the signing certificate.

*/ inline SigningCertificate& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;} /** *

The ID for the signing certificate.

*/ inline SigningCertificate& WithCertificateId(const char* value) { SetCertificateId(value); return *this;} /** *

The contents of the signing certificate.

*/ inline const Aws::String& GetCertificateBody() const{ return m_certificateBody; } /** *

The contents of the signing certificate.

*/ inline bool CertificateBodyHasBeenSet() const { return m_certificateBodyHasBeenSet; } /** *

The contents of the signing certificate.

*/ inline void SetCertificateBody(const Aws::String& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = value; } /** *

The contents of the signing certificate.

*/ inline void SetCertificateBody(Aws::String&& value) { m_certificateBodyHasBeenSet = true; m_certificateBody = std::move(value); } /** *

The contents of the signing certificate.

*/ inline void SetCertificateBody(const char* value) { m_certificateBodyHasBeenSet = true; m_certificateBody.assign(value); } /** *

The contents of the signing certificate.

*/ inline SigningCertificate& WithCertificateBody(const Aws::String& value) { SetCertificateBody(value); return *this;} /** *

The contents of the signing certificate.

*/ inline SigningCertificate& WithCertificateBody(Aws::String&& value) { SetCertificateBody(std::move(value)); return *this;} /** *

The contents of the signing certificate.

*/ inline SigningCertificate& WithCertificateBody(const char* value) { SetCertificateBody(value); return *this;} /** *

The status of the signing certificate. Active means that the key * is valid for API calls, while Inactive means it is not.

*/ inline const StatusType& GetStatus() const{ return m_status; } /** *

The status of the signing certificate. Active means that the key * is valid for API calls, while Inactive means it is not.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the signing certificate. Active means that the key * is valid for API calls, while Inactive means it is not.

*/ inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the signing certificate. Active means that the key * is valid for API calls, while Inactive means it is not.

*/ inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the signing certificate. Active means that the key * is valid for API calls, while Inactive means it is not.

*/ inline SigningCertificate& WithStatus(const StatusType& value) { SetStatus(value); return *this;} /** *

The status of the signing certificate. Active means that the key * is valid for API calls, while Inactive means it is not.

*/ inline SigningCertificate& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;} /** *

The date when the signing certificate was uploaded.

*/ inline const Aws::Utils::DateTime& GetUploadDate() const{ return m_uploadDate; } /** *

The date when the signing certificate was uploaded.

*/ inline bool UploadDateHasBeenSet() const { return m_uploadDateHasBeenSet; } /** *

The date when the signing certificate was uploaded.

*/ inline void SetUploadDate(const Aws::Utils::DateTime& value) { m_uploadDateHasBeenSet = true; m_uploadDate = value; } /** *

The date when the signing certificate was uploaded.

*/ inline void SetUploadDate(Aws::Utils::DateTime&& value) { m_uploadDateHasBeenSet = true; m_uploadDate = std::move(value); } /** *

The date when the signing certificate was uploaded.

*/ inline SigningCertificate& WithUploadDate(const Aws::Utils::DateTime& value) { SetUploadDate(value); return *this;} /** *

The date when the signing certificate was uploaded.

*/ inline SigningCertificate& WithUploadDate(Aws::Utils::DateTime&& value) { SetUploadDate(std::move(value)); return *this;} private: Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_certificateId; bool m_certificateIdHasBeenSet = false; Aws::String m_certificateBody; bool m_certificateBodyHasBeenSet = false; StatusType m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_uploadDate; bool m_uploadDateHasBeenSet = false; }; } // namespace Model } // namespace IAM } // namespace Aws