/** * 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 { /** *

A complex type that contains the type of limit that you specified in the * request and the current value for that limit.

See Also:

AWS * API Reference

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

The limit that you requested. Valid values include the following:

    *
  • MAX_RRSETS_BY_ZONE: The maximum number of records that you can * create in the specified hosted zone.

  • * MAX_VPCS_ASSOCIATED_BY_ZONE: The maximum number of Amazon VPCs that you * can associate with the specified private hosted zone.

*/ inline const HostedZoneLimitType& GetType() const{ return m_type; } /** *

The limit that you requested. Valid values include the following:

    *
  • MAX_RRSETS_BY_ZONE: The maximum number of records that you can * create in the specified hosted zone.

  • * MAX_VPCS_ASSOCIATED_BY_ZONE: The maximum number of Amazon VPCs that you * can associate with the specified private hosted zone.

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

The limit that you requested. Valid values include the following:

    *
  • MAX_RRSETS_BY_ZONE: The maximum number of records that you can * create in the specified hosted zone.

  • * MAX_VPCS_ASSOCIATED_BY_ZONE: The maximum number of Amazon VPCs that you * can associate with the specified private hosted zone.

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

The limit that you requested. Valid values include the following:

    *
  • MAX_RRSETS_BY_ZONE: The maximum number of records that you can * create in the specified hosted zone.

  • * MAX_VPCS_ASSOCIATED_BY_ZONE: The maximum number of Amazon VPCs that you * can associate with the specified private hosted zone.

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

The limit that you requested. Valid values include the following:

    *
  • MAX_RRSETS_BY_ZONE: The maximum number of records that you can * create in the specified hosted zone.

  • * MAX_VPCS_ASSOCIATED_BY_ZONE: The maximum number of Amazon VPCs that you * can associate with the specified private hosted zone.

*/ inline HostedZoneLimit& WithType(const HostedZoneLimitType& value) { SetType(value); return *this;} /** *

The limit that you requested. Valid values include the following:

    *
  • MAX_RRSETS_BY_ZONE: The maximum number of records that you can * create in the specified hosted zone.

  • * MAX_VPCS_ASSOCIATED_BY_ZONE: The maximum number of Amazon VPCs that you * can associate with the specified private hosted zone.

*/ inline HostedZoneLimit& WithType(HostedZoneLimitType&& value) { SetType(std::move(value)); return *this;} /** *

The current value for the limit that is specified by Type.

*/ inline long long GetValue() const{ return m_value; } /** *

The current value for the limit that is specified by Type.

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

The current value for the limit that is specified by Type.

*/ inline void SetValue(long long value) { m_valueHasBeenSet = true; m_value = value; } /** *

The current value for the limit that is specified by Type.

*/ inline HostedZoneLimit& WithValue(long long value) { SetValue(value); return *this;} private: HostedZoneLimitType m_type; bool m_typeHasBeenSet = false; long long m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws