#[non_exhaustive]pub struct CreateSipRuleInputBuilder { /* private fields */ }Expand description
A builder for CreateSipRuleInput.
Implementations§
source§impl CreateSipRuleInputBuilder
impl CreateSipRuleInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the SIP rule.
This field is required.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, the value can be the outbound host name of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, the value can be a customer-owned phone number in the E164 format. The SipMediaApplication specified in the SipRule is triggered if the request URI in an incoming SIP request matches the RequestUriHostname, or if the To header in the incoming SIP request matches the ToPhoneNumber value.
sourcepub fn set_trigger_value(self, input: Option<String>) -> Self
pub fn set_trigger_value(self, input: Option<String>) -> Self
If TriggerType is RequestUriHostname, the value can be the outbound host name of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, the value can be a customer-owned phone number in the E164 format. The SipMediaApplication specified in the SipRule is triggered if the request URI in an incoming SIP request matches the RequestUriHostname, or if the To header in the incoming SIP request matches the ToPhoneNumber value.
sourcepub fn get_trigger_value(&self) -> &Option<String>
pub fn get_trigger_value(&self) -> &Option<String>
If TriggerType is RequestUriHostname, the value can be the outbound host name of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, the value can be a customer-owned phone number in the E164 format. The SipMediaApplication specified in the SipRule is triggered if the request URI in an incoming SIP request matches the RequestUriHostname, or if the To header in the incoming SIP request matches the ToPhoneNumber value.
sourcepub fn disabled(self, input: bool) -> Self
pub fn disabled(self, input: bool) -> Self
Enables or disables a rule. You must disable rules before you can delete them.
sourcepub fn set_disabled(self, input: Option<bool>) -> Self
pub fn set_disabled(self, input: Option<bool>) -> Self
Enables or disables a rule. You must disable rules before you can delete them.
sourcepub fn get_disabled(&self) -> &Option<bool>
pub fn get_disabled(&self) -> &Option<bool>
Enables or disables a rule. You must disable rules before you can delete them.
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.
List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
sourcepub fn set_target_applications(
self,
input: Option<Vec<SipRuleTargetApplication>>
) -> Self
pub fn set_target_applications( self, input: Option<Vec<SipRuleTargetApplication>> ) -> Self
List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
sourcepub fn get_target_applications(&self) -> &Option<Vec<SipRuleTargetApplication>>
pub fn get_target_applications(&self) -> &Option<Vec<SipRuleTargetApplication>>
List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
sourcepub fn build(self) -> Result<CreateSipRuleInput, BuildError>
pub fn build(self) -> Result<CreateSipRuleInput, BuildError>
Consumes the builder and constructs a CreateSipRuleInput.
source§impl CreateSipRuleInputBuilder
impl CreateSipRuleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSipRuleOutput, SdkError<CreateSipRuleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSipRuleOutput, SdkError<CreateSipRuleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSipRuleInputBuilder
impl Clone for CreateSipRuleInputBuilder
source§fn clone(&self) -> CreateSipRuleInputBuilder
fn clone(&self) -> CreateSipRuleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateSipRuleInputBuilder
impl Debug for CreateSipRuleInputBuilder
source§impl Default for CreateSipRuleInputBuilder
impl Default for CreateSipRuleInputBuilder
source§fn default() -> CreateSipRuleInputBuilder
fn default() -> CreateSipRuleInputBuilder
source§impl PartialEq for CreateSipRuleInputBuilder
impl PartialEq for CreateSipRuleInputBuilder
source§fn eq(&self, other: &CreateSipRuleInputBuilder) -> bool
fn eq(&self, other: &CreateSipRuleInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateSipRuleInputBuilder
Auto Trait Implementations§
impl Freeze for CreateSipRuleInputBuilder
impl RefUnwindSafe for CreateSipRuleInputBuilder
impl Send for CreateSipRuleInputBuilder
impl Sync for CreateSipRuleInputBuilder
impl Unpin for CreateSipRuleInputBuilder
impl UnwindSafe for CreateSipRuleInputBuilder
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> 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