@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Termination extends Object implements Serializable, Cloneable, StructuredPojo
Termination settings enable your SIP hosts to make outbound calls using your Amazon Chime Voice Connector.
Constructor and Description |
---|
Termination() |
Modifier and Type | Method and Description |
---|---|
Termination |
clone() |
boolean |
equals(Object obj) |
List<String> |
getCallingRegions()
The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
|
List<String> |
getCidrAllowedList()
The IP addresses allowed to make calls, in CIDR format.
|
Integer |
getCpsLimit()
The limit on calls per second.
|
String |
getDefaultPhoneNumber()
The default caller ID phone number.
|
Boolean |
getDisabled()
When termination settings are disabled, outbound calls can not be made.
|
int |
hashCode() |
Boolean |
isDisabled()
When termination settings are disabled, outbound calls can not be made.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCallingRegions(Collection<String> callingRegions)
The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
|
void |
setCidrAllowedList(Collection<String> cidrAllowedList)
The IP addresses allowed to make calls, in CIDR format.
|
void |
setCpsLimit(Integer cpsLimit)
The limit on calls per second.
|
void |
setDefaultPhoneNumber(String defaultPhoneNumber)
The default caller ID phone number.
|
void |
setDisabled(Boolean disabled)
When termination settings are disabled, outbound calls can not be made.
|
String |
toString()
Returns a string representation of this object.
|
Termination |
withCallingRegions(Collection<String> callingRegions)
The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
|
Termination |
withCallingRegions(String... callingRegions)
The countries to which calls are allowed, in ISO 3166-1 alpha-2 format.
|
Termination |
withCidrAllowedList(Collection<String> cidrAllowedList)
The IP addresses allowed to make calls, in CIDR format.
|
Termination |
withCidrAllowedList(String... cidrAllowedList)
The IP addresses allowed to make calls, in CIDR format.
|
Termination |
withCpsLimit(Integer cpsLimit)
The limit on calls per second.
|
Termination |
withDefaultPhoneNumber(String defaultPhoneNumber)
The default caller ID phone number.
|
Termination |
withDisabled(Boolean disabled)
When termination settings are disabled, outbound calls can not be made.
|
public void setCpsLimit(Integer cpsLimit)
The limit on calls per second. Max value based on account service quota. Default value of 1.
cpsLimit
- The limit on calls per second. Max value based on account service quota. Default value of 1.public Integer getCpsLimit()
The limit on calls per second. Max value based on account service quota. Default value of 1.
public Termination withCpsLimit(Integer cpsLimit)
The limit on calls per second. Max value based on account service quota. Default value of 1.
cpsLimit
- The limit on calls per second. Max value based on account service quota. Default value of 1.public void setDefaultPhoneNumber(String defaultPhoneNumber)
The default caller ID phone number.
defaultPhoneNumber
- The default caller ID phone number.public String getDefaultPhoneNumber()
The default caller ID phone number.
public Termination withDefaultPhoneNumber(String defaultPhoneNumber)
The default caller ID phone number.
defaultPhoneNumber
- The default caller ID phone number.public List<String> getCallingRegions()
The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required.
public void setCallingRegions(Collection<String> callingRegions)
The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required.
callingRegions
- The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required.public Termination withCallingRegions(String... callingRegions)
The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required.
NOTE: This method appends the values to the existing list (if any). Use
setCallingRegions(java.util.Collection)
or withCallingRegions(java.util.Collection)
if you want
to override the existing values.
callingRegions
- The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required.public Termination withCallingRegions(Collection<String> callingRegions)
The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required.
callingRegions
- The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required.public List<String> getCidrAllowedList()
The IP addresses allowed to make calls, in CIDR format. Required.
public void setCidrAllowedList(Collection<String> cidrAllowedList)
The IP addresses allowed to make calls, in CIDR format. Required.
cidrAllowedList
- The IP addresses allowed to make calls, in CIDR format. Required.public Termination withCidrAllowedList(String... cidrAllowedList)
The IP addresses allowed to make calls, in CIDR format. Required.
NOTE: This method appends the values to the existing list (if any). Use
setCidrAllowedList(java.util.Collection)
or withCidrAllowedList(java.util.Collection)
if you
want to override the existing values.
cidrAllowedList
- The IP addresses allowed to make calls, in CIDR format. Required.public Termination withCidrAllowedList(Collection<String> cidrAllowedList)
The IP addresses allowed to make calls, in CIDR format. Required.
cidrAllowedList
- The IP addresses allowed to make calls, in CIDR format. Required.public void setDisabled(Boolean disabled)
When termination settings are disabled, outbound calls can not be made.
disabled
- When termination settings are disabled, outbound calls can not be made.public Boolean getDisabled()
When termination settings are disabled, outbound calls can not be made.
public Termination withDisabled(Boolean disabled)
When termination settings are disabled, outbound calls can not be made.
disabled
- When termination settings are disabled, outbound calls can not be made.public Boolean isDisabled()
When termination settings are disabled, outbound calls can not be made.
public String toString()
toString
in class Object
Object.toString()
public Termination clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.