/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace Route53 { namespace Model { /** *

Lists all the private hosted zones that a specified VPC is associated with, * regardless of which Amazon Web Services account created the hosted * zones.

See Also:

AWS * API Reference

*/ class ListHostedZonesByVPCRequest : public Route53Request { public: AWS_ROUTE53_API ListHostedZonesByVPCRequest(); // 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 "ListHostedZonesByVPC"; } AWS_ROUTE53_API Aws::String SerializePayload() const override; AWS_ROUTE53_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the Amazon VPC that you want to list hosted zones for.

*/ inline const Aws::String& GetVPCId() const{ return m_vPCId; } /** *

The ID of the Amazon VPC that you want to list hosted zones for.

*/ inline bool VPCIdHasBeenSet() const { return m_vPCIdHasBeenSet; } /** *

The ID of the Amazon VPC that you want to list hosted zones for.

*/ inline void SetVPCId(const Aws::String& value) { m_vPCIdHasBeenSet = true; m_vPCId = value; } /** *

The ID of the Amazon VPC that you want to list hosted zones for.

*/ inline void SetVPCId(Aws::String&& value) { m_vPCIdHasBeenSet = true; m_vPCId = std::move(value); } /** *

The ID of the Amazon VPC that you want to list hosted zones for.

*/ inline void SetVPCId(const char* value) { m_vPCIdHasBeenSet = true; m_vPCId.assign(value); } /** *

The ID of the Amazon VPC that you want to list hosted zones for.

*/ inline ListHostedZonesByVPCRequest& WithVPCId(const Aws::String& value) { SetVPCId(value); return *this;} /** *

The ID of the Amazon VPC that you want to list hosted zones for.

*/ inline ListHostedZonesByVPCRequest& WithVPCId(Aws::String&& value) { SetVPCId(std::move(value)); return *this;} /** *

The ID of the Amazon VPC that you want to list hosted zones for.

*/ inline ListHostedZonesByVPCRequest& WithVPCId(const char* value) { SetVPCId(value); return *this;} /** *

For the Amazon VPC that you specified for VPCId, the Amazon Web * Services Region that you created the VPC in.

*/ inline const VPCRegion& GetVPCRegion() const{ return m_vPCRegion; } /** *

For the Amazon VPC that you specified for VPCId, the Amazon Web * Services Region that you created the VPC in.

*/ inline bool VPCRegionHasBeenSet() const { return m_vPCRegionHasBeenSet; } /** *

For the Amazon VPC that you specified for VPCId, the Amazon Web * Services Region that you created the VPC in.

*/ inline void SetVPCRegion(const VPCRegion& value) { m_vPCRegionHasBeenSet = true; m_vPCRegion = value; } /** *

For the Amazon VPC that you specified for VPCId, the Amazon Web * Services Region that you created the VPC in.

*/ inline void SetVPCRegion(VPCRegion&& value) { m_vPCRegionHasBeenSet = true; m_vPCRegion = std::move(value); } /** *

For the Amazon VPC that you specified for VPCId, the Amazon Web * Services Region that you created the VPC in.

*/ inline ListHostedZonesByVPCRequest& WithVPCRegion(const VPCRegion& value) { SetVPCRegion(value); return *this;} /** *

For the Amazon VPC that you specified for VPCId, the Amazon Web * Services Region that you created the VPC in.

*/ inline ListHostedZonesByVPCRequest& WithVPCRegion(VPCRegion&& value) { SetVPCRegion(std::move(value)); return *this;} /** *

(Optional) The maximum number of hosted zones that you want Amazon Route 53 * to return. If the specified VPC is associated with more than * MaxItems hosted zones, the response includes a * NextToken element. NextToken contains an encrypted * token that identifies the first hosted zone that Route 53 will return if you * submit another request.

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

(Optional) The maximum number of hosted zones that you want Amazon Route 53 * to return. If the specified VPC is associated with more than * MaxItems hosted zones, the response includes a * NextToken element. NextToken contains an encrypted * token that identifies the first hosted zone that Route 53 will return if you * submit another request.

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

(Optional) The maximum number of hosted zones that you want Amazon Route 53 * to return. If the specified VPC is associated with more than * MaxItems hosted zones, the response includes a * NextToken element. NextToken contains an encrypted * token that identifies the first hosted zone that Route 53 will return if you * submit another request.

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

(Optional) The maximum number of hosted zones that you want Amazon Route 53 * to return. If the specified VPC is associated with more than * MaxItems hosted zones, the response includes a * NextToken element. NextToken contains an encrypted * token that identifies the first hosted zone that Route 53 will return if you * submit another request.

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

(Optional) The maximum number of hosted zones that you want Amazon Route 53 * to return. If the specified VPC is associated with more than * MaxItems hosted zones, the response includes a * NextToken element. NextToken contains an encrypted * token that identifies the first hosted zone that Route 53 will return if you * submit another request.

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

(Optional) The maximum number of hosted zones that you want Amazon Route 53 * to return. If the specified VPC is associated with more than * MaxItems hosted zones, the response includes a * NextToken element. NextToken contains an encrypted * token that identifies the first hosted zone that Route 53 will return if you * submit another request.

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

(Optional) The maximum number of hosted zones that you want Amazon Route 53 * to return. If the specified VPC is associated with more than * MaxItems hosted zones, the response includes a * NextToken element. NextToken contains an encrypted * token that identifies the first hosted zone that Route 53 will return if you * submit another request.

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

(Optional) The maximum number of hosted zones that you want Amazon Route 53 * to return. If the specified VPC is associated with more than * MaxItems hosted zones, the response includes a * NextToken element. NextToken contains an encrypted * token that identifies the first hosted zone that Route 53 will return if you * submit another request.

*/ inline ListHostedZonesByVPCRequest& WithMaxItems(const char* value) { SetMaxItems(value); return *this;} /** *

If the previous response included a NextToken element, the * specified VPC is associated with more hosted zones. To get more hosted zones, * submit another ListHostedZonesByVPC request.

For the value * of NextToken, specify the value of NextToken from the * previous response.

If the previous response didn't include a * NextToken element, there are no more hosted zones to get.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the previous response included a NextToken element, the * specified VPC is associated with more hosted zones. To get more hosted zones, * submit another ListHostedZonesByVPC request.

For the value * of NextToken, specify the value of NextToken from the * previous response.

If the previous response didn't include a * NextToken element, there are no more hosted zones to get.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

If the previous response included a NextToken element, the * specified VPC is associated with more hosted zones. To get more hosted zones, * submit another ListHostedZonesByVPC request.

For the value * of NextToken, specify the value of NextToken from the * previous response.

If the previous response didn't include a * NextToken element, there are no more hosted zones to get.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

If the previous response included a NextToken element, the * specified VPC is associated with more hosted zones. To get more hosted zones, * submit another ListHostedZonesByVPC request.

For the value * of NextToken, specify the value of NextToken from the * previous response.

If the previous response didn't include a * NextToken element, there are no more hosted zones to get.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

If the previous response included a NextToken element, the * specified VPC is associated with more hosted zones. To get more hosted zones, * submit another ListHostedZonesByVPC request.

For the value * of NextToken, specify the value of NextToken from the * previous response.

If the previous response didn't include a * NextToken element, there are no more hosted zones to get.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

If the previous response included a NextToken element, the * specified VPC is associated with more hosted zones. To get more hosted zones, * submit another ListHostedZonesByVPC request.

For the value * of NextToken, specify the value of NextToken from the * previous response.

If the previous response didn't include a * NextToken element, there are no more hosted zones to get.

*/ inline ListHostedZonesByVPCRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If the previous response included a NextToken element, the * specified VPC is associated with more hosted zones. To get more hosted zones, * submit another ListHostedZonesByVPC request.

For the value * of NextToken, specify the value of NextToken from the * previous response.

If the previous response didn't include a * NextToken element, there are no more hosted zones to get.

*/ inline ListHostedZonesByVPCRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If the previous response included a NextToken element, the * specified VPC is associated with more hosted zones. To get more hosted zones, * submit another ListHostedZonesByVPC request.

For the value * of NextToken, specify the value of NextToken from the * previous response.

If the previous response didn't include a * NextToken element, there are no more hosted zones to get.

*/ inline ListHostedZonesByVPCRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_vPCId; bool m_vPCIdHasBeenSet = false; VPCRegion m_vPCRegion; bool m_vPCRegionHasBeenSet = false; Aws::String m_maxItems; bool m_maxItemsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws