/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WorkSpacesWeb { namespace Model { /** *

The summary of the certificate.

See Also:

AWS * API Reference

*/ class CertificateSummary { public: AWS_WORKSPACESWEB_API CertificateSummary(); AWS_WORKSPACESWEB_API CertificateSummary(Aws::Utils::Json::JsonView jsonValue); AWS_WORKSPACESWEB_API CertificateSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The entity that issued the certificate.

*/ inline const Aws::String& GetIssuer() const{ return m_issuer; } /** *

The entity that issued the certificate.

*/ inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; } /** *

The entity that issued the certificate.

*/ inline void SetIssuer(const Aws::String& value) { m_issuerHasBeenSet = true; m_issuer = value; } /** *

The entity that issued the certificate.

*/ inline void SetIssuer(Aws::String&& value) { m_issuerHasBeenSet = true; m_issuer = std::move(value); } /** *

The entity that issued the certificate.

*/ inline void SetIssuer(const char* value) { m_issuerHasBeenSet = true; m_issuer.assign(value); } /** *

The entity that issued the certificate.

*/ inline CertificateSummary& WithIssuer(const Aws::String& value) { SetIssuer(value); return *this;} /** *

The entity that issued the certificate.

*/ inline CertificateSummary& WithIssuer(Aws::String&& value) { SetIssuer(std::move(value)); return *this;} /** *

The entity that issued the certificate.

*/ inline CertificateSummary& WithIssuer(const char* value) { SetIssuer(value); return *this;} /** *

The certificate is not valid after this date.

*/ inline const Aws::Utils::DateTime& GetNotValidAfter() const{ return m_notValidAfter; } /** *

The certificate is not valid after this date.

*/ inline bool NotValidAfterHasBeenSet() const { return m_notValidAfterHasBeenSet; } /** *

The certificate is not valid after this date.

*/ inline void SetNotValidAfter(const Aws::Utils::DateTime& value) { m_notValidAfterHasBeenSet = true; m_notValidAfter = value; } /** *

The certificate is not valid after this date.

*/ inline void SetNotValidAfter(Aws::Utils::DateTime&& value) { m_notValidAfterHasBeenSet = true; m_notValidAfter = std::move(value); } /** *

The certificate is not valid after this date.

*/ inline CertificateSummary& WithNotValidAfter(const Aws::Utils::DateTime& value) { SetNotValidAfter(value); return *this;} /** *

The certificate is not valid after this date.

*/ inline CertificateSummary& WithNotValidAfter(Aws::Utils::DateTime&& value) { SetNotValidAfter(std::move(value)); return *this;} /** *

The certificate is not valid before this date.

*/ inline const Aws::Utils::DateTime& GetNotValidBefore() const{ return m_notValidBefore; } /** *

The certificate is not valid before this date.

*/ inline bool NotValidBeforeHasBeenSet() const { return m_notValidBeforeHasBeenSet; } /** *

The certificate is not valid before this date.

*/ inline void SetNotValidBefore(const Aws::Utils::DateTime& value) { m_notValidBeforeHasBeenSet = true; m_notValidBefore = value; } /** *

The certificate is not valid before this date.

*/ inline void SetNotValidBefore(Aws::Utils::DateTime&& value) { m_notValidBeforeHasBeenSet = true; m_notValidBefore = std::move(value); } /** *

The certificate is not valid before this date.

*/ inline CertificateSummary& WithNotValidBefore(const Aws::Utils::DateTime& value) { SetNotValidBefore(value); return *this;} /** *

The certificate is not valid before this date.

*/ inline CertificateSummary& WithNotValidBefore(Aws::Utils::DateTime&& value) { SetNotValidBefore(std::move(value)); return *this;} /** *

The entity the certificate belongs to.

*/ inline const Aws::String& GetSubject() const{ return m_subject; } /** *

The entity the certificate belongs to.

*/ inline bool SubjectHasBeenSet() const { return m_subjectHasBeenSet; } /** *

The entity the certificate belongs to.

*/ inline void SetSubject(const Aws::String& value) { m_subjectHasBeenSet = true; m_subject = value; } /** *

The entity the certificate belongs to.

*/ inline void SetSubject(Aws::String&& value) { m_subjectHasBeenSet = true; m_subject = std::move(value); } /** *

The entity the certificate belongs to.

*/ inline void SetSubject(const char* value) { m_subjectHasBeenSet = true; m_subject.assign(value); } /** *

The entity the certificate belongs to.

*/ inline CertificateSummary& WithSubject(const Aws::String& value) { SetSubject(value); return *this;} /** *

The entity the certificate belongs to.

*/ inline CertificateSummary& WithSubject(Aws::String&& value) { SetSubject(std::move(value)); return *this;} /** *

The entity the certificate belongs to.

*/ inline CertificateSummary& WithSubject(const char* value) { SetSubject(value); return *this;} /** *

A hexadecimal identifier for the certificate.

*/ inline const Aws::String& GetThumbprint() const{ return m_thumbprint; } /** *

A hexadecimal identifier for the certificate.

*/ inline bool ThumbprintHasBeenSet() const { return m_thumbprintHasBeenSet; } /** *

A hexadecimal identifier for the certificate.

*/ inline void SetThumbprint(const Aws::String& value) { m_thumbprintHasBeenSet = true; m_thumbprint = value; } /** *

A hexadecimal identifier for the certificate.

*/ inline void SetThumbprint(Aws::String&& value) { m_thumbprintHasBeenSet = true; m_thumbprint = std::move(value); } /** *

A hexadecimal identifier for the certificate.

*/ inline void SetThumbprint(const char* value) { m_thumbprintHasBeenSet = true; m_thumbprint.assign(value); } /** *

A hexadecimal identifier for the certificate.

*/ inline CertificateSummary& WithThumbprint(const Aws::String& value) { SetThumbprint(value); return *this;} /** *

A hexadecimal identifier for the certificate.

*/ inline CertificateSummary& WithThumbprint(Aws::String&& value) { SetThumbprint(std::move(value)); return *this;} /** *

A hexadecimal identifier for the certificate.

*/ inline CertificateSummary& WithThumbprint(const char* value) { SetThumbprint(value); return *this;} private: Aws::String m_issuer; bool m_issuerHasBeenSet = false; Aws::Utils::DateTime m_notValidAfter; bool m_notValidAfterHasBeenSet = false; Aws::Utils::DateTime m_notValidBefore; bool m_notValidBeforeHasBeenSet = false; Aws::String m_subject; bool m_subjectHasBeenSet = false; Aws::String m_thumbprint; bool m_thumbprintHasBeenSet = false; }; } // namespace Model } // namespace WorkSpacesWeb } // namespace Aws