/*
* 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 pinpoint-sms-voice-v2-2022-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.PinpointSMSVoiceV2.Model
{
///
/// This is the response object from the ReleasePhoneNumber operation.
///
public partial class ReleasePhoneNumberResponse : AmazonWebServiceResponse
{
private DateTime? _createdTimestamp;
private string _isoCountryCode;
private MessageType _messageType;
private string _monthlyLeasingPrice;
private List _numberCapabilities = new List();
private NumberType _numberType;
private string _optOutListName;
private string _phoneNumber;
private string _phoneNumberArn;
private string _phoneNumberId;
private bool? _selfManagedOptOutsEnabled;
private NumberStatus _status;
private string _twoWayChannelArn;
private bool? _twoWayEnabled;
///
/// Gets and sets the property CreatedTimestamp.
///
/// The time when the phone number was created, in UNIX
/// epoch time 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 IsoCountryCode.
///
/// The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
///
///
[AWSProperty(Min=2, Max=2)]
public string IsoCountryCode
{
get { return this._isoCountryCode; }
set { this._isoCountryCode = value; }
}
// Check to see if IsoCountryCode property is set
internal bool IsSetIsoCountryCode()
{
return this._isoCountryCode != null;
}
///
/// Gets and sets the property MessageType.
///
/// The message type that was associated with the phone number.
///
///
public MessageType MessageType
{
get { return this._messageType; }
set { this._messageType = value; }
}
// Check to see if MessageType property is set
internal bool IsSetMessageType()
{
return this._messageType != null;
}
///
/// Gets and sets the property MonthlyLeasingPrice.
///
/// The monthly price of the phone number, in US dollars.
///
///
public string MonthlyLeasingPrice
{
get { return this._monthlyLeasingPrice; }
set { this._monthlyLeasingPrice = value; }
}
// Check to see if MonthlyLeasingPrice property is set
internal bool IsSetMonthlyLeasingPrice()
{
return this._monthlyLeasingPrice != null;
}
///
/// Gets and sets the property NumberCapabilities.
///
/// Specifies if the number could be used for text messages, voice, or both.
///
///
[AWSProperty(Min=1, Max=2)]
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 NumberType.
///
/// The type of number that was released.
///
///
public NumberType NumberType
{
get { return this._numberType; }
set { this._numberType = value; }
}
// Check to see if NumberType property is set
internal bool IsSetNumberType()
{
return this._numberType != null;
}
///
/// Gets and sets the property OptOutListName.
///
/// The name of the OptOutList that was associated with the phone number.
///
///
[AWSProperty(Min=1, Max=64)]
public string OptOutListName
{
get { return this._optOutListName; }
set { this._optOutListName = value; }
}
// Check to see if OptOutListName property is set
internal bool IsSetOptOutListName()
{
return this._optOutListName != null;
}
///
/// Gets and sets the property PhoneNumber.
///
/// The phone number that was released.
///
///
[AWSProperty(Min=1, Max=20)]
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 PhoneNumberArn.
///
/// The PhoneNumberArn of the phone number that was released.
///
///
public string PhoneNumberArn
{
get { return this._phoneNumberArn; }
set { this._phoneNumberArn = value; }
}
// Check to see if PhoneNumberArn property is set
internal bool IsSetPhoneNumberArn()
{
return this._phoneNumberArn != null;
}
///
/// Gets and sets the property PhoneNumberId.
///
/// The PhoneNumberId of the phone number that was released.
///
///
public string PhoneNumberId
{
get { return this._phoneNumberId; }
set { this._phoneNumberId = value; }
}
// Check to see if PhoneNumberId property is set
internal bool IsSetPhoneNumberId()
{
return this._phoneNumberId != null;
}
///
/// Gets and sets the property SelfManagedOptOutsEnabled.
///
/// By default this is set to false. When an end recipient sends a message that begins
/// with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically
/// replies with a customizable message and adds the end recipient to the OptOutList.
/// When set to true you're responsible for responding to HELP and STOP requests. You're
/// also responsible for tracking and honoring opt-out requests.
///
///
public bool SelfManagedOptOutsEnabled
{
get { return this._selfManagedOptOutsEnabled.GetValueOrDefault(); }
set { this._selfManagedOptOutsEnabled = value; }
}
// Check to see if SelfManagedOptOutsEnabled property is set
internal bool IsSetSelfManagedOptOutsEnabled()
{
return this._selfManagedOptOutsEnabled.HasValue;
}
///
/// Gets and sets the property Status.
///
/// The current status of the request.
///
///
public NumberStatus 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 TwoWayChannelArn.
///
/// The Amazon Resource Name (ARN) of the TwoWayChannel.
///
///
[AWSProperty(Min=20, Max=2048)]
public string TwoWayChannelArn
{
get { return this._twoWayChannelArn; }
set { this._twoWayChannelArn = value; }
}
// Check to see if TwoWayChannelArn property is set
internal bool IsSetTwoWayChannelArn()
{
return this._twoWayChannelArn != null;
}
///
/// Gets and sets the property TwoWayEnabled.
///
/// By default this is set to false. When set to true you can receive incoming text messages
/// from your end recipients.
///
///
public bool TwoWayEnabled
{
get { return this._twoWayEnabled.GetValueOrDefault(); }
set { this._twoWayEnabled = value; }
}
// Check to see if TwoWayEnabled property is set
internal bool IsSetTwoWayEnabled()
{
return this._twoWayEnabled.HasValue;
}
}
}