Struct aws_sdk_chime::types::builders::SipRuleBuilder
source · #[non_exhaustive]pub struct SipRuleBuilder { /* private fields */ }Expand description
A builder for SipRule.
Implementations§
source§impl SipRuleBuilder
impl SipRuleBuilder
sourcepub fn sip_rule_id(self, input: impl Into<String>) -> Self
pub fn sip_rule_id(self, input: impl Into<String>) -> Self
The SIP rule ID.
sourcepub fn set_sip_rule_id(self, input: Option<String>) -> Self
pub fn set_sip_rule_id(self, input: Option<String>) -> Self
The SIP rule ID.
sourcepub fn disabled(self, input: bool) -> Self
pub fn disabled(self, input: bool) -> Self
Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.
sourcepub fn set_disabled(self, input: Option<bool>) -> Self
pub fn set_disabled(self, input: Option<bool>) -> Self
Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.
sourcepub fn trigger_type(self, input: SipRuleTriggerType) -> Self
pub fn trigger_type(self, input: SipRuleTriggerType) -> Self
The type of trigger assigned to the SIP rule in TriggerValue, currently RequestUriHostname or ToPhoneNumber.
sourcepub fn set_trigger_type(self, input: Option<SipRuleTriggerType>) -> Self
pub fn set_trigger_type(self, input: Option<SipRuleTriggerType>) -> Self
The type of trigger assigned to the SIP rule in TriggerValue, currently RequestUriHostname or ToPhoneNumber.
sourcepub fn trigger_value(self, input: impl Into<String>) -> Self
pub fn trigger_value(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_trigger_value(self, input: Option<String>) -> Self
pub fn set_trigger_value(self, input: Option<String>) -> Self
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.
sourcepub fn target_applications(self, input: SipRuleTargetApplication) -> Self
pub fn target_applications(self, input: SipRuleTargetApplication) -> Self
Appends an item to target_applications.
To override the contents of this collection use set_target_applications.
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.
sourcepub fn set_target_applications(
self,
input: Option<Vec<SipRuleTargetApplication>>
) -> Self
pub fn set_target_applications( self, input: Option<Vec<SipRuleTargetApplication>> ) -> Self
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.
sourcepub fn created_timestamp(self, input: DateTime) -> Self
pub fn created_timestamp(self, input: DateTime) -> Self
The time at which the SIP rule was created, in ISO 8601 format.
sourcepub fn set_created_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_created_timestamp(self, input: Option<DateTime>) -> Self
The time at which the SIP rule was created, in ISO 8601 format.
sourcepub fn updated_timestamp(self, input: DateTime) -> Self
pub fn updated_timestamp(self, input: DateTime) -> Self
The time at which the SIP rule was last updated, in ISO 8601 format.
sourcepub fn set_updated_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_updated_timestamp(self, input: Option<DateTime>) -> Self
The time at which the SIP rule was last updated, in ISO 8601 format.
Trait Implementations§
source§impl Clone for SipRuleBuilder
impl Clone for SipRuleBuilder
source§fn clone(&self) -> SipRuleBuilder
fn clone(&self) -> SipRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SipRuleBuilder
impl Debug for SipRuleBuilder
source§impl Default for SipRuleBuilder
impl Default for SipRuleBuilder
source§fn default() -> SipRuleBuilder
fn default() -> SipRuleBuilder
source§impl PartialEq<SipRuleBuilder> for SipRuleBuilder
impl PartialEq<SipRuleBuilder> for SipRuleBuilder
source§fn eq(&self, other: &SipRuleBuilder) -> bool
fn eq(&self, other: &SipRuleBuilder) -> bool
self and other values to be equal, and is used
by ==.