/* * 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 settings for a traffic policy. /// public partial class TrafficPolicy { private string _id; private int? _version; private string _name; private RRType _type; private string _document; private string _comment; /// /// Gets and sets the property Id. /// /// The ID that Amazon Route 53 assigned to a traffic policy when you created it. /// /// [AWSProperty(Required=true, Min=1, Max=36)] 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 Version. /// /// The version number that Amazon Route 53 assigns to a traffic policy. For a new traffic /// policy, the value of Version is always 1. /// /// [AWSProperty(Required=true, Min=1, Max=1000)] public int Version { get { return this._version.GetValueOrDefault(); } set { this._version = value; } } // Check to see if Version property is set internal bool IsSetVersion() { return this._version.HasValue; } /// /// Gets and sets the property Name. /// /// The name that you specified when you created the traffic policy. /// /// [AWSProperty(Required=true, Max=512)] 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 Type. /// /// The DNS type of the resource record sets that Amazon Route 53 creates when you use /// a traffic policy to create a traffic policy instance. /// /// [AWSProperty(Required=true)] public RRType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property Document. /// /// The definition of a traffic policy in JSON format. You specify the JSON document to /// use for a new traffic policy in the CreateTrafficPolicy request. For /// more information about the JSON format, see Traffic /// Policy Document Format. /// /// [AWSProperty(Required=true, Max=102400)] public string Document { get { return this._document; } set { this._document = value; } } // Check to see if Document property is set internal bool IsSetDocument() { return this._document != null; } /// /// Gets and sets the property Comment. /// /// The comment that you specify in the CreateTrafficPolicy request, if any. /// /// [AWSProperty(Max=1024)] 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; } } }