/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A record of a presented X509 credential from a temporary credential request.
* See Also:
AWS
* API Reference
Indicates whether the credential is enabled.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Indicates whether the credential is enabled.
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *Indicates whether the credential is enabled.
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *Indicates whether the credential is enabled.
*/ inline CredentialSummary& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *Indicates whether the temporary credential request was successful.
*/ inline bool GetFailed() const{ return m_failed; } /** *Indicates whether the temporary credential request was successful.
*/ inline bool FailedHasBeenSet() const { return m_failedHasBeenSet; } /** *Indicates whether the temporary credential request was successful.
*/ inline void SetFailed(bool value) { m_failedHasBeenSet = true; m_failed = value; } /** *Indicates whether the temporary credential request was successful.
*/ inline CredentialSummary& WithFailed(bool value) { SetFailed(value); return *this;} /** *The fully qualified domain name of the issuing certificate for the presented * end-entity certificate.
*/ inline const Aws::String& GetIssuer() const{ return m_issuer; } /** *The fully qualified domain name of the issuing certificate for the presented * end-entity certificate.
*/ inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; } /** *The fully qualified domain name of the issuing certificate for the presented * end-entity certificate.
*/ inline void SetIssuer(const Aws::String& value) { m_issuerHasBeenSet = true; m_issuer = value; } /** *The fully qualified domain name of the issuing certificate for the presented * end-entity certificate.
*/ inline void SetIssuer(Aws::String&& value) { m_issuerHasBeenSet = true; m_issuer = std::move(value); } /** *The fully qualified domain name of the issuing certificate for the presented * end-entity certificate.
*/ inline void SetIssuer(const char* value) { m_issuerHasBeenSet = true; m_issuer.assign(value); } /** *The fully qualified domain name of the issuing certificate for the presented * end-entity certificate.
*/ inline CredentialSummary& WithIssuer(const Aws::String& value) { SetIssuer(value); return *this;} /** *The fully qualified domain name of the issuing certificate for the presented * end-entity certificate.
*/ inline CredentialSummary& WithIssuer(Aws::String&& value) { SetIssuer(std::move(value)); return *this;} /** *The fully qualified domain name of the issuing certificate for the presented * end-entity certificate.
*/ inline CredentialSummary& WithIssuer(const char* value) { SetIssuer(value); return *this;} /** *The ISO-8601 time stamp of when the certificate was last used in a temporary * credential request.
*/ inline const Aws::Utils::DateTime& GetSeenAt() const{ return m_seenAt; } /** *The ISO-8601 time stamp of when the certificate was last used in a temporary * credential request.
*/ inline bool SeenAtHasBeenSet() const { return m_seenAtHasBeenSet; } /** *The ISO-8601 time stamp of when the certificate was last used in a temporary * credential request.
*/ inline void SetSeenAt(const Aws::Utils::DateTime& value) { m_seenAtHasBeenSet = true; m_seenAt = value; } /** *The ISO-8601 time stamp of when the certificate was last used in a temporary * credential request.
*/ inline void SetSeenAt(Aws::Utils::DateTime&& value) { m_seenAtHasBeenSet = true; m_seenAt = std::move(value); } /** *The ISO-8601 time stamp of when the certificate was last used in a temporary * credential request.
*/ inline CredentialSummary& WithSeenAt(const Aws::Utils::DateTime& value) { SetSeenAt(value); return *this;} /** *The ISO-8601 time stamp of when the certificate was last used in a temporary * credential request.
*/ inline CredentialSummary& WithSeenAt(Aws::Utils::DateTime&& value) { SetSeenAt(std::move(value)); return *this;} /** *The serial number of the certificate.
*/ inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; } /** *The serial number of the certificate.
*/ inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; } /** *The serial number of the certificate.
*/ inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; } /** *The serial number of the certificate.
*/ inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::move(value); } /** *The serial number of the certificate.
*/ inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); } /** *The serial number of the certificate.
*/ inline CredentialSummary& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;} /** *The serial number of the certificate.
*/ inline CredentialSummary& WithSerialNumber(Aws::String&& value) { SetSerialNumber(std::move(value)); return *this;} /** *The serial number of the certificate.
*/ inline CredentialSummary& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;} /** *The PEM-encoded data of the certificate.
*/ inline const Aws::String& GetX509CertificateData() const{ return m_x509CertificateData; } /** *The PEM-encoded data of the certificate.
*/ inline bool X509CertificateDataHasBeenSet() const { return m_x509CertificateDataHasBeenSet; } /** *The PEM-encoded data of the certificate.
*/ inline void SetX509CertificateData(const Aws::String& value) { m_x509CertificateDataHasBeenSet = true; m_x509CertificateData = value; } /** *The PEM-encoded data of the certificate.
*/ inline void SetX509CertificateData(Aws::String&& value) { m_x509CertificateDataHasBeenSet = true; m_x509CertificateData = std::move(value); } /** *The PEM-encoded data of the certificate.
*/ inline void SetX509CertificateData(const char* value) { m_x509CertificateDataHasBeenSet = true; m_x509CertificateData.assign(value); } /** *The PEM-encoded data of the certificate.
*/ inline CredentialSummary& WithX509CertificateData(const Aws::String& value) { SetX509CertificateData(value); return *this;} /** *The PEM-encoded data of the certificate.
*/ inline CredentialSummary& WithX509CertificateData(Aws::String&& value) { SetX509CertificateData(std::move(value)); return *this;} /** *The PEM-encoded data of the certificate.
*/ inline CredentialSummary& WithX509CertificateData(const char* value) { SetX509CertificateData(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; bool m_failed; bool m_failedHasBeenSet = false; Aws::String m_issuer; bool m_issuerHasBeenSet = false; Aws::Utils::DateTime m_seenAt; bool m_seenAtHasBeenSet = false; Aws::String m_serialNumber; bool m_serialNumberHasBeenSet = false; Aws::String m_x509CertificateData; bool m_x509CertificateDataHasBeenSet = false; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws