/* * 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 { /// /// Container for the parameters to the CreateVoiceConnector operation. /// Creates an Amazon Chime Voice Connector under the administrator's AWS account. You /// can choose to create an Amazon Chime Voice Connector in a specific AWS Region. /// /// /// /// Enabling CreateVoiceConnectorRequest$RequireEncryption configures your Amazon /// Chime Voice Connector to use TLS transport for SIP signaling and Secure RTP (SRTP) /// for media. Inbound calls use TLS transport, and unencrypted outbound calls are blocked. /// /// /// /// /// This API is is no longer supported and will not be updated. We recommend using /// the latest version, CreateVoiceConnector, /// in the Amazon Chime SDK. /// /// /// /// Using the latest version requires migrating to a dedicated namespace. For more information, /// refer to Migrating /// from the Amazon Chime namespace in the Amazon Chime SDK Developer Guide. /// /// /// public partial class CreateVoiceConnectorRequest : AmazonChimeRequest { private VoiceConnectorAwsRegion _awsRegion; private string _name; private bool? _requireEncryption; /// /// Gets and sets the property AwsRegion. /// /// The AWS Region in which the Amazon Chime Voice Connector is created. Default value: /// us-east-1 . /// /// public VoiceConnectorAwsRegion AwsRegion { get { return this._awsRegion; } set { this._awsRegion = value; } } // Check to see if AwsRegion property is set internal bool IsSetAwsRegion() { return this._awsRegion != null; } /// /// Gets and sets the property Name. /// /// The name of the Amazon Chime Voice Connector. /// /// [AWSProperty(Required=true, Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property RequireEncryption. /// /// When enabled, requires encryption for the Amazon Chime Voice Connector. /// /// [AWSProperty(Required=true)] public bool RequireEncryption { get { return this._requireEncryption.GetValueOrDefault(); } set { this._requireEncryption = value; } } // Check to see if RequireEncryption property is set internal bool IsSetRequireEncryption() { return this._requireEncryption.HasValue; } } }