/** * 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 Http { class URI; } //namespace Http namespace Route53 { namespace Model { /** *

Retrieves a list of the public and private hosted zones that are associated * with the current Amazon Web Services account in ASCII order by domain name. *

See Also:

AWS * API Reference

*/ class ListHostedZonesByNameRequest : public Route53Request { public: AWS_ROUTE53_API ListHostedZonesByNameRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListHostedZonesByName"; } AWS_ROUTE53_API Aws::String SerializePayload() const override; AWS_ROUTE53_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

(Optional) For your first request to ListHostedZonesByName, * include the dnsname parameter only if you want to specify the name * of the first hosted zone in the response. If you don't include the * dnsname parameter, Amazon Route 53 returns all of the hosted zones * that were created by the current Amazon Web Services account, in ASCII order. * For subsequent requests, include both dnsname and * hostedzoneid parameters. For dnsname, specify the * value of NextDNSName from the previous response.

*/ inline const Aws::String& GetDNSName() const{ return m_dNSName; } /** *

(Optional) For your first request to ListHostedZonesByName, * include the dnsname parameter only if you want to specify the name * of the first hosted zone in the response. If you don't include the * dnsname parameter, Amazon Route 53 returns all of the hosted zones * that were created by the current Amazon Web Services account, in ASCII order. * For subsequent requests, include both dnsname and * hostedzoneid parameters. For dnsname, specify the * value of NextDNSName from the previous response.

*/ inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; } /** *

(Optional) For your first request to ListHostedZonesByName, * include the dnsname parameter only if you want to specify the name * of the first hosted zone in the response. If you don't include the * dnsname parameter, Amazon Route 53 returns all of the hosted zones * that were created by the current Amazon Web Services account, in ASCII order. * For subsequent requests, include both dnsname and * hostedzoneid parameters. For dnsname, specify the * value of NextDNSName from the previous response.

*/ inline void SetDNSName(const Aws::String& value) { m_dNSNameHasBeenSet = true; m_dNSName = value; } /** *

(Optional) For your first request to ListHostedZonesByName, * include the dnsname parameter only if you want to specify the name * of the first hosted zone in the response. If you don't include the * dnsname parameter, Amazon Route 53 returns all of the hosted zones * that were created by the current Amazon Web Services account, in ASCII order. * For subsequent requests, include both dnsname and * hostedzoneid parameters. For dnsname, specify the * value of NextDNSName from the previous response.

*/ inline void SetDNSName(Aws::String&& value) { m_dNSNameHasBeenSet = true; m_dNSName = std::move(value); } /** *

(Optional) For your first request to ListHostedZonesByName, * include the dnsname parameter only if you want to specify the name * of the first hosted zone in the response. If you don't include the * dnsname parameter, Amazon Route 53 returns all of the hosted zones * that were created by the current Amazon Web Services account, in ASCII order. * For subsequent requests, include both dnsname and * hostedzoneid parameters. For dnsname, specify the * value of NextDNSName from the previous response.

*/ inline void SetDNSName(const char* value) { m_dNSNameHasBeenSet = true; m_dNSName.assign(value); } /** *

(Optional) For your first request to ListHostedZonesByName, * include the dnsname parameter only if you want to specify the name * of the first hosted zone in the response. If you don't include the * dnsname parameter, Amazon Route 53 returns all of the hosted zones * that were created by the current Amazon Web Services account, in ASCII order. * For subsequent requests, include both dnsname and * hostedzoneid parameters. For dnsname, specify the * value of NextDNSName from the previous response.

*/ inline ListHostedZonesByNameRequest& WithDNSName(const Aws::String& value) { SetDNSName(value); return *this;} /** *

(Optional) For your first request to ListHostedZonesByName, * include the dnsname parameter only if you want to specify the name * of the first hosted zone in the response. If you don't include the * dnsname parameter, Amazon Route 53 returns all of the hosted zones * that were created by the current Amazon Web Services account, in ASCII order. * For subsequent requests, include both dnsname and * hostedzoneid parameters. For dnsname, specify the * value of NextDNSName from the previous response.

*/ inline ListHostedZonesByNameRequest& WithDNSName(Aws::String&& value) { SetDNSName(std::move(value)); return *this;} /** *

(Optional) For your first request to ListHostedZonesByName, * include the dnsname parameter only if you want to specify the name * of the first hosted zone in the response. If you don't include the * dnsname parameter, Amazon Route 53 returns all of the hosted zones * that were created by the current Amazon Web Services account, in ASCII order. * For subsequent requests, include both dnsname and * hostedzoneid parameters. For dnsname, specify the * value of NextDNSName from the previous response.

*/ inline ListHostedZonesByNameRequest& WithDNSName(const char* value) { SetDNSName(value); return *this;} /** *

(Optional) For your first request to ListHostedZonesByName, do * not include the hostedzoneid parameter.

If you have more * hosted zones than the value of maxitems, * ListHostedZonesByName returns only the first maxitems * hosted zones. To get the next group of maxitems hosted zones, * submit another request to ListHostedZonesByName and include both * dnsname and hostedzoneid parameters. For the value of * hostedzoneid, specify the value of the * NextHostedZoneId element from the previous response.

*/ inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; } /** *

(Optional) For your first request to ListHostedZonesByName, do * not include the hostedzoneid parameter.

If you have more * hosted zones than the value of maxitems, * ListHostedZonesByName returns only the first maxitems * hosted zones. To get the next group of maxitems hosted zones, * submit another request to ListHostedZonesByName and include both * dnsname and hostedzoneid parameters. For the value of * hostedzoneid, specify the value of the * NextHostedZoneId element from the previous response.

*/ inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; } /** *

(Optional) For your first request to ListHostedZonesByName, do * not include the hostedzoneid parameter.

If you have more * hosted zones than the value of maxitems, * ListHostedZonesByName returns only the first maxitems * hosted zones. To get the next group of maxitems hosted zones, * submit another request to ListHostedZonesByName and include both * dnsname and hostedzoneid parameters. For the value of * hostedzoneid, specify the value of the * NextHostedZoneId element from the previous response.

*/ inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; } /** *

(Optional) For your first request to ListHostedZonesByName, do * not include the hostedzoneid parameter.

If you have more * hosted zones than the value of maxitems, * ListHostedZonesByName returns only the first maxitems * hosted zones. To get the next group of maxitems hosted zones, * submit another request to ListHostedZonesByName and include both * dnsname and hostedzoneid parameters. For the value of * hostedzoneid, specify the value of the * NextHostedZoneId element from the previous response.

*/ inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); } /** *

(Optional) For your first request to ListHostedZonesByName, do * not include the hostedzoneid parameter.

If you have more * hosted zones than the value of maxitems, * ListHostedZonesByName returns only the first maxitems * hosted zones. To get the next group of maxitems hosted zones, * submit another request to ListHostedZonesByName and include both * dnsname and hostedzoneid parameters. For the value of * hostedzoneid, specify the value of the * NextHostedZoneId element from the previous response.

*/ inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); } /** *

(Optional) For your first request to ListHostedZonesByName, do * not include the hostedzoneid parameter.

If you have more * hosted zones than the value of maxitems, * ListHostedZonesByName returns only the first maxitems * hosted zones. To get the next group of maxitems hosted zones, * submit another request to ListHostedZonesByName and include both * dnsname and hostedzoneid parameters. For the value of * hostedzoneid, specify the value of the * NextHostedZoneId element from the previous response.

*/ inline ListHostedZonesByNameRequest& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;} /** *

(Optional) For your first request to ListHostedZonesByName, do * not include the hostedzoneid parameter.

If you have more * hosted zones than the value of maxitems, * ListHostedZonesByName returns only the first maxitems * hosted zones. To get the next group of maxitems hosted zones, * submit another request to ListHostedZonesByName and include both * dnsname and hostedzoneid parameters. For the value of * hostedzoneid, specify the value of the * NextHostedZoneId element from the previous response.

*/ inline ListHostedZonesByNameRequest& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;} /** *

(Optional) For your first request to ListHostedZonesByName, do * not include the hostedzoneid parameter.

If you have more * hosted zones than the value of maxitems, * ListHostedZonesByName returns only the first maxitems * hosted zones. To get the next group of maxitems hosted zones, * submit another request to ListHostedZonesByName and include both * dnsname and hostedzoneid parameters. For the value of * hostedzoneid, specify the value of the * NextHostedZoneId element from the previous response.

*/ inline ListHostedZonesByNameRequest& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;} /** *

The maximum number of hosted zones to be included in the response body for * this request. If you have more than maxitems hosted zones, then the * value of the IsTruncated element in the response is true, and the * values of NextDNSName and NextHostedZoneId specify the * first hosted zone in the next group of maxitems hosted zones.

*/ inline const Aws::String& GetMaxItems() const{ return m_maxItems; } /** *

The maximum number of hosted zones to be included in the response body for * this request. If you have more than maxitems hosted zones, then the * value of the IsTruncated element in the response is true, and the * values of NextDNSName and NextHostedZoneId specify the * first hosted zone in the next group of maxitems hosted zones.

*/ inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } /** *

The maximum number of hosted zones to be included in the response body for * this request. If you have more than maxitems hosted zones, then the * value of the IsTruncated element in the response is true, and the * values of NextDNSName and NextHostedZoneId specify the * first hosted zone in the next group of maxitems hosted zones.

*/ inline void SetMaxItems(const Aws::String& value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } /** *

The maximum number of hosted zones to be included in the response body for * this request. If you have more than maxitems hosted zones, then the * value of the IsTruncated element in the response is true, and the * values of NextDNSName and NextHostedZoneId specify the * first hosted zone in the next group of maxitems hosted zones.

*/ inline void SetMaxItems(Aws::String&& value) { m_maxItemsHasBeenSet = true; m_maxItems = std::move(value); } /** *

The maximum number of hosted zones to be included in the response body for * this request. If you have more than maxitems hosted zones, then the * value of the IsTruncated element in the response is true, and the * values of NextDNSName and NextHostedZoneId specify the * first hosted zone in the next group of maxitems hosted zones.

*/ inline void SetMaxItems(const char* value) { m_maxItemsHasBeenSet = true; m_maxItems.assign(value); } /** *

The maximum number of hosted zones to be included in the response body for * this request. If you have more than maxitems hosted zones, then the * value of the IsTruncated element in the response is true, and the * values of NextDNSName and NextHostedZoneId specify the * first hosted zone in the next group of maxitems hosted zones.

*/ inline ListHostedZonesByNameRequest& WithMaxItems(const Aws::String& value) { SetMaxItems(value); return *this;} /** *

The maximum number of hosted zones to be included in the response body for * this request. If you have more than maxitems hosted zones, then the * value of the IsTruncated element in the response is true, and the * values of NextDNSName and NextHostedZoneId specify the * first hosted zone in the next group of maxitems hosted zones.

*/ inline ListHostedZonesByNameRequest& WithMaxItems(Aws::String&& value) { SetMaxItems(std::move(value)); return *this;} /** *

The maximum number of hosted zones to be included in the response body for * this request. If you have more than maxitems hosted zones, then the * value of the IsTruncated element in the response is true, and the * values of NextDNSName and NextHostedZoneId specify the * first hosted zone in the next group of maxitems hosted zones.

*/ inline ListHostedZonesByNameRequest& WithMaxItems(const char* value) { SetMaxItems(value); return *this;} private: Aws::String m_dNSName; bool m_dNSNameHasBeenSet = false; Aws::String m_hostedZoneId; bool m_hostedZoneIdHasBeenSet = false; Aws::String m_maxItems; bool m_maxItemsHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws