/* * 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 { /// /// A complex type that contains general information about the hosted zone. /// public partial class HostedZone { private string _id; private string _name; private string _callerReference; private HostedZoneConfig _config; private long? _resourceRecordSetCount; private LinkedService _linkedService; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public HostedZone() { } /// /// Instantiates HostedZone with the parameterized properties /// /// The ID that Amazon Route 53 assigned to the hosted zone when you created it. /// The name of the domain. For public hosted zones, this is the name that you have registered with your DNS registrar. For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see CreateHostedZone. /// The value that you specified for CallerReference when you created the hosted zone. public HostedZone(string id, string name, string callerReference) { _id = id; _name = name; _callerReference = callerReference; } /// /// Gets and sets the property Id. /// /// The ID that Amazon Route 53 assigned to the hosted zone when you created it. /// /// [AWSProperty(Required=true, Max=32)] public string Id { get { return this._id; } set { this._id = value; } } // Check to see if Id property is set internal bool IsSetId() { return this._id != null; } /// /// Gets and sets the property Name. /// /// The name of the domain. For public hosted zones, this is the name that you have registered /// with your DNS registrar. /// /// /// /// For information about how to specify characters other than a-z, 0-9, /// and - (hyphen) and how to specify internationalized domain names, see /// CreateHostedZone. /// /// [AWSProperty(Required=true, Max=1024)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property CallerReference. /// /// The value that you specified for CallerReference when you created the /// hosted zone. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string CallerReference { get { return this._callerReference; } set { this._callerReference = value; } } // Check to see if CallerReference property is set internal bool IsSetCallerReference() { return this._callerReference != null; } /// /// Gets and sets the property Config. /// /// A complex type that includes the Comment and PrivateZone /// elements. If you omitted the HostedZoneConfig and Comment /// elements from the request, the Config and Comment elements /// don't appear in the response. /// /// public HostedZoneConfig Config { get { return this._config; } set { this._config = value; } } // Check to see if Config property is set internal bool IsSetConfig() { return this._config != null; } /// /// Gets and sets the property ResourceRecordSetCount. /// /// The number of resource record sets in the hosted zone. /// /// public long ResourceRecordSetCount { get { return this._resourceRecordSetCount.GetValueOrDefault(); } set { this._resourceRecordSetCount = value; } } // Check to see if ResourceRecordSetCount property is set internal bool IsSetResourceRecordSetCount() { return this._resourceRecordSetCount.HasValue; } /// /// Gets and sets the property LinkedService. /// /// If the hosted zone was created by another service, the service that created the hosted /// zone. When a hosted zone is created by another service, you can't edit or delete it /// using Route 53. /// /// public LinkedService LinkedService { get { return this._linkedService; } set { this._linkedService = value; } } // Check to see if LinkedService property is set internal bool IsSetLinkedService() { return this._linkedService != null; } } }