/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticLoadBalancingv2 { namespace Model { /** *

Information about an SSL server certificate.

See Also:

AWS * API Reference

*/ class Certificate { public: AWS_ELASTICLOADBALANCINGV2_API Certificate(); AWS_ELASTICLOADBALANCINGV2_API Certificate(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API Certificate& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline Certificate& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

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

The Amazon Resource Name (ARN) of the certificate.

*/ inline Certificate& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} /** *

Indicates whether the certificate is the default certificate. Do not set this * value when specifying a certificate as an input. This value is not included in * the output when describing a listener, but is included when describing listener * certificates.

*/ inline bool GetIsDefault() const{ return m_isDefault; } /** *

Indicates whether the certificate is the default certificate. Do not set this * value when specifying a certificate as an input. This value is not included in * the output when describing a listener, but is included when describing listener * certificates.

*/ inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; } /** *

Indicates whether the certificate is the default certificate. Do not set this * value when specifying a certificate as an input. This value is not included in * the output when describing a listener, but is included when describing listener * certificates.

*/ inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; } /** *

Indicates whether the certificate is the default certificate. Do not set this * value when specifying a certificate as an input. This value is not included in * the output when describing a listener, but is included when describing listener * certificates.

*/ inline Certificate& WithIsDefault(bool value) { SetIsDefault(value); return *this;} private: Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; bool m_isDefault; bool m_isDefaultHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws