@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SipRule extends Object implements Serializable, Cloneable, StructuredPojo
The SIP rule details, including name, triggers, and target applications. An AWS account can have multiple SIP rules.
Constructor and Description |
---|
SipRule() |
Modifier and Type | Method and Description |
---|---|
SipRule |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedTimestamp()
The time at which the SIP rule was created, in ISO 8601 format.
|
Boolean |
getDisabled()
Indicates whether the SIP rule is enabled or disabled.
|
String |
getName()
The name of the SIP rule.
|
String |
getSipRuleId()
The SIP rule ID.
|
List<SipRuleTargetApplication> |
getTargetApplications()
Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.
|
String |
getTriggerType()
The type of trigger assigned to the SIP rule in
TriggerValue , currently
RequestUriHostname or ToPhoneNumber . |
String |
getTriggerValue()
If
TriggerType is RequestUriHostname , then the value can be the outbound host name of
the Amazon Chime Voice Connector. |
Date |
getUpdatedTimestamp()
The time at which the SIP rule was last updated, in ISO 8601 format.
|
int |
hashCode() |
Boolean |
isDisabled()
Indicates whether the SIP rule is enabled or disabled.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreatedTimestamp(Date createdTimestamp)
The time at which the SIP rule was created, in ISO 8601 format.
|
void |
setDisabled(Boolean disabled)
Indicates whether the SIP rule is enabled or disabled.
|
void |
setName(String name)
The name of the SIP rule.
|
void |
setSipRuleId(String sipRuleId)
The SIP rule ID.
|
void |
setTargetApplications(Collection<SipRuleTargetApplication> targetApplications)
Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.
|
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 , then the value can be the outbound host name of
the Amazon Chime Voice Connector. |
void |
setUpdatedTimestamp(Date updatedTimestamp)
The time at which the SIP rule was last updated, in ISO 8601 format.
|
String |
toString()
Returns a string representation of this object.
|
SipRule |
withCreatedTimestamp(Date createdTimestamp)
The time at which the SIP rule was created, in ISO 8601 format.
|
SipRule |
withDisabled(Boolean disabled)
Indicates whether the SIP rule is enabled or disabled.
|
SipRule |
withName(String name)
The name of the SIP rule.
|
SipRule |
withSipRuleId(String sipRuleId)
The SIP rule ID.
|
SipRule |
withTargetApplications(Collection<SipRuleTargetApplication> targetApplications)
Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.
|
SipRule |
withTargetApplications(SipRuleTargetApplication... targetApplications)
Target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP rule.
|
SipRule |
withTriggerType(SipRuleTriggerType triggerType)
The type of trigger assigned to the SIP rule in
TriggerValue , currently
RequestUriHostname or ToPhoneNumber . |
SipRule |
withTriggerType(String triggerType)
The type of trigger assigned to the SIP rule in
TriggerValue , currently
RequestUriHostname or ToPhoneNumber . |
SipRule |
withTriggerValue(String triggerValue)
If
TriggerType is RequestUriHostname , then the value can be the outbound host name of
the Amazon Chime Voice Connector. |
SipRule |
withUpdatedTimestamp(Date updatedTimestamp)
The time at which the SIP rule was last updated, in ISO 8601 format.
|
public void setSipRuleId(String sipRuleId)
The SIP rule ID.
sipRuleId
- The SIP rule ID.public String getSipRuleId()
The SIP rule ID.
public SipRule withSipRuleId(String sipRuleId)
The SIP rule ID.
sipRuleId
- The SIP rule ID.public 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 SipRule withName(String name)
The name of the SIP rule.
name
- The name of the SIP rule.public void setDisabled(Boolean disabled)
Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.
disabled
- Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.public Boolean getDisabled()
Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.
public SipRule withDisabled(Boolean disabled)
Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.
disabled
- Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.public Boolean isDisabled()
Indicates whether the SIP rule is enabled or disabled. You must disable a rule before you can delete it.
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
.SipRuleTriggerType
public String getTriggerType()
The type of trigger assigned to the SIP rule in TriggerValue
, currently
RequestUriHostname
or ToPhoneNumber
.
TriggerValue
, currently
RequestUriHostname
or ToPhoneNumber
.SipRuleTriggerType
public SipRule 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
.SipRuleTriggerType
public SipRule 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
.SipRuleTriggerType
public void setTriggerValue(String triggerValue)
If TriggerType
is RequestUriHostname
, then the value can be the outbound host name of
the Amazon Chime Voice Connector. If TriggerType
is ToPhoneNumber
, then the value can
be a customer-owned phone number in E164 format. SipRule
is triggered when a SIP rule requests host
name or ToPhoneNumber
matches in the incoming SIP request.
triggerValue
- If TriggerType
is RequestUriHostname
, then the value can be the outbound host
name of the Amazon Chime Voice Connector. If TriggerType
is ToPhoneNumber
, then
the value can be a customer-owned phone number in E164 format. SipRule
is triggered when a
SIP rule requests host name or ToPhoneNumber
matches in the incoming SIP request.public String getTriggerValue()
If TriggerType
is RequestUriHostname
, then the value can be the outbound host name of
the Amazon Chime Voice Connector. If TriggerType
is ToPhoneNumber
, then the value can
be a customer-owned phone number in E164 format. SipRule
is triggered when a SIP rule requests host
name or ToPhoneNumber
matches in the incoming SIP request.
TriggerType
is RequestUriHostname
, then the value can be the outbound host
name of the Amazon Chime Voice Connector. If TriggerType
is ToPhoneNumber
, then
the value can be a customer-owned phone number in E164 format. SipRule
is triggered when a
SIP rule requests host name or ToPhoneNumber
matches in the incoming SIP request.public SipRule withTriggerValue(String triggerValue)
If TriggerType
is RequestUriHostname
, then the value can be the outbound host name of
the Amazon Chime Voice Connector. If TriggerType
is ToPhoneNumber
, then the value can
be a customer-owned phone number in E164 format. SipRule
is triggered when a SIP rule requests host
name or ToPhoneNumber
matches in the incoming SIP request.
triggerValue
- If TriggerType
is RequestUriHostname
, then the value can be the outbound host
name of the Amazon Chime Voice Connector. If TriggerType
is ToPhoneNumber
, then
the value can be a customer-owned phone number in E164 format. SipRule
is triggered when a
SIP rule requests host name or ToPhoneNumber
matches in the incoming SIP request.public List<SipRuleTargetApplication> getTargetApplications()
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.
public void setTargetApplications(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.
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.public SipRule withTargetApplications(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.
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
- 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.public SipRule withTargetApplications(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.
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.public void setCreatedTimestamp(Date createdTimestamp)
The time at which the SIP rule was created, in ISO 8601 format.
createdTimestamp
- The time at which the SIP rule was created, in ISO 8601 format.public Date getCreatedTimestamp()
The time at which the SIP rule was created, in ISO 8601 format.
public SipRule withCreatedTimestamp(Date createdTimestamp)
The time at which the SIP rule was created, in ISO 8601 format.
createdTimestamp
- The time at which the SIP rule was created, in ISO 8601 format.public void setUpdatedTimestamp(Date updatedTimestamp)
The time at which the SIP rule was last updated, in ISO 8601 format.
updatedTimestamp
- The time at which the SIP rule was last updated, in ISO 8601 format.public Date getUpdatedTimestamp()
The time at which the SIP rule was last updated, in ISO 8601 format.
public SipRule withUpdatedTimestamp(Date updatedTimestamp)
The time at which the SIP rule was last updated, in ISO 8601 format.
updatedTimestamp
- The time at which the SIP rule was last updated, in ISO 8601 format.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.