@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Termination extends Object implements Serializable, Cloneable, StructuredPojo
Termination settings enable SIP hosts to make outbound calls using an Amazon Chime SDK 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 outbound calling number.
|
Boolean |
getDisabled()
When termination is disabled, outbound calls cannot be made.
|
int |
hashCode() |
Boolean |
isDisabled()
When termination is disabled, outbound calls cannot 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 outbound calling number.
|
void |
setDisabled(Boolean disabled)
When termination is disabled, outbound calls cannot 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 outbound calling number.
|
Termination |
withDisabled(Boolean disabled)
When termination is disabled, outbound calls cannot 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 outbound calling number.
defaultPhoneNumber
- The default outbound calling number.public String getDefaultPhoneNumber()
The default outbound calling number.
public Termination withDefaultPhoneNumber(String defaultPhoneNumber)
The default outbound calling number.
defaultPhoneNumber
- The default outbound calling 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.
public void setCidrAllowedList(Collection<String> cidrAllowedList)
The IP addresses allowed to make calls, in CIDR format.
cidrAllowedList
- The IP addresses allowed to make calls, in CIDR format.public Termination withCidrAllowedList(String... cidrAllowedList)
The IP addresses allowed to make calls, in CIDR format.
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.public Termination withCidrAllowedList(Collection<String> cidrAllowedList)
The IP addresses allowed to make calls, in CIDR format.
cidrAllowedList
- The IP addresses allowed to make calls, in CIDR format.public void setDisabled(Boolean disabled)
When termination is disabled, outbound calls cannot be made.
disabled
- When termination is disabled, outbound calls cannot be made.public Boolean getDisabled()
When termination is disabled, outbound calls cannot be made.
public Termination withDisabled(Boolean disabled)
When termination is disabled, outbound calls cannot be made.
disabled
- When termination is disabled, outbound calls cannot be made.public Boolean isDisabled()
When termination is disabled, outbound calls cannot 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.