/*
* 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
{
///
/// The SIP rule details, including name, triggers, and target applications. An AWS account
/// can have multiple SIP rules.
///
public partial class SipRule
{
private DateTime? _createdTimestamp;
private bool? _disabled;
private string _name;
private string _sipRuleId;
private List _targetApplications = new List();
private SipRuleTriggerType _triggerType;
private string _triggerValue;
private DateTime? _updatedTimestamp;
///
/// Gets and sets the property CreatedTimestamp.
///
/// The time at which the SIP rule was created, in ISO 8601 format.
///
///
public DateTime CreatedTimestamp
{
get { return this._createdTimestamp.GetValueOrDefault(); }
set { this._createdTimestamp = value; }
}
// Check to see if CreatedTimestamp property is set
internal bool IsSetCreatedTimestamp()
{
return this._createdTimestamp.HasValue;
}
///
/// Gets and sets the property Disabled.
///
/// Indicates whether the SIP rule is enabled or disabled. You must disable a rule before
/// you can delete it.
///
///
public bool Disabled
{
get { return this._disabled.GetValueOrDefault(); }
set { this._disabled = value; }
}
// Check to see if Disabled property is set
internal bool IsSetDisabled()
{
return this._disabled.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The name of the SIP rule.
///
///
[AWSProperty(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 SipRuleId.
///
/// The SIP rule ID.
///
///
public string SipRuleId
{
get { return this._sipRuleId; }
set { this._sipRuleId = value; }
}
// Check to see if SipRuleId property is set
internal bool IsSetSipRuleId()
{
return this._sipRuleId != null;
}
///
/// Gets and sets the property TargetApplications.
///
/// Target SIP media application and other details, such as priority and AWS Region, to
/// be specified in the SIP rule. Only one SIP rule per AWS Region can be provided.
///
///
[AWSProperty(Min=1, Max=25)]
public List TargetApplications
{
get { return this._targetApplications; }
set { this._targetApplications = value; }
}
// Check to see if TargetApplications property is set
internal bool IsSetTargetApplications()
{
return this._targetApplications != null && this._targetApplications.Count > 0;
}
///
/// Gets and sets the property TriggerType.
///
/// The type of trigger assigned to the SIP rule in TriggerValue
, currently
/// RequestUriHostname
or ToPhoneNumber
.
///
///
public SipRuleTriggerType TriggerType
{
get { return this._triggerType; }
set { this._triggerType = value; }
}
// Check to see if TriggerType property is set
internal bool IsSetTriggerType()
{
return this._triggerType != null;
}
///
/// Gets and sets the property TriggerValue.
///
/// If TriggerType
is RequestUriHostname
, then the value can
/// be the outbound host name of the Amazon Chime Voice Connector. If TriggerType
/// is ToPhoneNumber
, then the value can be a customer-owned phone number
/// in E164 format. SipRule
is triggered when a SIP rule requests host name
/// or ToPhoneNumber
matches in the incoming SIP request.
///
///
public string TriggerValue
{
get { return this._triggerValue; }
set { this._triggerValue = value; }
}
// Check to see if TriggerValue property is set
internal bool IsSetTriggerValue()
{
return this._triggerValue != null;
}
///
/// Gets and sets the property UpdatedTimestamp.
///
/// The time at which the SIP rule was last updated, in ISO 8601 format.
///
///
public DateTime UpdatedTimestamp
{
get { return this._updatedTimestamp.GetValueOrDefault(); }
set { this._updatedTimestamp = value; }
}
// Check to see if UpdatedTimestamp property is set
internal bool IsSetUpdatedTimestamp()
{
return this._updatedTimestamp.HasValue;
}
}
}