@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 whose value is assigned to the SIP rule in
TriggerValue. |
String |
getTriggerValue()
If
TriggerType is RequestUriHostname then 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 whose value is assigned to the SIP rule in
TriggerValue. |
void |
setTriggerValue(String triggerValue)
If
TriggerType is RequestUriHostname then 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 whose value is assigned to the SIP rule in
TriggerValue. |
CreateSipRuleRequest |
withTriggerType(String triggerType)
The type of trigger whose value is assigned to the SIP rule in
TriggerValue. |
CreateSipRuleRequest |
withTriggerValue(String triggerValue)
If
TriggerType is RequestUriHostname then 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 whose value is assigned to the SIP rule in TriggerValue. Allowed trigger values
are RequestUriHostname and ToPhoneNumber.
triggerType - The type of trigger whose value is assigned to the SIP rule in TriggerValue. Allowed trigger
values are RequestUriHostname and ToPhoneNumber.SipRuleTriggerTypepublic String getTriggerType()
The type of trigger whose value is assigned to the SIP rule in TriggerValue. Allowed trigger values
are RequestUriHostname and ToPhoneNumber.
TriggerValue. Allowed trigger
values are RequestUriHostname and ToPhoneNumber.SipRuleTriggerTypepublic CreateSipRuleRequest withTriggerType(String triggerType)
The type of trigger whose value is assigned to the SIP rule in TriggerValue. Allowed trigger values
are RequestUriHostname and ToPhoneNumber.
triggerType - The type of trigger whose value is assigned to the SIP rule in TriggerValue. Allowed trigger
values are RequestUriHostname and ToPhoneNumber.SipRuleTriggerTypepublic CreateSipRuleRequest withTriggerType(SipRuleTriggerType triggerType)
The type of trigger whose value is assigned to the SIP rule in TriggerValue. Allowed trigger values
are RequestUriHostname and ToPhoneNumber.
triggerType - The type of trigger whose value is assigned to the SIP rule in TriggerValue. Allowed trigger
values are RequestUriHostname and ToPhoneNumber.SipRuleTriggerTypepublic void setTriggerValue(String triggerValue)
If TriggerType is RequestUriHostname then the value can be the outbound host name of an
Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber then the value can be a
customer-owned phone number in E164 format. SipRule is triggered if the SIP application requests a
host name, or a If TriggerType is RequestUriHostname, then the value can be the
outbound hostname of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber,
then the value can be a customer-owned phone number in E164 format. SipRule is triggered if the SIP
application requests a host name, or a ToPhoneNumber value matches the incoming SIP request.
triggerValue - If TriggerType is RequestUriHostname then the value can be the outbound host
name of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber then
the value can be a customer-owned phone number in E164 format. SipRule is triggered if the
SIP application requests a host name, or a If TriggerType is RequestUriHostname,
then the value can be the outbound hostname of an Amazon Chime Voice Connector. If
TriggerType is ToPhoneNumber, then the value can be a customer-owned phone
number in E164 format. SipRule is triggered if the SIP application requests a host name, or a
ToPhoneNumber value matches the incoming SIP request.public String getTriggerValue()
If TriggerType is RequestUriHostname then the value can be the outbound host name of an
Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber then the value can be a
customer-owned phone number in E164 format. SipRule is triggered if the SIP application requests a
host name, or a If TriggerType is RequestUriHostname, then the value can be the
outbound hostname of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber,
then the value can be a customer-owned phone number in E164 format. SipRule is triggered if the SIP
application requests a host name, or a ToPhoneNumber value matches the incoming SIP request.
TriggerType is RequestUriHostname then the value can be the outbound host
name of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber then
the value can be a customer-owned phone number in E164 format. SipRule is triggered if the
SIP application requests a host name, or a If TriggerType is RequestUriHostname
, then the value can be the outbound hostname of an Amazon Chime Voice Connector. If
TriggerType is ToPhoneNumber, then the value can be a customer-owned phone
number in E164 format. SipRule is triggered if the SIP application requests a host name, or
a ToPhoneNumber value matches the incoming SIP request.public CreateSipRuleRequest withTriggerValue(String triggerValue)
If TriggerType is RequestUriHostname then the value can be the outbound host name of an
Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber then the value can be a
customer-owned phone number in E164 format. SipRule is triggered if the SIP application requests a
host name, or a If TriggerType is RequestUriHostname, then the value can be the
outbound hostname of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber,
then the value can be a customer-owned phone number in E164 format. SipRule is triggered if the SIP
application requests a host name, or a ToPhoneNumber value matches the incoming SIP request.
triggerValue - If TriggerType is RequestUriHostname then the value can be the outbound host
name of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber then
the value can be a customer-owned phone number in E164 format. SipRule is triggered if the
SIP application requests a host name, or a If TriggerType is RequestUriHostname,
then the value can be the outbound hostname of an Amazon Chime Voice Connector. If
TriggerType is ToPhoneNumber, then the value can be a customer-owned phone
number in E164 format. SipRule is triggered if the SIP application requests a host name, or a
ToPhoneNumber value matches the incoming SIP request.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()