Interface SipRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SipRule.Builder,SipRule>,SdkBuilder<SipRule.Builder,SipRule>,SdkPojo
- Enclosing class:
- SipRule
public static interface SipRule.Builder extends SdkPojo, CopyableBuilder<SipRule.Builder,SipRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SipRule.BuildercreatedTimestamp(Instant createdTimestamp)The time at which the SIP rule was created, in ISO 8601 format.SipRule.Builderdisabled(Boolean disabled)Indicates whether the SIP rule is enabled or disabled.SipRule.Buildername(String name)The name of the SIP rule.SipRule.BuildersipRuleId(String sipRuleId)The SIP rule ID.SipRule.BuildertargetApplications(Collection<SipRuleTargetApplication> targetApplications)Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.SipRule.BuildertargetApplications(Consumer<SipRuleTargetApplication.Builder>... targetApplications)Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.SipRule.BuildertargetApplications(SipRuleTargetApplication... targetApplications)Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.SipRule.BuildertriggerType(String triggerType)The type of trigger assigned to the SIP rule inTriggerValue, currentlyRequestUriHostnameorToPhoneNumber.SipRule.BuildertriggerType(SipRuleTriggerType triggerType)The type of trigger assigned to the SIP rule inTriggerValue, currentlyRequestUriHostnameorToPhoneNumber.SipRule.BuildertriggerValue(String triggerValue)IfTriggerTypeisRequestUriHostname, then the value can be the outbound host name of the Amazon Chime Voice Connector.SipRule.BuilderupdatedTimestamp(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
sipRuleId
SipRule.Builder sipRuleId(String 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
SipRule.Builder name(String 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
SipRule.Builder disabled(Boolean 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
SipRule.Builder triggerType(String 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:
SipRuleTriggerType,SipRuleTriggerType
-
triggerType
SipRule.Builder triggerType(SipRuleTriggerType 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:
SipRuleTriggerType,SipRuleTriggerType
-
triggerValue
SipRule.Builder triggerValue(String triggerValue)
If
TriggerTypeisRequestUriHostname, then the value can be the outbound host name of the Amazon Chime Voice Connector. IfTriggerTypeisToPhoneNumber, then the value can be a customer-owned phone number in E164 format.SipRuleis triggered when a SIP rule requests host name orToPhoneNumbermatches in the incoming SIP request.- Parameters:
triggerValue- IfTriggerTypeisRequestUriHostname, then the value can be the outbound host name of the Amazon Chime Voice Connector. IfTriggerTypeisToPhoneNumber, then the value can be a customer-owned phone number in E164 format.SipRuleis triggered when a SIP rule requests host name orToPhoneNumbermatches in the incoming SIP request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetApplications
SipRule.Builder targetApplications(Collection<SipRuleTargetApplication> 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(SipRuleTargetApplication... 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.Builderavoiding the need to create one manually viaSipRuleTargetApplication.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#targetApplications(List.) - 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:
#targetApplications(java.util.Collection)
-
createdTimestamp
SipRule.Builder createdTimestamp(Instant 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
SipRule.Builder updatedTimestamp(Instant 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.
-
-