Interface CreateSipRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ChimeRequest.Builder
,CopyableBuilder<CreateSipRuleRequest.Builder,
,CreateSipRuleRequest> SdkBuilder<CreateSipRuleRequest.Builder,
,CreateSipRuleRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateSipRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionEnables or disables a rule.The name of the SIP rule.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.targetApplications
(Collection<SipRuleTargetApplication> targetApplications) List of SIP media applications with priority and AWS Region.targetApplications
(Consumer<SipRuleTargetApplication.Builder>... targetApplications) List of SIP media applications with priority and AWS Region.targetApplications
(SipRuleTargetApplication... targetApplications) List of SIP media applications with priority and AWS Region.triggerType
(String triggerType) The type of trigger assigned to the SIP rule inTriggerValue
, currentlyRequestUriHostname
orToPhoneNumber
.triggerType
(SipRuleTriggerType triggerType) The type of trigger assigned to the SIP rule inTriggerValue
, currentlyRequestUriHostname
orToPhoneNumber
.triggerValue
(String triggerValue) IfTriggerType
isRequestUriHostname
, the value can be the outbound host name of an Amazon Chime Voice Connector.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.chime.model.ChimeRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the SIP rule.
- Parameters:
name
- The name of the SIP rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggerType
The type of trigger assigned to the SIP rule in
TriggerValue
, currentlyRequestUriHostname
orToPhoneNumber
.- Parameters:
triggerType
- The type of trigger assigned to the SIP rule inTriggerValue
, currentlyRequestUriHostname
orToPhoneNumber
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
triggerType
The type of trigger assigned to the SIP rule in
TriggerValue
, currentlyRequestUriHostname
orToPhoneNumber
.- Parameters:
triggerType
- The type of trigger assigned to the SIP rule inTriggerValue
, currentlyRequestUriHostname
orToPhoneNumber
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
triggerValue
If
TriggerType
isRequestUriHostname
, the value can be the outbound host name of an Amazon Chime Voice Connector. IfTriggerType
isToPhoneNumber
, the value can be a customer-owned phone number in the E164 format. TheSipMediaApplication
specified in theSipRule
is triggered if the request URI in an incoming SIP request matches theRequestUriHostname
, or if theTo
header in the incoming SIP request matches theToPhoneNumber
value.- Parameters:
triggerValue
- IfTriggerType
isRequestUriHostname
, the value can be the outbound host name of an Amazon Chime Voice Connector. IfTriggerType
isToPhoneNumber
, the value can be a customer-owned phone number in the E164 format. TheSipMediaApplication
specified in theSipRule
is triggered if the request URI in an incoming SIP request matches theRequestUriHostname
, or if theTo
header in the incoming SIP request matches theToPhoneNumber
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disabled
Enables or disables a rule. You must disable rules before you can delete them.
- Parameters:
disabled
- Enables or disables a rule. You must disable rules before you can delete them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetApplications
CreateSipRuleRequest.Builder targetApplications(Collection<SipRuleTargetApplication> targetApplications) List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
- Parameters:
targetApplications
- List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetApplications
List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
- Parameters:
targetApplications
- List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetApplications
CreateSipRuleRequest.Builder targetApplications(Consumer<SipRuleTargetApplication.Builder>... targetApplications) List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
This is a convenience method that creates an instance of theSipRuleTargetApplication.Builder
avoiding the need to create one manually viaSipRuleTargetApplication.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetApplications(List<SipRuleTargetApplication>)
.- Parameters:
targetApplications
- a consumer that will call methods onSipRuleTargetApplication.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateSipRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSipRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-