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

Information specific to the resource record.

If you're creating * an alias resource record set, omit ResourceRecord.

*

See Also:

AWS * API Reference

*/ class ResourceRecord { public: AWS_ROUTE53_API ResourceRecord(); AWS_ROUTE53_API ResourceRecord(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API ResourceRecord& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The current or new DNS record value, not to exceed 4,000 characters. In the * case of a DELETE action, if the current value does not match the * actual value, an error is returned. For descriptions about how to format * Value for different record types, see Supported * DNS Resource Record Types in the Amazon Route 53 Developer Guide.

*

You can specify more than one value for all record types except * CNAME and SOA.

If you're creating an * alias resource record set, omit Value.

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

The current or new DNS record value, not to exceed 4,000 characters. In the * case of a DELETE action, if the current value does not match the * actual value, an error is returned. For descriptions about how to format * Value for different record types, see Supported * DNS Resource Record Types in the Amazon Route 53 Developer Guide.

*

You can specify more than one value for all record types except * CNAME and SOA.

If you're creating an * alias resource record set, omit Value.

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

The current or new DNS record value, not to exceed 4,000 characters. In the * case of a DELETE action, if the current value does not match the * actual value, an error is returned. For descriptions about how to format * Value for different record types, see Supported * DNS Resource Record Types in the Amazon Route 53 Developer Guide.

*

You can specify more than one value for all record types except * CNAME and SOA.

If you're creating an * alias resource record set, omit Value.

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

The current or new DNS record value, not to exceed 4,000 characters. In the * case of a DELETE action, if the current value does not match the * actual value, an error is returned. For descriptions about how to format * Value for different record types, see Supported * DNS Resource Record Types in the Amazon Route 53 Developer Guide.

*

You can specify more than one value for all record types except * CNAME and SOA.

If you're creating an * alias resource record set, omit Value.

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

The current or new DNS record value, not to exceed 4,000 characters. In the * case of a DELETE action, if the current value does not match the * actual value, an error is returned. For descriptions about how to format * Value for different record types, see Supported * DNS Resource Record Types in the Amazon Route 53 Developer Guide.

*

You can specify more than one value for all record types except * CNAME and SOA.

If you're creating an * alias resource record set, omit Value.

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

The current or new DNS record value, not to exceed 4,000 characters. In the * case of a DELETE action, if the current value does not match the * actual value, an error is returned. For descriptions about how to format * Value for different record types, see Supported * DNS Resource Record Types in the Amazon Route 53 Developer Guide.

*

You can specify more than one value for all record types except * CNAME and SOA.

If you're creating an * alias resource record set, omit Value.

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

The current or new DNS record value, not to exceed 4,000 characters. In the * case of a DELETE action, if the current value does not match the * actual value, an error is returned. For descriptions about how to format * Value for different record types, see Supported * DNS Resource Record Types in the Amazon Route 53 Developer Guide.

*

You can specify more than one value for all record types except * CNAME and SOA.

If you're creating an * alias resource record set, omit Value.

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

The current or new DNS record value, not to exceed 4,000 characters. In the * case of a DELETE action, if the current value does not match the * actual value, an error is returned. For descriptions about how to format * Value for different record types, see Supported * DNS Resource Record Types in the Amazon Route 53 Developer Guide.

*

You can specify more than one value for all record types except * CNAME and SOA.

If you're creating an * alias resource record set, omit Value.

*/ inline ResourceRecord& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws