/*
* 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 chime-2018-05-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.Chime.Model
{
///
/// The details of a phone number order created for Amazon Chime.
///
public partial class PhoneNumberOrder
{
private DateTime? _createdTimestamp;
private List _orderedPhoneNumbers = new List();
private string _phoneNumberOrderId;
private PhoneNumberProductType _productType;
private PhoneNumberOrderStatus _status;
private DateTime? _updatedTimestamp;
///
/// Gets and sets the property CreatedTimestamp.
///
/// The phone number order creation time stamp, in ISO 8601 format.
///
///
public DateTime CreatedTimestamp
{
get { return this._createdTimestamp.GetValueOrDefault(); }
set { this._createdTimestamp = value; }
}
// Check to see if CreatedTimestamp property is set
internal bool IsSetCreatedTimestamp()
{
return this._createdTimestamp.HasValue;
}
///
/// Gets and sets the property OrderedPhoneNumbers.
///
/// The ordered phone number details, such as the phone number in E.164 format and the
/// phone number status.
///
///
public List OrderedPhoneNumbers
{
get { return this._orderedPhoneNumbers; }
set { this._orderedPhoneNumbers = value; }
}
// Check to see if OrderedPhoneNumbers property is set
internal bool IsSetOrderedPhoneNumbers()
{
return this._orderedPhoneNumbers != null && this._orderedPhoneNumbers.Count > 0;
}
///
/// Gets and sets the property PhoneNumberOrderId.
///
/// The phone number order ID.
///
///
public string PhoneNumberOrderId
{
get { return this._phoneNumberOrderId; }
set { this._phoneNumberOrderId = value; }
}
// Check to see if PhoneNumberOrderId property is set
internal bool IsSetPhoneNumberOrderId()
{
return this._phoneNumberOrderId != null;
}
///
/// Gets and sets the property ProductType.
///
/// The phone number order product type.
///
///
public PhoneNumberProductType ProductType
{
get { return this._productType; }
set { this._productType = value; }
}
// Check to see if ProductType property is set
internal bool IsSetProductType()
{
return this._productType != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the phone number order.
///
///
public PhoneNumberOrderStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property UpdatedTimestamp.
///
/// The updated phone number order time stamp, in ISO 8601 format.
///
///
public DateTime UpdatedTimestamp
{
get { return this._updatedTimestamp.GetValueOrDefault(); }
set { this._updatedTimestamp = value; }
}
// Check to see if UpdatedTimestamp property is set
internal bool IsSetUpdatedTimestamp()
{
return this._updatedTimestamp.HasValue;
}
}
}