/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the route53-2013-04-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Route53.Model
{
///
/// Container for the parameters to the ListHostedZonesByVPC operation.
/// Lists all the private hosted zones that a specified VPC is associated with, regardless
/// of which Amazon Web Services account or Amazon Web Services service owns the hosted
/// zones. The HostedZoneOwner
structure in the response contains one of
/// the following values:
///
/// -
///
/// An
OwningAccount
element, which contains the account number of either
/// the current Amazon Web Services account or another Amazon Web Services account. Some
/// services, such as Cloud Map, create hosted zones using the current account.
///
/// -
///
/// An
OwningService
element, which identifies the Amazon Web Services service
/// that created and owns the hosted zone. For example, if a hosted zone was created by
/// Amazon Elastic File System (Amazon EFS), the value of Owner
is efs.amazonaws.com
.
///
///
///
///
/// When listing private hosted zones, the hosted zone and the Amazon VPC must belong
/// to the same partition where the hosted zones were created. A partition is a group
/// of Amazon Web Services Regions. Each Amazon Web Services account is scoped to one
/// partition.
///
///
///
/// The following are the supported partitions:
///
/// -
///
///
aws
- Amazon Web Services Regions
///
/// -
///
///
aws-cn
- China Regions
///
/// -
///
///
aws-us-gov
- Amazon Web Services GovCloud (US) Region
///
///
///
/// For more information, see Access
/// Management in the Amazon Web Services General Reference.
///
///
///
public partial class ListHostedZonesByVPCRequest : AmazonRoute53Request
{
private string _vpcId;
private VPCRegion _vpcRegion;
private string _maxItems;
private string _nextToken;
///
/// Gets and sets the property VPCId.
///
/// The ID of the Amazon VPC that you want to list hosted zones for.
///
///
[AWSProperty(Required=true, Max=1024)]
public string VPCId
{
get { return this._vpcId; }
set { this._vpcId = value; }
}
// Check to see if VPCId property is set
internal bool IsSetVPCId()
{
return this._vpcId != null;
}
///
/// Gets and sets the property VPCRegion.
///
/// For the Amazon VPC that you specified for VPCId
, the Amazon Web Services
/// Region that you created the VPC in.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public VPCRegion VPCRegion
{
get { return this._vpcRegion; }
set { this._vpcRegion = value; }
}
// Check to see if VPCRegion property is set
internal bool IsSetVPCRegion()
{
return this._vpcRegion != null;
}
///
/// Gets and sets the property 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.
///
///
public string MaxItems
{
get { return this._maxItems; }
set { this._maxItems = value; }
}
// Check to see if MaxItems property is set
internal bool IsSetMaxItems()
{
return this._maxItems != null;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(Max=1024)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}