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

Describes a certificate CNAME record to add to your DNS. For more * information, see AssociateCustomDomain.

See * Also:

AWS * API Reference

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

The certificate CNAME record name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The certificate CNAME record name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The certificate CNAME record name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The certificate CNAME record name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The certificate CNAME record name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The certificate CNAME record name.

*/ inline CertificateValidationRecord& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The certificate CNAME record name.

*/ inline CertificateValidationRecord& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The certificate CNAME record name.

*/ inline CertificateValidationRecord& WithName(const char* value) { SetName(value); return *this;} /** *

The record type, always CNAME.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The record type, always CNAME.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The record type, always CNAME.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The record type, always CNAME.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The record type, always CNAME.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The record type, always CNAME.

*/ inline CertificateValidationRecord& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The record type, always CNAME.

*/ inline CertificateValidationRecord& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The record type, always CNAME.

*/ inline CertificateValidationRecord& WithType(const char* value) { SetType(value); return *this;} /** *

The certificate CNAME record value.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The certificate CNAME record value.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The certificate CNAME record value.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The certificate CNAME record value.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The certificate CNAME record value.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The certificate CNAME record value.

*/ inline CertificateValidationRecord& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The certificate CNAME record value.

*/ inline CertificateValidationRecord& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The certificate CNAME record value.

*/ inline CertificateValidationRecord& WithValue(const char* value) { SetValue(value); return *this;} /** *

The current state of the certificate CNAME record validation. It should * change to SUCCESS after App Runner completes validation with your * DNS.

*/ inline const CertificateValidationRecordStatus& GetStatus() const{ return m_status; } /** *

The current state of the certificate CNAME record validation. It should * change to SUCCESS after App Runner completes validation with your * DNS.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The current state of the certificate CNAME record validation. It should * change to SUCCESS after App Runner completes validation with your * DNS.

*/ inline void SetStatus(const CertificateValidationRecordStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The current state of the certificate CNAME record validation. It should * change to SUCCESS after App Runner completes validation with your * DNS.

*/ inline void SetStatus(CertificateValidationRecordStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The current state of the certificate CNAME record validation. It should * change to SUCCESS after App Runner completes validation with your * DNS.

*/ inline CertificateValidationRecord& WithStatus(const CertificateValidationRecordStatus& value) { SetStatus(value); return *this;} /** *

The current state of the certificate CNAME record validation. It should * change to SUCCESS after App Runner completes validation with your * DNS.

*/ inline CertificateValidationRecord& WithStatus(CertificateValidationRecordStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; CertificateValidationRecordStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws