/*
* 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 information about a geographic location.
///
public partial class GeoLocation
{
private string _continentCode;
private string _countryCode;
private string _subdivisionCode;
///
/// Gets and sets the property ContinentCode.
///
/// The two-letter code for the continent.
///
///
///
/// Amazon Route 53 supports the following continent codes:
///
/// -
///
/// AF: Africa
///
///
-
///
/// AN: Antarctica
///
///
-
///
/// AS: Asia
///
///
-
///
/// EU: Europe
///
///
-
///
/// OC: Oceania
///
///
-
///
/// NA: North America
///
///
-
///
/// SA: South America
///
///
///
/// Constraint: Specifying ContinentCode
with either CountryCode
/// or SubdivisionCode
returns an InvalidInput
error.
///
///
[AWSProperty(Min=2, Max=2)]
public string ContinentCode
{
get { return this._continentCode; }
set { this._continentCode = value; }
}
// Check to see if ContinentCode property is set
internal bool IsSetContinentCode()
{
return this._continentCode != null;
}
///
/// Gets and sets the property CountryCode.
///
/// For geolocation resource record sets, the two-letter code for a country.
///
///
///
/// Amazon Route 53 uses the two-letter country codes that are specified in ISO
/// standard 3166-1 alpha-2.
///
///
[AWSProperty(Min=1, Max=2)]
public string CountryCode
{
get { return this._countryCode; }
set { this._countryCode = value; }
}
// Check to see if CountryCode property is set
internal bool IsSetCountryCode()
{
return this._countryCode != null;
}
///
/// Gets and sets the property SubdivisionCode.
///
/// For geolocation resource record sets, the two-letter code for a state of the United
/// States. Route 53 doesn't support any other values for SubdivisionCode
.
/// For a list of state abbreviations, see Appendix
/// B: Two–Letter State and Possession Abbreviations on the United States Postal Service
/// website.
///
///
///
/// If you specify subdivisioncode
, you must also specify US
/// for CountryCode
.
///
///
[AWSProperty(Min=1, Max=3)]
public string SubdivisionCode
{
get { return this._subdivisionCode; }
set { this._subdivisionCode = value; }
}
// Check to see if SubdivisionCode property is set
internal bool IsSetSubdivisionCode()
{
return this._subdivisionCode != null;
}
}
}