/*
* 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 pinpoint-sms-voice-v2-2022-03-31.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.PinpointSMSVoiceV2.Model
{
///
/// Container for the parameters to the AssociateOriginationIdentity operation.
/// Associates the specified origination identity with a pool.
///
///
///
/// If the origination identity is a phone number and is already associated with another
/// pool, an Error is returned. A sender ID can be associated with multiple pools.
///
///
///
/// If the origination identity configuration doesn't match the pool's configuration,
/// an Error is returned.
///
///
public partial class AssociateOriginationIdentityRequest : AmazonPinpointSMSVoiceV2Request
{
private string _clientToken;
private string _isoCountryCode;
private string _originationIdentity;
private string _poolId;
///
/// Gets and sets the property ClientToken.
///
/// Unique, case-sensitive identifier that you provide to ensure the idempotency of the
/// request. If you don't specify a client token, a randomly generated token is used for
/// the request to ensure idempotency.
///
///
[AWSProperty(Min=1, Max=64)]
public string ClientToken
{
get { return this._clientToken; }
set { this._clientToken = value; }
}
// Check to see if ClientToken property is set
internal bool IsSetClientToken()
{
return this._clientToken != null;
}
///
/// Gets and sets the property IsoCountryCode.
///
/// The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region
/// of the origination identity.
///
///
[AWSProperty(Required=true, Min=2, Max=2)]
public string IsoCountryCode
{
get { return this._isoCountryCode; }
set { this._isoCountryCode = value; }
}
// Check to see if IsoCountryCode property is set
internal bool IsSetIsoCountryCode()
{
return this._isoCountryCode != null;
}
///
/// Gets and sets the property OriginationIdentity.
///
/// The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId,
/// or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId
/// and PhoneNumberArn, while DescribeSenderIds can be used to get the values for
/// SenderId and SenderIdArn.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string OriginationIdentity
{
get { return this._originationIdentity; }
set { this._originationIdentity = value; }
}
// Check to see if OriginationIdentity property is set
internal bool IsSetOriginationIdentity()
{
return this._originationIdentity != null;
}
///
/// Gets and sets the property PoolId.
///
/// The pool to update with the new Identity. This value can be either the PoolId or PoolArn,
/// and you can find these values using DescribePools.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string PoolId
{
get { return this._poolId; }
set { this._poolId = value; }
}
// Check to see if PoolId property is set
internal bool IsSetPoolId()
{
return this._poolId != null;
}
}
}