/*
* 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 route53domains-2014-05-15.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.Route53Domains.Model
{
///
/// ContactDetail includes the following elements.
///
public partial class ContactDetail
{
private string _addressLine1;
private string _addressLine2;
private string _city;
private ContactType _contactType;
private CountryCode _countryCode;
private string _email;
private List _extraParams = new List();
private string _fax;
private string _firstName;
private string _lastName;
private string _organizationName;
private string _phoneNumber;
private string _state;
private string _zipCode;
///
/// Gets and sets the property AddressLine1.
///
/// First line of the contact's address.
///
///
[AWSProperty(Max=255)]
public string AddressLine1
{
get { return this._addressLine1; }
set { this._addressLine1 = value; }
}
// Check to see if AddressLine1 property is set
internal bool IsSetAddressLine1()
{
return this._addressLine1 != null;
}
///
/// Gets and sets the property AddressLine2.
///
/// Second line of contact's address, if any.
///
///
[AWSProperty(Max=255)]
public string AddressLine2
{
get { return this._addressLine2; }
set { this._addressLine2 = value; }
}
// Check to see if AddressLine2 property is set
internal bool IsSetAddressLine2()
{
return this._addressLine2 != null;
}
///
/// Gets and sets the property City.
///
/// The city of the contact's address.
///
///
[AWSProperty(Max=255)]
public string City
{
get { return this._city; }
set { this._city = value; }
}
// Check to see if City property is set
internal bool IsSetCity()
{
return this._city != null;
}
///
/// Gets and sets the property ContactType.
///
/// Indicates whether the contact is a person, company, association, or public organization.
/// Note the following:
///
/// -
///
/// If you specify a value other than
PERSON
, you must also specify a value
/// for OrganizationName
.
///
/// -
///
/// For some TLDs, the privacy protection available depends on the value that you specify
/// for
Contact Type
. For the privacy protection settings for your TLD, see
/// Domains
/// that You Can Register with Amazon Route 53 in the Amazon Route 53 Developer
/// Guide
///
/// -
///
/// For .es domains, the value of
ContactType
must be PERSON
/// for all three contacts.
///
///
///
public ContactType ContactType
{
get { return this._contactType; }
set { this._contactType = value; }
}
// Check to see if ContactType property is set
internal bool IsSetContactType()
{
return this._contactType != null;
}
///
/// Gets and sets the property CountryCode.
///
/// Code for the country of the contact's address.
///
///
public CountryCode 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 Email.
///
/// Email address of the contact.
///
///
[AWSProperty(Max=254)]
public string Email
{
get { return this._email; }
set { this._email = value; }
}
// Check to see if Email property is set
internal bool IsSetEmail()
{
return this._email != null;
}
///
/// Gets and sets the property ExtraParams.
///
/// A list of name-value pairs for parameters required by certain top-level domains.
///
///
public List ExtraParams
{
get { return this._extraParams; }
set { this._extraParams = value; }
}
// Check to see if ExtraParams property is set
internal bool IsSetExtraParams()
{
return this._extraParams != null && this._extraParams.Count > 0;
}
///
/// Gets and sets the property Fax.
///
/// Fax number of the contact.
///
///
///
/// Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code]". For example, a US phone number might appear as "+1.1234567890"
.
///
///
[AWSProperty(Max=30)]
public string Fax
{
get { return this._fax; }
set { this._fax = value; }
}
// Check to see if Fax property is set
internal bool IsSetFax()
{
return this._fax != null;
}
///
/// Gets and sets the property FirstName.
///
/// First name of contact.
///
///
[AWSProperty(Max=255)]
public string FirstName
{
get { return this._firstName; }
set { this._firstName = value; }
}
// Check to see if FirstName property is set
internal bool IsSetFirstName()
{
return this._firstName != null;
}
///
/// Gets and sets the property LastName.
///
/// Last name of contact.
///
///
[AWSProperty(Max=255)]
public string LastName
{
get { return this._lastName; }
set { this._lastName = value; }
}
// Check to see if LastName property is set
internal bool IsSetLastName()
{
return this._lastName != null;
}
///
/// Gets and sets the property OrganizationName.
///
/// Name of the organization for contact types other than PERSON
.
///
///
[AWSProperty(Max=255)]
public string OrganizationName
{
get { return this._organizationName; }
set { this._organizationName = value; }
}
// Check to see if OrganizationName property is set
internal bool IsSetOrganizationName()
{
return this._organizationName != null;
}
///
/// Gets and sets the property PhoneNumber.
///
/// The phone number of the contact.
///
///
///
/// Constraints: Phone number must be specified in the format "+[country dialing code].[number
/// including any area code>]". For example, a US phone number might appear as "+1.1234567890"
.
///
///
[AWSProperty(Max=30)]
public string PhoneNumber
{
get { return this._phoneNumber; }
set { this._phoneNumber = value; }
}
// Check to see if PhoneNumber property is set
internal bool IsSetPhoneNumber()
{
return this._phoneNumber != null;
}
///
/// Gets and sets the property State.
///
/// The state or province of the contact's city.
///
///
[AWSProperty(Max=255)]
public string State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
///
/// Gets and sets the property ZipCode.
///
/// The zip or postal code of the contact's address.
///
///
[AWSProperty(Max=255)]
public string ZipCode
{
get { return this._zipCode; }
set { this._zipCode = value; }
}
// Check to see if ZipCode property is set
internal bool IsSetZipCode()
{
return this._zipCode != null;
}
}
}