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

Determines whether a TLS/SSL certificate is generated for a fleet. This * feature must be enabled when creating the fleet. All instances in a fleet share * the same certificate. The certificate can be retrieved by calling the Amazon * GameLift Server SDK operation GetInstanceCertificate. *

See Also:

AWS * API Reference

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

Indicates whether a TLS/SSL certificate is generated for a fleet.

*

Valid values include:

  • GENERATED - Generate a * TLS/SSL certificate for this fleet.

  • DISABLED - * (default) Do not generate a TLS/SSL certificate for this fleet.

*/ inline const CertificateType& GetCertificateType() const{ return m_certificateType; } /** *

Indicates whether a TLS/SSL certificate is generated for a fleet.

*

Valid values include:

  • GENERATED - Generate a * TLS/SSL certificate for this fleet.

  • DISABLED - * (default) Do not generate a TLS/SSL certificate for this fleet.

*/ inline bool CertificateTypeHasBeenSet() const { return m_certificateTypeHasBeenSet; } /** *

Indicates whether a TLS/SSL certificate is generated for a fleet.

*

Valid values include:

  • GENERATED - Generate a * TLS/SSL certificate for this fleet.

  • DISABLED - * (default) Do not generate a TLS/SSL certificate for this fleet.

*/ inline void SetCertificateType(const CertificateType& value) { m_certificateTypeHasBeenSet = true; m_certificateType = value; } /** *

Indicates whether a TLS/SSL certificate is generated for a fleet.

*

Valid values include:

  • GENERATED - Generate a * TLS/SSL certificate for this fleet.

  • DISABLED - * (default) Do not generate a TLS/SSL certificate for this fleet.

*/ inline void SetCertificateType(CertificateType&& value) { m_certificateTypeHasBeenSet = true; m_certificateType = std::move(value); } /** *

Indicates whether a TLS/SSL certificate is generated for a fleet.

*

Valid values include:

  • GENERATED - Generate a * TLS/SSL certificate for this fleet.

  • DISABLED - * (default) Do not generate a TLS/SSL certificate for this fleet.

*/ inline CertificateConfiguration& WithCertificateType(const CertificateType& value) { SetCertificateType(value); return *this;} /** *

Indicates whether a TLS/SSL certificate is generated for a fleet.

*

Valid values include:

  • GENERATED - Generate a * TLS/SSL certificate for this fleet.

  • DISABLED - * (default) Do not generate a TLS/SSL certificate for this fleet.

*/ inline CertificateConfiguration& WithCertificateType(CertificateType&& value) { SetCertificateType(std::move(value)); return *this;} private: CertificateType m_certificateType; bool m_certificateTypeHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws