/* * 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 CreateSipMediaApplicationCall operation. /// Creates an outbound call to a phone number from the phone number specified in the /// request, and it invokes the endpoint of the specified sipMediaApplicationId. /// /// /// /// This API is is no longer supported and will not be updated. We recommend using /// the latest version, CreateSipMediaApplicationCall, /// 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 CreateSipMediaApplicationCallRequest : AmazonChimeRequest { private string _fromPhoneNumber; private Dictionary _sipHeaders = new Dictionary(); private string _sipMediaApplicationId; private string _toPhoneNumber; /// /// Gets and sets the property FromPhoneNumber. /// /// The phone number that a user calls from. This is a phone number in your Amazon Chime /// phone number inventory. /// /// [AWSProperty(Required=true, Sensitive=true)] public string FromPhoneNumber { get { return this._fromPhoneNumber; } set { this._fromPhoneNumber = value; } } // Check to see if FromPhoneNumber property is set internal bool IsSetFromPhoneNumber() { return this._fromPhoneNumber != null; } /// /// Gets and sets the property SipHeaders. /// /// The SIP headers added to an outbound call leg. /// /// [AWSProperty(Min=0, Max=20)] public Dictionary SipHeaders { get { return this._sipHeaders; } set { this._sipHeaders = value; } } // Check to see if SipHeaders property is set internal bool IsSetSipHeaders() { return this._sipHeaders != null && this._sipHeaders.Count > 0; } /// /// Gets and sets the property SipMediaApplicationId. /// /// The ID of the SIP media application. /// /// [AWSProperty(Required=true)] public string SipMediaApplicationId { get { return this._sipMediaApplicationId; } set { this._sipMediaApplicationId = value; } } // Check to see if SipMediaApplicationId property is set internal bool IsSetSipMediaApplicationId() { return this._sipMediaApplicationId != null; } /// /// Gets and sets the property ToPhoneNumber. /// /// The phone number that the service should call. /// /// [AWSProperty(Required=true, Sensitive=true)] public string ToPhoneNumber { get { return this._toPhoneNumber; } set { this._toPhoneNumber = value; } } // Check to see if ToPhoneNumber property is set internal bool IsSetToPhoneNumber() { return this._toPhoneNumber != null; } } }