@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SipRule extends Object implements Serializable, Cloneable, StructuredPojo
The details of a SIP rule, 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()
A SIP rule's name.
|
String |
getSipRuleId()
A SIP rule's ID.
|
List<SipRuleTargetApplication> |
getTargetApplications()
The 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 set for a SIP rule, either a phone number or a URI request host name.
|
String |
getTriggerValue()
The value set for a SIP rule's trigger type.
|
Date |
getUpdatedTimestamp()
The time at which the SIP rule was 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)
A SIP rule's name.
|
void |
setSipRuleId(String sipRuleId)
A SIP rule's ID.
|
void |
setTargetApplications(Collection<SipRuleTargetApplication> targetApplications)
The 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 set for a SIP rule, either a phone number or a URI request host name.
|
void |
setTriggerValue(String triggerValue)
The value set for a SIP rule's trigger type.
|
void |
setUpdatedTimestamp(Date updatedTimestamp)
The time at which the SIP rule was 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)
A SIP rule's name.
|
SipRule |
withSipRuleId(String sipRuleId)
A SIP rule's ID.
|
SipRule |
withTargetApplications(Collection<SipRuleTargetApplication> targetApplications)
The target SIP media application and other details, such as priority and AWS Region, to be specified in the SIP
rule.
|
SipRule |
withTargetApplications(SipRuleTargetApplication... targetApplications)
The 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 set for a SIP rule, either a phone number or a URI request host name.
|
SipRule |
withTriggerType(String triggerType)
The type of trigger set for a SIP rule, either a phone number or a URI request host name.
|
SipRule |
withTriggerValue(String triggerValue)
The value set for a SIP rule's trigger type.
|
SipRule |
withUpdatedTimestamp(Date updatedTimestamp)
The time at which the SIP rule was updated, in ISO 8601 format.
|
public void setSipRuleId(String sipRuleId)
A SIP rule's ID.
sipRuleId
- A SIP rule's ID.public String getSipRuleId()
A SIP rule's ID.
public SipRule withSipRuleId(String sipRuleId)
A SIP rule's ID.
sipRuleId
- A SIP rule's ID.public void setName(String name)
A SIP rule's name.
name
- A SIP rule's name.public String getName()
A SIP rule's name.
public SipRule withName(String name)
A SIP rule's name.
name
- A SIP rule's name.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 set for a SIP rule, either a phone number or a URI request host name.
triggerType
- The type of trigger set for a SIP rule, either a phone number or a URI request host name.SipRuleTriggerType
public String getTriggerType()
The type of trigger set for a SIP rule, either a phone number or a URI request host name.
SipRuleTriggerType
public SipRule withTriggerType(String triggerType)
The type of trigger set for a SIP rule, either a phone number or a URI request host name.
triggerType
- The type of trigger set for a SIP rule, either a phone number or a URI request host name.SipRuleTriggerType
public SipRule withTriggerType(SipRuleTriggerType triggerType)
The type of trigger set for a SIP rule, either a phone number or a URI request host name.
triggerType
- The type of trigger set for a SIP rule, either a phone number or a URI request host name.SipRuleTriggerType
public void setTriggerValue(String triggerValue)
The value set for a SIP rule's trigger type. Either a phone number or a URI hostname.
triggerValue
- The value set for a SIP rule's trigger type. Either a phone number or a URI hostname.public String getTriggerValue()
The value set for a SIP rule's trigger type. Either a phone number or a URI hostname.
public SipRule withTriggerValue(String triggerValue)
The value set for a SIP rule's trigger type. Either a phone number or a URI hostname.
triggerValue
- The value set for a SIP rule's trigger type. Either a phone number or a URI hostname.public List<SipRuleTargetApplication> getTargetApplications()
The 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)
The 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
- The 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)
The 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
- The 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)
The 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
- The 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 updated, in ISO 8601 format.
updatedTimestamp
- The time at which the SIP rule was updated, in ISO 8601 format.public Date getUpdatedTimestamp()
The time at which the SIP rule was updated, in ISO 8601 format.
public SipRule withUpdatedTimestamp(Date updatedTimestamp)
The time at which the SIP rule was updated, in ISO 8601 format.
updatedTimestamp
- The time at which the SIP rule was 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.