/*
* 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 connect-2017-08-08.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.Connect.Model
{
///
/// Container for the parameters to the SearchAvailablePhoneNumbers operation.
/// Searches for available phone numbers that you can claim to your Amazon Connect instance
/// or traffic distribution group. If the provided TargetArn
is a traffic
/// distribution group, you can call this API in both Amazon Web Services Regions associated
/// with the traffic distribution group.
///
public partial class SearchAvailablePhoneNumbersRequest : AmazonConnectRequest
{
private int? _maxResults;
private string _nextToken;
private PhoneNumberCountryCode _phoneNumberCountryCode;
private string _phoneNumberPrefix;
private PhoneNumberType _phoneNumberType;
private string _targetArn;
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of results to return per page.
///
///
[AWSProperty(Min=1, Max=10)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
///
/// Gets and sets the property NextToken.
///
/// The token for the next set of results. Use the value returned in the previous response
/// in the next request to retrieve the next set of results.
///
///
[AWSProperty(Min=1, Max=100000)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property PhoneNumberCountryCode.
///
/// The ISO country code.
///
///
[AWSProperty(Required=true)]
public PhoneNumberCountryCode PhoneNumberCountryCode
{
get { return this._phoneNumberCountryCode; }
set { this._phoneNumberCountryCode = value; }
}
// Check to see if PhoneNumberCountryCode property is set
internal bool IsSetPhoneNumberCountryCode()
{
return this._phoneNumberCountryCode != null;
}
///
/// Gets and sets the property PhoneNumberPrefix.
///
/// The prefix of the phone number. If provided, it must contain +
as part
/// of the country code.
///
///
public string PhoneNumberPrefix
{
get { return this._phoneNumberPrefix; }
set { this._phoneNumberPrefix = value; }
}
// Check to see if PhoneNumberPrefix property is set
internal bool IsSetPhoneNumberPrefix()
{
return this._phoneNumberPrefix != null;
}
///
/// Gets and sets the property PhoneNumberType.
///
/// The type of phone number.
///
///
[AWSProperty(Required=true)]
public PhoneNumberType PhoneNumberType
{
get { return this._phoneNumberType; }
set { this._phoneNumberType = value; }
}
// Check to see if PhoneNumberType property is set
internal bool IsSetPhoneNumberType()
{
return this._phoneNumberType != null;
}
///
/// Gets and sets the property TargetArn.
///
/// The Amazon Resource Name (ARN) for Amazon Connect instances or traffic distribution
/// groups that phone numbers are claimed to.
///
///
[AWSProperty(Required=true)]
public string TargetArn
{
get { return this._targetArn; }
set { this._targetArn = value; }
}
// Check to see if TargetArn property is set
internal bool IsSetTargetArn()
{
return this._targetArn != null;
}
}
}