/* * 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 AssociateVPCWithHostedZone operation. /// Associates an Amazon VPC with a private hosted zone. /// /// /// /// To perform the association, the VPC and the private hosted zone must already exist. /// You can't convert a public hosted zone into a private hosted zone. /// /// /// /// If you want to associate a VPC that was created by using one Amazon Web Services account /// with a private hosted zone that was created by using a different account, the Amazon /// Web Services account that created the private hosted zone must first submit a CreateVPCAssociationAuthorization /// request. Then the account that created the VPC must submit an AssociateVPCWithHostedZone /// request. /// /// /// /// When granting access, the hosted zone and the Amazon VPC must belong to the same partition. /// 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: /// /// /// /// For more information, see Access /// Management in the Amazon Web Services General Reference. /// /// /// public partial class AssociateVPCWithHostedZoneRequest : AmazonRoute53Request { private string _hostedZoneId; private VPC _vpc; private string _comment; /// /// Gets and sets the property HostedZoneId. /// /// The ID of the private hosted zone that you want to associate an Amazon VPC with. /// /// /// /// Note that you can't associate a VPC with a hosted zone that doesn't have an existing /// VPC association. /// /// [AWSProperty(Required=true, Max=32)] public string HostedZoneId { get { return this._hostedZoneId; } set { this._hostedZoneId = value; } } // Check to see if HostedZoneId property is set internal bool IsSetHostedZoneId() { return this._hostedZoneId != null; } /// /// Gets and sets the property VPC. /// /// A complex type that contains information about the VPC that you want to associate /// with a private hosted zone. /// /// [AWSProperty(Required=true)] public VPC VPC { get { return this._vpc; } set { this._vpc = value; } } // Check to see if VPC property is set internal bool IsSetVPC() { return this._vpc != null; } /// /// Gets and sets the property Comment. /// /// Optional: A comment about the association request. /// /// public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } } }