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

Describes an app's SSL configuration.

See Also:

AWS * API Reference

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

The contents of the certificate's domain.crt file.

*/ inline const Aws::String& GetCertificate() const{ return m_certificate; } /** *

The contents of the certificate's domain.crt file.

*/ inline bool CertificateHasBeenSet() const { return m_certificateHasBeenSet; } /** *

The contents of the certificate's domain.crt file.

*/ inline void SetCertificate(const Aws::String& value) { m_certificateHasBeenSet = true; m_certificate = value; } /** *

The contents of the certificate's domain.crt file.

*/ inline void SetCertificate(Aws::String&& value) { m_certificateHasBeenSet = true; m_certificate = std::move(value); } /** *

The contents of the certificate's domain.crt file.

*/ inline void SetCertificate(const char* value) { m_certificateHasBeenSet = true; m_certificate.assign(value); } /** *

The contents of the certificate's domain.crt file.

*/ inline SslConfiguration& WithCertificate(const Aws::String& value) { SetCertificate(value); return *this;} /** *

The contents of the certificate's domain.crt file.

*/ inline SslConfiguration& WithCertificate(Aws::String&& value) { SetCertificate(std::move(value)); return *this;} /** *

The contents of the certificate's domain.crt file.

*/ inline SslConfiguration& WithCertificate(const char* value) { SetCertificate(value); return *this;} /** *

The private key; the contents of the certificate's domain.kex file.

*/ inline const Aws::String& GetPrivateKey() const{ return m_privateKey; } /** *

The private key; the contents of the certificate's domain.kex file.

*/ inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; } /** *

The private key; the contents of the certificate's domain.kex file.

*/ inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; } /** *

The private key; the contents of the certificate's domain.kex file.

*/ inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); } /** *

The private key; the contents of the certificate's domain.kex file.

*/ inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); } /** *

The private key; the contents of the certificate's domain.kex file.

*/ inline SslConfiguration& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;} /** *

The private key; the contents of the certificate's domain.kex file.

*/ inline SslConfiguration& WithPrivateKey(Aws::String&& value) { SetPrivateKey(std::move(value)); return *this;} /** *

The private key; the contents of the certificate's domain.kex file.

*/ inline SslConfiguration& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;} /** *

Optional. Can be used to specify an intermediate certificate authority key or * client authentication.

*/ inline const Aws::String& GetChain() const{ return m_chain; } /** *

Optional. Can be used to specify an intermediate certificate authority key or * client authentication.

*/ inline bool ChainHasBeenSet() const { return m_chainHasBeenSet; } /** *

Optional. Can be used to specify an intermediate certificate authority key or * client authentication.

*/ inline void SetChain(const Aws::String& value) { m_chainHasBeenSet = true; m_chain = value; } /** *

Optional. Can be used to specify an intermediate certificate authority key or * client authentication.

*/ inline void SetChain(Aws::String&& value) { m_chainHasBeenSet = true; m_chain = std::move(value); } /** *

Optional. Can be used to specify an intermediate certificate authority key or * client authentication.

*/ inline void SetChain(const char* value) { m_chainHasBeenSet = true; m_chain.assign(value); } /** *

Optional. Can be used to specify an intermediate certificate authority key or * client authentication.

*/ inline SslConfiguration& WithChain(const Aws::String& value) { SetChain(value); return *this;} /** *

Optional. Can be used to specify an intermediate certificate authority key or * client authentication.

*/ inline SslConfiguration& WithChain(Aws::String&& value) { SetChain(std::move(value)); return *this;} /** *

Optional. Can be used to specify an intermediate certificate authority key or * client authentication.

*/ inline SslConfiguration& WithChain(const char* value) { SetChain(value); return *this;} private: Aws::String m_certificate; bool m_certificateHasBeenSet = false; Aws::String m_privateKey; bool m_privateKeyHasBeenSet = false; Aws::String m_chain; bool m_chainHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws