1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateSipRule`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::set_name): <p>The name of the SIP rule.</p>
    ///   - [`trigger_type(SipRuleTriggerType)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::trigger_type) / [`set_trigger_type(Option<SipRuleTriggerType>)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::set_trigger_type): <p>The type of trigger assigned to the SIP rule in <code>TriggerValue</code>, currently <code>RequestUriHostname</code> or <code>ToPhoneNumber</code>.</p>
    ///   - [`trigger_value(impl Into<String>)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::trigger_value) / [`set_trigger_value(Option<String>)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::set_trigger_value): <p>If <code>TriggerType</code> is <code>RequestUriHostname</code>, the value can be the outbound host name of an Amazon Chime Voice Connector. If <code>TriggerType</code> is <code>ToPhoneNumber</code>, the value can be a customer-owned phone number in the E164 format. The <code>SipMediaApplication</code> specified in the <code>SipRule</code> is triggered if the request URI in an incoming SIP request matches the <code>RequestUriHostname</code>, or if the <code>To</code> header in the incoming SIP request matches the <code>ToPhoneNumber</code> value.</p>
    ///   - [`disabled(bool)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::disabled) / [`set_disabled(Option<bool>)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::set_disabled): <p>Enables or disables a rule. You must disable rules before you can delete them.</p>
    ///   - [`target_applications(Vec<SipRuleTargetApplication>)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::target_applications) / [`set_target_applications(Option<Vec<SipRuleTargetApplication>>)`](crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::set_target_applications): <p>List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.</p>
    /// - On success, responds with [`CreateSipRuleOutput`](crate::operation::create_sip_rule::CreateSipRuleOutput) with field(s):
    ///   - [`sip_rule(Option<SipRule>)`](crate::operation::create_sip_rule::CreateSipRuleOutput::sip_rule): <p>Returns the SIP rule information, including the rule ID, triggers, and target applications.</p>
    /// - On failure, responds with [`SdkError<CreateSipRuleError>`](crate::operation::create_sip_rule::CreateSipRuleError)
    pub fn create_sip_rule(
        &self,
    ) -> crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder {
        crate::operation::create_sip_rule::builders::CreateSipRuleFluentBuilder::new(
            self.handle.clone(),
        )
    }
}