/*
* 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 sns-2010-03-31.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.SimpleNotificationService.Model
{
///
/// A list of phone numbers and their metadata.
///
public partial class PhoneNumberInformation
{
private DateTime? _createdAt;
private string _iso2CountryCode;
private List _numberCapabilities = new List();
private string _phoneNumber;
private RouteType _routeType;
private string _status;
///
/// Gets and sets the property CreatedAt.
///
/// The date and time when the phone number was created.
///
///
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
///
/// Gets and sets the property Iso2CountryCode.
///
/// The two-character code for the country or region, in ISO 3166-1 alpha-2 format.
///
///
[AWSProperty(Max=2)]
public string Iso2CountryCode
{
get { return this._iso2CountryCode; }
set { this._iso2CountryCode = value; }
}
// Check to see if Iso2CountryCode property is set
internal bool IsSetIso2CountryCode()
{
return this._iso2CountryCode != null;
}
///
/// Gets and sets the property NumberCapabilities.
///
/// The capabilities of each phone number.
///
///
public List NumberCapabilities
{
get { return this._numberCapabilities; }
set { this._numberCapabilities = value; }
}
// Check to see if NumberCapabilities property is set
internal bool IsSetNumberCapabilities()
{
return this._numberCapabilities != null && this._numberCapabilities.Count > 0;
}
///
/// Gets and sets the property PhoneNumber.
///
/// The phone number.
///
///
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 RouteType.
///
/// The list of supported routes.
///
///
public RouteType RouteType
{
get { return this._routeType; }
set { this._routeType = value; }
}
// Check to see if RouteType property is set
internal bool IsSetRouteType()
{
return this._routeType != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the phone number.
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}