/*
* 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-sdk-voice-2022-08-03.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.ChimeSDKVoice.Model
{
///
/// Termination settings enable SIP hosts to make outbound calls using an Amazon Chime
/// SDK Voice Connector.
///
public partial class Termination
{
private List _callingRegions = new List();
private List _cidrAllowedList = new List();
private int? _cpsLimit;
private string _defaultPhoneNumber;
private bool? _disabled;
///
/// Gets and sets the property CallingRegions.
///
/// The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required.
///
///
public List CallingRegions
{
get { return this._callingRegions; }
set { this._callingRegions = value; }
}
// Check to see if CallingRegions property is set
internal bool IsSetCallingRegions()
{
return this._callingRegions != null && this._callingRegions.Count > 0;
}
///
/// Gets and sets the property CidrAllowedList.
///
/// The IP addresses allowed to make calls, in CIDR format.
///
///
public List CidrAllowedList
{
get { return this._cidrAllowedList; }
set { this._cidrAllowedList = value; }
}
// Check to see if CidrAllowedList property is set
internal bool IsSetCidrAllowedList()
{
return this._cidrAllowedList != null && this._cidrAllowedList.Count > 0;
}
///
/// Gets and sets the property CpsLimit.
///
/// The limit on calls per second. Max value based on account service quota. Default value
/// of 1.
///
///
[AWSProperty(Min=1)]
public int CpsLimit
{
get { return this._cpsLimit.GetValueOrDefault(); }
set { this._cpsLimit = value; }
}
// Check to see if CpsLimit property is set
internal bool IsSetCpsLimit()
{
return this._cpsLimit.HasValue;
}
///
/// Gets and sets the property DefaultPhoneNumber.
///
/// The default outbound calling number.
///
///
[AWSProperty(Sensitive=true)]
public string DefaultPhoneNumber
{
get { return this._defaultPhoneNumber; }
set { this._defaultPhoneNumber = value; }
}
// Check to see if DefaultPhoneNumber property is set
internal bool IsSetDefaultPhoneNumber()
{
return this._defaultPhoneNumber != null;
}
///
/// Gets and sets the property Disabled.
///
/// When termination is disabled, outbound calls cannot be made.
///
///
public bool Disabled
{
get { return this._disabled.GetValueOrDefault(); }
set { this._disabled = value; }
}
// Check to see if Disabled property is set
internal bool IsSetDisabled()
{
return this._disabled.HasValue;
}
}
}