/* * 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 the response to a TestDNSAnswer request. /// public partial class TestDNSAnswerResponse : AmazonWebServiceResponse { private string _nameserver; private string _recordName; private RRType _recordType; private List _recordData = new List(); private string _responseCode; private string _protocol; /// /// Gets and sets the property Nameserver. /// /// The Amazon Route 53 name server used to respond to the request. /// /// [AWSProperty(Required=true, Min=0, Max=255)] public string Nameserver { get { return this._nameserver; } set { this._nameserver = value; } } // Check to see if Nameserver property is set internal bool IsSetNameserver() { return this._nameserver != null; } /// /// Gets and sets the property RecordName. /// /// The name of the resource record set that you submitted a request for. /// /// [AWSProperty(Required=true, Max=1024)] public string RecordName { get { return this._recordName; } set { this._recordName = value; } } // Check to see if RecordName property is set internal bool IsSetRecordName() { return this._recordName != null; } /// /// Gets and sets the property RecordType. /// /// The type of the resource record set that you submitted a request for. /// /// [AWSProperty(Required=true)] public RRType RecordType { get { return this._recordType; } set { this._recordType = value; } } // Check to see if RecordType property is set internal bool IsSetRecordType() { return this._recordType != null; } /// /// Gets and sets the property RecordData. /// /// A list that contains values that Amazon Route 53 returned for this resource record /// set. /// /// [AWSProperty(Required=true)] public List RecordData { get { return this._recordData; } set { this._recordData = value; } } // Check to see if RecordData property is set internal bool IsSetRecordData() { return this._recordData != null && this._recordData.Count > 0; } /// /// Gets and sets the property ResponseCode. /// /// A code that indicates whether the request is valid or not. The most common response /// code is NOERROR, meaning that the request is valid. If the response is /// not valid, Amazon Route 53 returns a response code that describes the error. For a /// list of possible response codes, see DNS /// RCODES on the IANA website. /// /// [AWSProperty(Required=true)] public string ResponseCode { get { return this._responseCode; } set { this._responseCode = value; } } // Check to see if ResponseCode property is set internal bool IsSetResponseCode() { return this._responseCode != null; } /// /// Gets and sets the property Protocol. /// /// The protocol that Amazon Route 53 used to respond to the request, either UDP /// or TCP. /// /// [AWSProperty(Required=true)] public string Protocol { get { return this._protocol; } set { this._protocol = value; } } // Check to see if Protocol property is set internal bool IsSetProtocol() { return this._protocol != null; } } }