/*
* 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 GetGeoLocation operation.
/// Gets information about whether a specified geographic location is supported for Amazon
/// Route 53 geolocation resource record sets.
///
///
///
/// Route 53 does not perform authorization for this API because it retrieves information
/// that is already available to the public.
///
///
///
/// Use the following syntax to determine whether a continent is supported for geolocation:
///
///
///
/// GET /2013-04-01/geolocation?continentcode=two-letter abbreviation for a
/// continent
///
///
///
/// Use the following syntax to determine whether a country is supported for geolocation:
///
///
///
/// GET /2013-04-01/geolocation?countrycode=two-character country code
///
///
///
///
/// Use the following syntax to determine whether a subdivision of a country is supported
/// for geolocation:
///
///
///
/// GET /2013-04-01/geolocation?countrycode=two-character country code&subdivisioncode=subdivision
/// code
///
///
public partial class GetGeoLocationRequest : AmazonRoute53Request
{
private string _continentCode;
private string _countryCode;
private string _subdivisionCode;
///
/// Gets and sets the property ContinentCode.
///
/// For geolocation resource record sets, a two-letter abbreviation that identifies a
/// 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
///
///
///
[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.
///
/// 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.
///
/// The code for the subdivision, such as a particular state within the United States.
/// For a list of US state abbreviations, see Appendix
/// B: Two–Letter State and Possession Abbreviations on the United States Postal Service
/// website. For a list of all supported subdivision codes, use the ListGeoLocations
/// API.
///
///
[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;
}
}
}