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 get_sip_rule_id(&self) -> &Option<String>
pub fn get_sip_rule_id(&self) -> &Option<String>
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 get_disabled(&self) -> &Option<bool>
pub fn get_disabled(&self) -> &Option<bool>
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 get_trigger_type(&self) -> &Option<SipRuleTriggerType>
pub fn get_trigger_type(&self) -> &Option<SipRuleTriggerType>
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 get_trigger_value(&self) -> &Option<String>
pub fn get_trigger_value(&self) -> &Option<String>
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 get_target_applications(&self) -> &Option<Vec<SipRuleTargetApplication>>
pub fn get_target_applications(&self) -> &Option<Vec<SipRuleTargetApplication>>
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 get_created_timestamp(&self) -> &Option<DateTime>
pub fn get_created_timestamp(&self) -> &Option<DateTime>
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.
sourcepub fn get_updated_timestamp(&self) -> &Option<DateTime>
pub fn get_updated_timestamp(&self) -> &Option<DateTime>
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 for SipRuleBuilder
impl PartialEq for SipRuleBuilder
impl StructuralPartialEq for SipRuleBuilder
Auto Trait Implementations§
impl Freeze for SipRuleBuilder
impl RefUnwindSafe for SipRuleBuilder
impl Send for SipRuleBuilder
impl Sync for SipRuleBuilder
impl Unpin for SipRuleBuilder
impl UnwindSafe for SipRuleBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more