@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSipRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateSipRuleRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateSipRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getDisabled()
Enables or disables a rule.
|
String |
getName()
The name of the SIP rule.
|
List<SipRuleTargetApplication> |
getTargetApplications()
List of SIP media applications with priority and AWS Region.
|
String |
getTriggerType()
The type of trigger assigned to the SIP rule in
TriggerValue, currently
RequestUriHostname or ToPhoneNumber. |
String |
getTriggerValue()
If
TriggerType is RequestUriHostname, the value can be the outbound host name of an
Amazon Chime Voice Connector. |
int |
hashCode() |
Boolean |
isDisabled()
Enables or disables a rule.
|
void |
setDisabled(Boolean disabled)
Enables or disables a rule.
|
void |
setName(String name)
The name of the SIP rule.
|
void |
setTargetApplications(Collection<SipRuleTargetApplication> targetApplications)
List of SIP media applications with priority and AWS Region.
|
void |
setTriggerType(String triggerType)
The type of trigger assigned to the SIP rule in
TriggerValue, currently
RequestUriHostname or ToPhoneNumber. |
void |
setTriggerValue(String triggerValue)
If
TriggerType is RequestUriHostname, the value can be the outbound host name of an
Amazon Chime Voice Connector. |
String |
toString()
Returns a string representation of this object.
|
CreateSipRuleRequest |
withDisabled(Boolean disabled)
Enables or disables a rule.
|
CreateSipRuleRequest |
withName(String name)
The name of the SIP rule.
|
CreateSipRuleRequest |
withTargetApplications(Collection<SipRuleTargetApplication> targetApplications)
List of SIP media applications with priority and AWS Region.
|
CreateSipRuleRequest |
withTargetApplications(SipRuleTargetApplication... targetApplications)
List of SIP media applications with priority and AWS Region.
|
CreateSipRuleRequest |
withTriggerType(SipRuleTriggerType triggerType)
The type of trigger assigned to the SIP rule in
TriggerValue, currently
RequestUriHostname or ToPhoneNumber. |
CreateSipRuleRequest |
withTriggerType(String triggerType)
The type of trigger assigned to the SIP rule in
TriggerValue, currently
RequestUriHostname or ToPhoneNumber. |
CreateSipRuleRequest |
withTriggerValue(String triggerValue)
If
TriggerType is RequestUriHostname, the value can be the outbound host name of an
Amazon Chime Voice Connector. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setName(String name)
The name of the SIP rule.
name - The name of the SIP rule.public String getName()
The name of the SIP rule.
public CreateSipRuleRequest withName(String name)
The name of the SIP rule.
name - The name of the SIP rule.public void setTriggerType(String triggerType)
The type of trigger assigned to the SIP rule in TriggerValue, currently
RequestUriHostname or ToPhoneNumber.
triggerType - The type of trigger assigned to the SIP rule in TriggerValue, currently
RequestUriHostname or ToPhoneNumber.SipRuleTriggerTypepublic String getTriggerType()
The type of trigger assigned to the SIP rule in TriggerValue, currently
RequestUriHostname or ToPhoneNumber.
TriggerValue, currently
RequestUriHostname or ToPhoneNumber.SipRuleTriggerTypepublic CreateSipRuleRequest withTriggerType(String triggerType)
The type of trigger assigned to the SIP rule in TriggerValue, currently
RequestUriHostname or ToPhoneNumber.
triggerType - The type of trigger assigned to the SIP rule in TriggerValue, currently
RequestUriHostname or ToPhoneNumber.SipRuleTriggerTypepublic CreateSipRuleRequest withTriggerType(SipRuleTriggerType triggerType)
The type of trigger assigned to the SIP rule in TriggerValue, currently
RequestUriHostname or ToPhoneNumber.
triggerType - The type of trigger assigned to the SIP rule in TriggerValue, currently
RequestUriHostname or ToPhoneNumber.SipRuleTriggerTypepublic void setTriggerValue(String triggerValue)
If TriggerType is RequestUriHostname, the value can be the outbound host name of an
Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, the value can be a
customer-owned phone number in the E164 format. The SipMediaApplication specified in the
SipRule is triggered if the request URI in an incoming SIP request matches the
RequestUriHostname, or if the To header in the incoming SIP request matches the
ToPhoneNumber value.
triggerValue - If TriggerType is RequestUriHostname, the value can be the outbound host name of
an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, the value can
be a customer-owned phone number in the E164 format. The SipMediaApplication specified in the
SipRule is triggered if the request URI in an incoming SIP request matches the
RequestUriHostname, or if the To header in the incoming SIP request matches the
ToPhoneNumber value.public String getTriggerValue()
If TriggerType is RequestUriHostname, the value can be the outbound host name of an
Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, the value can be a
customer-owned phone number in the E164 format. The SipMediaApplication specified in the
SipRule is triggered if the request URI in an incoming SIP request matches the
RequestUriHostname, or if the To header in the incoming SIP request matches the
ToPhoneNumber value.
TriggerType is RequestUriHostname, the value can be the outbound host name
of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, the value
can be a customer-owned phone number in the E164 format. The SipMediaApplication specified
in the SipRule is triggered if the request URI in an incoming SIP request matches the
RequestUriHostname, or if the To header in the incoming SIP request matches the
ToPhoneNumber value.public CreateSipRuleRequest withTriggerValue(String triggerValue)
If TriggerType is RequestUriHostname, the value can be the outbound host name of an
Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, the value can be a
customer-owned phone number in the E164 format. The SipMediaApplication specified in the
SipRule is triggered if the request URI in an incoming SIP request matches the
RequestUriHostname, or if the To header in the incoming SIP request matches the
ToPhoneNumber value.
triggerValue - If TriggerType is RequestUriHostname, the value can be the outbound host name of
an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, the value can
be a customer-owned phone number in the E164 format. The SipMediaApplication specified in the
SipRule is triggered if the request URI in an incoming SIP request matches the
RequestUriHostname, or if the To header in the incoming SIP request matches the
ToPhoneNumber value.public void setDisabled(Boolean disabled)
Enables or disables a rule. You must disable rules before you can delete them.
disabled - Enables or disables a rule. You must disable rules before you can delete them.public Boolean getDisabled()
Enables or disables a rule. You must disable rules before you can delete them.
public CreateSipRuleRequest withDisabled(Boolean disabled)
Enables or disables a rule. You must disable rules before you can delete them.
disabled - Enables or disables a rule. You must disable rules before you can delete them.public Boolean isDisabled()
Enables or disables a rule. You must disable rules before you can delete them.
public List<SipRuleTargetApplication> getTargetApplications()
List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
public void setTargetApplications(Collection<SipRuleTargetApplication> targetApplications)
List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
targetApplications - List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can
be used.public CreateSipRuleRequest withTargetApplications(SipRuleTargetApplication... targetApplications)
List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
NOTE: This method appends the values to the existing list (if any). Use
setTargetApplications(java.util.Collection) or withTargetApplications(java.util.Collection) if
you want to override the existing values.
targetApplications - List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can
be used.public CreateSipRuleRequest withTargetApplications(Collection<SipRuleTargetApplication> targetApplications)
List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can be used.
targetApplications - List of SIP media applications with priority and AWS Region. Only one SIP application per AWS Region can
be used.public String toString()
toString in class ObjectObject.toString()public CreateSipRuleRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()