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

The certificate.

See Also:

AWS * API Reference

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

The body of the certificate.

*/ inline const Aws::Utils::ByteBuffer& GetBody() const{ return m_body; } /** *

The body of the certificate.

*/ inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; } /** *

The body of the certificate.

*/ inline void SetBody(const Aws::Utils::ByteBuffer& value) { m_bodyHasBeenSet = true; m_body = value; } /** *

The body of the certificate.

*/ inline void SetBody(Aws::Utils::ByteBuffer&& value) { m_bodyHasBeenSet = true; m_body = std::move(value); } /** *

The body of the certificate.

*/ inline Certificate& WithBody(const Aws::Utils::ByteBuffer& value) { SetBody(value); return *this;} /** *

The body of the certificate.

*/ inline Certificate& WithBody(Aws::Utils::ByteBuffer&& value) { SetBody(std::move(value)); return *this;} /** *

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 Certificate& WithIssuer(const Aws::String& value) { SetIssuer(value); return *this;} /** *

The entity that issued the certificate.

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

The entity that issued the certificate.

*/ inline Certificate& 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 Certificate& WithNotValidAfter(const Aws::Utils::DateTime& value) { SetNotValidAfter(value); return *this;} /** *

The certificate is not valid after this date.

*/ inline Certificate& 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 Certificate& WithNotValidBefore(const Aws::Utils::DateTime& value) { SetNotValidBefore(value); return *this;} /** *

The certificate is not valid before this date.

*/ inline Certificate& 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 Certificate& WithSubject(const Aws::String& value) { SetSubject(value); return *this;} /** *

The entity the certificate belongs to.

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

The entity the certificate belongs to.

*/ inline Certificate& 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 Certificate& WithThumbprint(const Aws::String& value) { SetThumbprint(value); return *this;} /** *

A hexadecimal identifier for the certificate.

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

A hexadecimal identifier for the certificate.

*/ inline Certificate& WithThumbprint(const char* value) { SetThumbprint(value); return *this;} private: Aws::Utils::ByteBuffer m_body; bool m_bodyHasBeenSet = false; 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