/** * 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 AppMesh { namespace Model { /** *

An object that represents the client's certificate.

See Also:

* AWS * API Reference

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

An object that represents a local file certificate. The certificate must meet * specific requirements and you must have proxy authorization enabled. For more * information, see Transport * Layer Security (TLS).

*/ inline const ListenerTlsFileCertificate& GetFile() const{ return m_file; } /** *

An object that represents a local file certificate. The certificate must meet * specific requirements and you must have proxy authorization enabled. For more * information, see Transport * Layer Security (TLS).

*/ inline bool FileHasBeenSet() const { return m_fileHasBeenSet; } /** *

An object that represents a local file certificate. The certificate must meet * specific requirements and you must have proxy authorization enabled. For more * information, see Transport * Layer Security (TLS).

*/ inline void SetFile(const ListenerTlsFileCertificate& value) { m_fileHasBeenSet = true; m_file = value; } /** *

An object that represents a local file certificate. The certificate must meet * specific requirements and you must have proxy authorization enabled. For more * information, see Transport * Layer Security (TLS).

*/ inline void SetFile(ListenerTlsFileCertificate&& value) { m_fileHasBeenSet = true; m_file = std::move(value); } /** *

An object that represents a local file certificate. The certificate must meet * specific requirements and you must have proxy authorization enabled. For more * information, see Transport * Layer Security (TLS).

*/ inline ClientTlsCertificate& WithFile(const ListenerTlsFileCertificate& value) { SetFile(value); return *this;} /** *

An object that represents a local file certificate. The certificate must meet * specific requirements and you must have proxy authorization enabled. For more * information, see Transport * Layer Security (TLS).

*/ inline ClientTlsCertificate& WithFile(ListenerTlsFileCertificate&& value) { SetFile(std::move(value)); return *this;} /** *

A reference to an object that represents a client's TLS Secret Discovery * Service certificate.

*/ inline const ListenerTlsSdsCertificate& GetSds() const{ return m_sds; } /** *

A reference to an object that represents a client's TLS Secret Discovery * Service certificate.

*/ inline bool SdsHasBeenSet() const { return m_sdsHasBeenSet; } /** *

A reference to an object that represents a client's TLS Secret Discovery * Service certificate.

*/ inline void SetSds(const ListenerTlsSdsCertificate& value) { m_sdsHasBeenSet = true; m_sds = value; } /** *

A reference to an object that represents a client's TLS Secret Discovery * Service certificate.

*/ inline void SetSds(ListenerTlsSdsCertificate&& value) { m_sdsHasBeenSet = true; m_sds = std::move(value); } /** *

A reference to an object that represents a client's TLS Secret Discovery * Service certificate.

*/ inline ClientTlsCertificate& WithSds(const ListenerTlsSdsCertificate& value) { SetSds(value); return *this;} /** *

A reference to an object that represents a client's TLS Secret Discovery * Service certificate.

*/ inline ClientTlsCertificate& WithSds(ListenerTlsSdsCertificate&& value) { SetSds(std::move(value)); return *this;} private: ListenerTlsFileCertificate m_file; bool m_fileHasBeenSet = false; ListenerTlsSdsCertificate m_sds; bool m_sdsHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws