Interface SipRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SipRule.Builder,
,SipRule> SdkBuilder<SipRule.Builder,
,SipRule> SdkPojo
- Enclosing class:
SipRule
-
Method Summary
Modifier and TypeMethodDescriptioncreatedTimestamp
(Instant createdTimestamp) The time at which the SIP rule was created, in ISO 8601 format.Indicates whether the SIP rule is enabled or disabled.The name of the SIP rule.The SIP rule ID.targetApplications
(Collection<SipRuleTargetApplication> targetApplications) Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.targetApplications
(Consumer<SipRuleTargetApplication.Builder>... targetApplications) Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.targetApplications
(SipRuleTargetApplication... targetApplications) Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.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
, then the value can be the outbound host name of the Amazon Chime Voice Connector.updatedTimestamp
(Instant updatedTimestamp) The time at which the SIP rule was last updated, in ISO 8601 format.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
-
sipRuleId
The SIP rule ID.
- Parameters:
sipRuleId
- The SIP rule ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
disabled
Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.
- Parameters:
disabled
- Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.- 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
, then the value can be the outbound host name of the Amazon Chime Voice Connector. IfTriggerType
isToPhoneNumber
, then the value can be a customer-owned phone number in E164 format.SipRule
is triggered when a SIP rule requests host name orToPhoneNumber
matches in the incoming SIP request.- Parameters:
triggerValue
- IfTriggerType
isRequestUriHostname
, then the value can be the outbound host name of the Amazon Chime Voice Connector. IfTriggerType
isToPhoneNumber
, then the value can be a customer-owned phone number in E164 format.SipRule
is triggered when a SIP rule requests host name orToPhoneNumber
matches in the incoming SIP request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetApplications
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.
- Parameters:
targetApplications
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetApplications
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.
- Parameters:
targetApplications
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetApplications
SipRule.Builder targetApplications(Consumer<SipRuleTargetApplication.Builder>... targetApplications) 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.
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:
-
createdTimestamp
The time at which the SIP rule was created, in ISO 8601 format.
- Parameters:
createdTimestamp
- The time at which the SIP rule was created, in ISO 8601 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedTimestamp
The time at which the SIP rule was last updated, in ISO 8601 format.
- Parameters:
updatedTimestamp
- The time at which the SIP rule was last updated, in ISO 8601 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-