Interface CreateSipRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ChimeSdkVoiceRequest.Builder,CopyableBuilder<CreateSipRuleRequest.Builder,,CreateSipRuleRequest> SdkBuilder<CreateSipRuleRequest.Builder,,CreateSipRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSipRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionDisables or enables a SIP 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, currentlyRequestUriHostnameorToPhoneNumber.triggerType(SipRuleTriggerType triggerType) The type of trigger assigned to the SIP rule inTriggerValue, currentlyRequestUriHostnameorToPhoneNumber.triggerValue(String triggerValue) IfTriggerTypeisRequestUriHostname, the value can be the outbound host name of a Voice Connector.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.chimesdkvoice.model.ChimeSdkVoiceRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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, currentlyRequestUriHostnameorToPhoneNumber.- Parameters:
triggerType- The type of trigger assigned to the SIP rule inTriggerValue, currentlyRequestUriHostnameorToPhoneNumber.- 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, currentlyRequestUriHostnameorToPhoneNumber.- Parameters:
triggerType- The type of trigger assigned to the SIP rule inTriggerValue, currentlyRequestUriHostnameorToPhoneNumber.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
triggerValue
If
TriggerTypeisRequestUriHostname, the value can be the outbound host name of a Voice Connector. IfTriggerTypeisToPhoneNumber, the value can be a customer-owned phone number in the E164 format. TheSipMediaApplicationspecified in theSipRuleis triggered if the request URI in an incoming SIP request matches theRequestUriHostname, or if theToheader in the incoming SIP request matches theToPhoneNumbervalue.- Parameters:
triggerValue- IfTriggerTypeisRequestUriHostname, the value can be the outbound host name of a Voice Connector. IfTriggerTypeisToPhoneNumber, the value can be a customer-owned phone number in the E164 format. TheSipMediaApplicationspecified in theSipRuleis triggered if the request URI in an incoming SIP request matches theRequestUriHostname, or if theToheader in the incoming SIP request matches theToPhoneNumbervalue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
disabled
Disables or enables a SIP rule. You must disable SIP rules before you can delete them.
- Parameters:
disabled- Disables or enables a SIP rule. You must disable SIP 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.Builderavoiding the need to create one manually viaSipRuleTargetApplication.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-