/*
* 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 AssociatePhoneNumbersWithVoiceConnector operation.
/// Associates phone numbers with the specified Amazon Chime Voice Connector.
///
///
///
/// This API is is no longer supported and will not be updated. We recommend using
/// the latest version, AssociatePhoneNumbersWithVoiceConnector,
/// 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 AssociatePhoneNumbersWithVoiceConnectorRequest : AmazonChimeRequest
{
private List _e164PhoneNumbers = new List();
private bool? _forceAssociate;
private string _voiceConnectorId;
///
/// Gets and sets the property E164PhoneNumbers.
///
/// List of phone numbers, in E.164 format.
///
///
[AWSProperty(Required=true)]
public List E164PhoneNumbers
{
get { return this._e164PhoneNumbers; }
set { this._e164PhoneNumbers = value; }
}
// Check to see if E164PhoneNumbers property is set
internal bool IsSetE164PhoneNumbers()
{
return this._e164PhoneNumbers != null && this._e164PhoneNumbers.Count > 0;
}
///
/// Gets and sets the property ForceAssociate.
///
/// If true, associates the provided phone numbers with the provided Amazon Chime Voice
/// Connector and removes any previously existing associations. If false, does not associate
/// any phone numbers that have previously existing associations.
///
///
public bool ForceAssociate
{
get { return this._forceAssociate.GetValueOrDefault(); }
set { this._forceAssociate = value; }
}
// Check to see if ForceAssociate property is set
internal bool IsSetForceAssociate()
{
return this._forceAssociate.HasValue;
}
///
/// Gets and sets the property VoiceConnectorId.
///
/// The Amazon Chime Voice Connector ID.
///
///
[AWSProperty(Required=true)]
public string VoiceConnectorId
{
get { return this._voiceConnectorId; }
set { this._voiceConnectorId = value; }
}
// Check to see if VoiceConnectorId property is set
internal bool IsSetVoiceConnectorId()
{
return this._voiceConnectorId != null;
}
}
}