Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Telnyx API
* SIP trunking, SMS, MMS, Call Control and Telephony Data Services.
*
* The version of the OpenAPI document: 2.0.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.telnyx.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.telnyx.sdk.JSON;
/**
* InboundIp
*/
@JsonPropertyOrder({
InboundIp.JSON_PROPERTY_ANI_NUMBER_FORMAT,
InboundIp.JSON_PROPERTY_DNIS_NUMBER_FORMAT,
InboundIp.JSON_PROPERTY_CODECS,
InboundIp.JSON_PROPERTY_DEFAULT_PRIMARY_IP_ID,
InboundIp.JSON_PROPERTY_DEFAULT_SECONDARY_IP_ID,
InboundIp.JSON_PROPERTY_DEFAULT_TERTIARY_IP_ID,
InboundIp.JSON_PROPERTY_DEFAULT_ROUTING_METHOD,
InboundIp.JSON_PROPERTY_CHANNEL_LIMIT,
InboundIp.JSON_PROPERTY_GENERATE_RINGBACK_TONE,
InboundIp.JSON_PROPERTY_ISUP_HEADERS_ENABLED,
InboundIp.JSON_PROPERTY_PRACK_ENABLED,
InboundIp.JSON_PROPERTY_PRIVACY_ZONE_ENABLED,
InboundIp.JSON_PROPERTY_SIP_COMPACT_HEADERS_ENABLED,
InboundIp.JSON_PROPERTY_SIP_REGION,
InboundIp.JSON_PROPERTY_SIP_SUBDOMAIN,
InboundIp.JSON_PROPERTY_SIP_SUBDOMAIN_RECEIVE_SETTINGS,
InboundIp.JSON_PROPERTY_TIMEOUT1XX_SECS,
InboundIp.JSON_PROPERTY_TIMEOUT2XX_SECS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class InboundIp {
/**
* This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls.
*/
public enum AniNumberFormatEnum {
_E_164("+E.164"),
E_164("E.164"),
_E_164_NATIONAL("+E.164-national"),
E_164_NATIONAL("E.164-national");
private String value;
AniNumberFormatEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static AniNumberFormatEnum fromValue(String value) {
for (AniNumberFormatEnum b : AniNumberFormatEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_ANI_NUMBER_FORMAT = "ani_number_format";
private AniNumberFormatEnum aniNumberFormat = AniNumberFormatEnum.E_164_NATIONAL;
/**
* Gets or Sets dnisNumberFormat
*/
public enum DnisNumberFormatEnum {
_E164("+e164"),
E164("e164"),
NATIONAL("national"),
SIP_USERNAME("sip_username");
private String value;
DnisNumberFormatEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static DnisNumberFormatEnum fromValue(String value) {
for (DnisNumberFormatEnum b : DnisNumberFormatEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_DNIS_NUMBER_FORMAT = "dnis_number_format";
private DnisNumberFormatEnum dnisNumberFormat = DnisNumberFormatEnum.E164;
public static final String JSON_PROPERTY_CODECS = "codecs";
private List codecs = null;
public static final String JSON_PROPERTY_DEFAULT_PRIMARY_IP_ID = "default_primary_ip_id";
private String defaultPrimaryIpId;
public static final String JSON_PROPERTY_DEFAULT_SECONDARY_IP_ID = "default_secondary_ip_id";
private String defaultSecondaryIpId;
public static final String JSON_PROPERTY_DEFAULT_TERTIARY_IP_ID = "default_tertiary_ip_id";
private String defaultTertiaryIpId;
/**
* Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or left blank, other values are not allowed.
*/
public enum DefaultRoutingMethodEnum {
SEQUENTIAL("sequential"),
ROUND_ROBIN("round-robin");
private String value;
DefaultRoutingMethodEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static DefaultRoutingMethodEnum fromValue(String value) {
for (DefaultRoutingMethodEnum b : DefaultRoutingMethodEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_DEFAULT_ROUTING_METHOD = "default_routing_method";
private DefaultRoutingMethodEnum defaultRoutingMethod;
public static final String JSON_PROPERTY_CHANNEL_LIMIT = "channel_limit";
private Integer channelLimit;
public static final String JSON_PROPERTY_GENERATE_RINGBACK_TONE = "generate_ringback_tone";
private Boolean generateRingbackTone = false;
public static final String JSON_PROPERTY_ISUP_HEADERS_ENABLED = "isup_headers_enabled";
private Boolean isupHeadersEnabled = false;
public static final String JSON_PROPERTY_PRACK_ENABLED = "prack_enabled";
private Boolean prackEnabled = false;
public static final String JSON_PROPERTY_PRIVACY_ZONE_ENABLED = "privacy_zone_enabled";
private Boolean privacyZoneEnabled = false;
public static final String JSON_PROPERTY_SIP_COMPACT_HEADERS_ENABLED = "sip_compact_headers_enabled";
private Boolean sipCompactHeadersEnabled = true;
/**
* Selects which `sip_region` to receive inbound calls from. If null, the default region (US) will be used.
*/
public enum SipRegionEnum {
US("US"),
EUROPE("Europe"),
AUSTRALIA("Australia");
private String value;
SipRegionEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SipRegionEnum fromValue(String value) {
for (SipRegionEnum b : SipRegionEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SIP_REGION = "sip_region";
private SipRegionEnum sipRegion = SipRegionEnum.US;
public static final String JSON_PROPERTY_SIP_SUBDOMAIN = "sip_subdomain";
private String sipSubdomain;
/**
* This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user).
*/
public enum SipSubdomainReceiveSettingsEnum {
ONLY_MY_CONNECTIONS("only_my_connections"),
FROM_ANYONE("from_anyone");
private String value;
SipSubdomainReceiveSettingsEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SipSubdomainReceiveSettingsEnum fromValue(String value) {
for (SipSubdomainReceiveSettingsEnum b : SipSubdomainReceiveSettingsEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_SIP_SUBDOMAIN_RECEIVE_SETTINGS = "sip_subdomain_receive_settings";
private SipSubdomainReceiveSettingsEnum sipSubdomainReceiveSettings;
public static final String JSON_PROPERTY_TIMEOUT1XX_SECS = "timeout_1xx_secs";
private Integer timeout1xxSecs = 3;
public static final String JSON_PROPERTY_TIMEOUT2XX_SECS = "timeout_2xx_secs";
private Integer timeout2xxSecs = 90;
public InboundIp aniNumberFormat(AniNumberFormatEnum aniNumberFormat) {
this.aniNumberFormat = aniNumberFormat;
return this;
}
/**
* This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls.
* @return aniNumberFormat
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls.")
@JsonProperty(JSON_PROPERTY_ANI_NUMBER_FORMAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public AniNumberFormatEnum getAniNumberFormat() {
return aniNumberFormat;
}
public void setAniNumberFormat(AniNumberFormatEnum aniNumberFormat) {
this.aniNumberFormat = aniNumberFormat;
}
public InboundIp dnisNumberFormat(DnisNumberFormatEnum dnisNumberFormat) {
this.dnisNumberFormat = dnisNumberFormat;
return this;
}
/**
* Get dnisNumberFormat
* @return dnisNumberFormat
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DNIS_NUMBER_FORMAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DnisNumberFormatEnum getDnisNumberFormat() {
return dnisNumberFormat;
}
public void setDnisNumberFormat(DnisNumberFormatEnum dnisNumberFormat) {
this.dnisNumberFormat = dnisNumberFormat;
}
public InboundIp codecs(List codecs) {
this.codecs = codecs;
return this;
}
public InboundIp addCodecsItem(String codecsItem) {
if (this.codecs == null) {
this.codecs = new ArrayList<>();
}
this.codecs.add(codecsItem);
return this;
}
/**
* Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP.
* @return codecs
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP.")
@JsonProperty(JSON_PROPERTY_CODECS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getCodecs() {
return codecs;
}
public void setCodecs(List codecs) {
this.codecs = codecs;
}
public InboundIp defaultPrimaryIpId(String defaultPrimaryIpId) {
this.defaultPrimaryIpId = defaultPrimaryIpId;
return this;
}
/**
* The default primary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.
* @return defaultPrimaryIpId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "192.168.0.0", value = "The default primary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.")
@JsonProperty(JSON_PROPERTY_DEFAULT_PRIMARY_IP_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDefaultPrimaryIpId() {
return defaultPrimaryIpId;
}
public void setDefaultPrimaryIpId(String defaultPrimaryIpId) {
this.defaultPrimaryIpId = defaultPrimaryIpId;
}
public InboundIp defaultSecondaryIpId(String defaultSecondaryIpId) {
this.defaultSecondaryIpId = defaultSecondaryIpId;
return this;
}
/**
* The default secondary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.
* @return defaultSecondaryIpId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "192.168.0.0", value = "The default secondary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.")
@JsonProperty(JSON_PROPERTY_DEFAULT_SECONDARY_IP_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDefaultSecondaryIpId() {
return defaultSecondaryIpId;
}
public void setDefaultSecondaryIpId(String defaultSecondaryIpId) {
this.defaultSecondaryIpId = defaultSecondaryIpId;
}
public InboundIp defaultTertiaryIpId(String defaultTertiaryIpId) {
this.defaultTertiaryIpId = defaultTertiaryIpId;
return this;
}
/**
* The default tertiary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.
* @return defaultTertiaryIpId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "192.168.0.0", value = "The default tertiary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection.")
@JsonProperty(JSON_PROPERTY_DEFAULT_TERTIARY_IP_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDefaultTertiaryIpId() {
return defaultTertiaryIpId;
}
public void setDefaultTertiaryIpId(String defaultTertiaryIpId) {
this.defaultTertiaryIpId = defaultTertiaryIpId;
}
public InboundIp defaultRoutingMethod(DefaultRoutingMethodEnum defaultRoutingMethod) {
this.defaultRoutingMethod = defaultRoutingMethod;
return this;
}
/**
* Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or left blank, other values are not allowed.
* @return defaultRoutingMethod
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or left blank, other values are not allowed.")
@JsonProperty(JSON_PROPERTY_DEFAULT_ROUTING_METHOD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DefaultRoutingMethodEnum getDefaultRoutingMethod() {
return defaultRoutingMethod;
}
public void setDefaultRoutingMethod(DefaultRoutingMethodEnum defaultRoutingMethod) {
this.defaultRoutingMethod = defaultRoutingMethod;
}
public InboundIp channelLimit(Integer channelLimit) {
this.channelLimit = channelLimit;
return this;
}
/**
* When set, this will limit the total number of inbound calls to phone numbers associated with this connection.
* @return channelLimit
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "10", value = "When set, this will limit the total number of inbound calls to phone numbers associated with this connection.")
@JsonProperty(JSON_PROPERTY_CHANNEL_LIMIT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getChannelLimit() {
return channelLimit;
}
public void setChannelLimit(Integer channelLimit) {
this.channelLimit = channelLimit;
}
public InboundIp generateRingbackTone(Boolean generateRingbackTone) {
this.generateRingbackTone = generateRingbackTone;
return this;
}
/**
* Generate ringback tone through 183 session progress message with early media.
* @return generateRingbackTone
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Generate ringback tone through 183 session progress message with early media.")
@JsonProperty(JSON_PROPERTY_GENERATE_RINGBACK_TONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getGenerateRingbackTone() {
return generateRingbackTone;
}
public void setGenerateRingbackTone(Boolean generateRingbackTone) {
this.generateRingbackTone = generateRingbackTone;
}
public InboundIp isupHeadersEnabled(Boolean isupHeadersEnabled) {
this.isupHeadersEnabled = isupHeadersEnabled;
return this;
}
/**
* When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.)
* @return isupHeadersEnabled
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.)")
@JsonProperty(JSON_PROPERTY_ISUP_HEADERS_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsupHeadersEnabled() {
return isupHeadersEnabled;
}
public void setIsupHeadersEnabled(Boolean isupHeadersEnabled) {
this.isupHeadersEnabled = isupHeadersEnabled;
}
public InboundIp prackEnabled(Boolean prackEnabled) {
this.prackEnabled = prackEnabled;
return this;
}
/**
* Enable PRACK messages as defined in RFC3262.
* @return prackEnabled
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Enable PRACK messages as defined in RFC3262.")
@JsonProperty(JSON_PROPERTY_PRACK_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getPrackEnabled() {
return prackEnabled;
}
public void setPrackEnabled(Boolean prackEnabled) {
this.prackEnabled = prackEnabled;
}
public InboundIp privacyZoneEnabled(Boolean privacyZoneEnabled) {
this.privacyZoneEnabled = privacyZoneEnabled;
return this;
}
/**
* By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it.
* @return privacyZoneEnabled
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it.")
@JsonProperty(JSON_PROPERTY_PRIVACY_ZONE_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getPrivacyZoneEnabled() {
return privacyZoneEnabled;
}
public void setPrivacyZoneEnabled(Boolean privacyZoneEnabled) {
this.privacyZoneEnabled = privacyZoneEnabled;
}
public InboundIp sipCompactHeadersEnabled(Boolean sipCompactHeadersEnabled) {
this.sipCompactHeadersEnabled = sipCompactHeadersEnabled;
return this;
}
/**
* Defaults to true.
* @return sipCompactHeadersEnabled
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Defaults to true.")
@JsonProperty(JSON_PROPERTY_SIP_COMPACT_HEADERS_ENABLED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSipCompactHeadersEnabled() {
return sipCompactHeadersEnabled;
}
public void setSipCompactHeadersEnabled(Boolean sipCompactHeadersEnabled) {
this.sipCompactHeadersEnabled = sipCompactHeadersEnabled;
}
public InboundIp sipRegion(SipRegionEnum sipRegion) {
this.sipRegion = sipRegion;
return this;
}
/**
* Selects which `sip_region` to receive inbound calls from. If null, the default region (US) will be used.
* @return sipRegion
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Selects which `sip_region` to receive inbound calls from. If null, the default region (US) will be used.")
@JsonProperty(JSON_PROPERTY_SIP_REGION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SipRegionEnum getSipRegion() {
return sipRegion;
}
public void setSipRegion(SipRegionEnum sipRegion) {
this.sipRegion = sipRegion;
}
public InboundIp sipSubdomain(String sipSubdomain) {
this.sipSubdomain = sipSubdomain;
return this;
}
/**
* Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls.
* @return sipSubdomain
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls.")
@JsonProperty(JSON_PROPERTY_SIP_SUBDOMAIN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSipSubdomain() {
return sipSubdomain;
}
public void setSipSubdomain(String sipSubdomain) {
this.sipSubdomain = sipSubdomain;
}
public InboundIp sipSubdomainReceiveSettings(SipSubdomainReceiveSettingsEnum sipSubdomainReceiveSettings) {
this.sipSubdomainReceiveSettings = sipSubdomainReceiveSettings;
return this;
}
/**
* This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user).
* @return sipSubdomainReceiveSettings
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user).")
@JsonProperty(JSON_PROPERTY_SIP_SUBDOMAIN_RECEIVE_SETTINGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public SipSubdomainReceiveSettingsEnum getSipSubdomainReceiveSettings() {
return sipSubdomainReceiveSettings;
}
public void setSipSubdomainReceiveSettings(SipSubdomainReceiveSettingsEnum sipSubdomainReceiveSettings) {
this.sipSubdomainReceiveSettings = sipSubdomainReceiveSettings;
}
public InboundIp timeout1xxSecs(Integer timeout1xxSecs) {
this.timeout1xxSecs = timeout1xxSecs;
return this;
}
/**
* Time(sec) before aborting if connection is not made.
* minimum: 1
* maximum: 120
* @return timeout1xxSecs
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Time(sec) before aborting if connection is not made.")
@JsonProperty(JSON_PROPERTY_TIMEOUT1XX_SECS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getTimeout1xxSecs() {
return timeout1xxSecs;
}
public void setTimeout1xxSecs(Integer timeout1xxSecs) {
this.timeout1xxSecs = timeout1xxSecs;
}
public InboundIp timeout2xxSecs(Integer timeout2xxSecs) {
this.timeout2xxSecs = timeout2xxSecs;
return this;
}
/**
* Time(sec) before aborting if call is unanswered (min: 1, max: 600).
* @return timeout2xxSecs
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Time(sec) before aborting if call is unanswered (min: 1, max: 600).")
@JsonProperty(JSON_PROPERTY_TIMEOUT2XX_SECS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getTimeout2xxSecs() {
return timeout2xxSecs;
}
public void setTimeout2xxSecs(Integer timeout2xxSecs) {
this.timeout2xxSecs = timeout2xxSecs;
}
/**
* Return true if this InboundIp object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InboundIp inboundIp = (InboundIp) o;
return Objects.equals(this.aniNumberFormat, inboundIp.aniNumberFormat) &&
Objects.equals(this.dnisNumberFormat, inboundIp.dnisNumberFormat) &&
Objects.equals(this.codecs, inboundIp.codecs) &&
Objects.equals(this.defaultPrimaryIpId, inboundIp.defaultPrimaryIpId) &&
Objects.equals(this.defaultSecondaryIpId, inboundIp.defaultSecondaryIpId) &&
Objects.equals(this.defaultTertiaryIpId, inboundIp.defaultTertiaryIpId) &&
Objects.equals(this.defaultRoutingMethod, inboundIp.defaultRoutingMethod) &&
Objects.equals(this.channelLimit, inboundIp.channelLimit) &&
Objects.equals(this.generateRingbackTone, inboundIp.generateRingbackTone) &&
Objects.equals(this.isupHeadersEnabled, inboundIp.isupHeadersEnabled) &&
Objects.equals(this.prackEnabled, inboundIp.prackEnabled) &&
Objects.equals(this.privacyZoneEnabled, inboundIp.privacyZoneEnabled) &&
Objects.equals(this.sipCompactHeadersEnabled, inboundIp.sipCompactHeadersEnabled) &&
Objects.equals(this.sipRegion, inboundIp.sipRegion) &&
Objects.equals(this.sipSubdomain, inboundIp.sipSubdomain) &&
Objects.equals(this.sipSubdomainReceiveSettings, inboundIp.sipSubdomainReceiveSettings) &&
Objects.equals(this.timeout1xxSecs, inboundIp.timeout1xxSecs) &&
Objects.equals(this.timeout2xxSecs, inboundIp.timeout2xxSecs);
}
@Override
public int hashCode() {
return Objects.hash(aniNumberFormat, dnisNumberFormat, codecs, defaultPrimaryIpId, defaultSecondaryIpId, defaultTertiaryIpId, defaultRoutingMethod, channelLimit, generateRingbackTone, isupHeadersEnabled, prackEnabled, privacyZoneEnabled, sipCompactHeadersEnabled, sipRegion, sipSubdomain, sipSubdomainReceiveSettings, timeout1xxSecs, timeout2xxSecs);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InboundIp {\n");
sb.append(" aniNumberFormat: ").append(toIndentedString(aniNumberFormat)).append("\n");
sb.append(" dnisNumberFormat: ").append(toIndentedString(dnisNumberFormat)).append("\n");
sb.append(" codecs: ").append(toIndentedString(codecs)).append("\n");
sb.append(" defaultPrimaryIpId: ").append(toIndentedString(defaultPrimaryIpId)).append("\n");
sb.append(" defaultSecondaryIpId: ").append(toIndentedString(defaultSecondaryIpId)).append("\n");
sb.append(" defaultTertiaryIpId: ").append(toIndentedString(defaultTertiaryIpId)).append("\n");
sb.append(" defaultRoutingMethod: ").append(toIndentedString(defaultRoutingMethod)).append("\n");
sb.append(" channelLimit: ").append(toIndentedString(channelLimit)).append("\n");
sb.append(" generateRingbackTone: ").append(toIndentedString(generateRingbackTone)).append("\n");
sb.append(" isupHeadersEnabled: ").append(toIndentedString(isupHeadersEnabled)).append("\n");
sb.append(" prackEnabled: ").append(toIndentedString(prackEnabled)).append("\n");
sb.append(" privacyZoneEnabled: ").append(toIndentedString(privacyZoneEnabled)).append("\n");
sb.append(" sipCompactHeadersEnabled: ").append(toIndentedString(sipCompactHeadersEnabled)).append("\n");
sb.append(" sipRegion: ").append(toIndentedString(sipRegion)).append("\n");
sb.append(" sipSubdomain: ").append(toIndentedString(sipSubdomain)).append("\n");
sb.append(" sipSubdomainReceiveSettings: ").append(toIndentedString(sipSubdomainReceiveSettings)).append("\n");
sb.append(" timeout1xxSecs: ").append(toIndentedString(timeout1xxSecs)).append("\n");
sb.append(" timeout2xxSecs: ").append(toIndentedString(timeout2xxSecs)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}