All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.telnyx.sdk.model.InboundFqdn Maven / Gradle / Ivy

There is a newer version: 3.6.0
Show newest version
/*
 * 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.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.telnyx.sdk.JSON;


/**
 * InboundFqdn
 */
@JsonPropertyOrder({
  InboundFqdn.JSON_PROPERTY_ANI_NUMBER_FORMAT,
  InboundFqdn.JSON_PROPERTY_DNIS_NUMBER_FORMAT,
  InboundFqdn.JSON_PROPERTY_CODECS,
  InboundFqdn.JSON_PROPERTY_DEFAULT_ROUTING_METHOD,
  InboundFqdn.JSON_PROPERTY_CHANNEL_LIMIT,
  InboundFqdn.JSON_PROPERTY_GENERATE_RINGBACK_TONE,
  InboundFqdn.JSON_PROPERTY_ISUP_HEADERS_ENABLED,
  InboundFqdn.JSON_PROPERTY_PRACK_ENABLED,
  InboundFqdn.JSON_PROPERTY_PRIVACY_ZONE_ENABLED,
  InboundFqdn.JSON_PROPERTY_SIP_COMPACT_HEADERS_ENABLED,
  InboundFqdn.JSON_PROPERTY_SIP_REGION,
  InboundFqdn.JSON_PROPERTY_SIP_SUBDOMAIN,
  InboundFqdn.JSON_PROPERTY_SIP_SUBDOMAIN_RECEIVE_SETTINGS,
  InboundFqdn.JSON_PROPERTY_TIMEOUT1XX_SECS,
  InboundFqdn.JSON_PROPERTY_TIMEOUT2XX_SECS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class InboundFqdn {
  /**
   * 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;

  /**
   * Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or null, 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;
        }
      }
      return null;
    }
  }

  public static final String JSON_PROPERTY_DEFAULT_ROUTING_METHOD = "default_routing_method";
  private JsonNullable defaultRoutingMethod = JsonNullable.of(null);

  public static final String JSON_PROPERTY_CHANNEL_LIMIT = "channel_limit";
  private JsonNullable channelLimit = JsonNullable.undefined();

  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 JsonNullable sipSubdomain = JsonNullable.of("null");

  /**
   * 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 = SipSubdomainReceiveSettingsEnum.FROM_ANYONE;

  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 InboundFqdn 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 InboundFqdn 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 InboundFqdn codecs(List codecs) {
    this.codecs = codecs;
    return this;
  }

  public InboundFqdn 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 InboundFqdn defaultRoutingMethod(DefaultRoutingMethodEnum defaultRoutingMethod) {
    this.defaultRoutingMethod = JsonNullable.of(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 null, 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 null, other values are not allowed.")
  @JsonIgnore

  public DefaultRoutingMethodEnum getDefaultRoutingMethod() {
        return defaultRoutingMethod.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_DEFAULT_ROUTING_METHOD)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getDefaultRoutingMethod_JsonNullable() {
    return defaultRoutingMethod;
  }
  
  @JsonProperty(JSON_PROPERTY_DEFAULT_ROUTING_METHOD)
  public void setDefaultRoutingMethod_JsonNullable(JsonNullable defaultRoutingMethod) {
    this.defaultRoutingMethod = defaultRoutingMethod;
  }

  public void setDefaultRoutingMethod(DefaultRoutingMethodEnum defaultRoutingMethod) {
    this.defaultRoutingMethod = JsonNullable.of(defaultRoutingMethod);
  }


  public InboundFqdn channelLimit(Integer channelLimit) {
    this.channelLimit = JsonNullable.of(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(value = "When set, this will limit the total number of inbound calls to phone numbers associated with this connection.")
  @JsonIgnore

  public Integer getChannelLimit() {
        return channelLimit.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_CHANNEL_LIMIT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getChannelLimit_JsonNullable() {
    return channelLimit;
  }
  
  @JsonProperty(JSON_PROPERTY_CHANNEL_LIMIT)
  public void setChannelLimit_JsonNullable(JsonNullable channelLimit) {
    this.channelLimit = channelLimit;
  }

  public void setChannelLimit(Integer channelLimit) {
    this.channelLimit = JsonNullable.of(channelLimit);
  }


  public InboundFqdn 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 InboundFqdn 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 InboundFqdn 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 InboundFqdn 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 InboundFqdn 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 InboundFqdn 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 InboundFqdn sipSubdomain(String sipSubdomain) {
    this.sipSubdomain = JsonNullable.of(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.")
  @JsonIgnore

  public String getSipSubdomain() {
        return sipSubdomain.orElse(null);
  }

  @JsonProperty(JSON_PROPERTY_SIP_SUBDOMAIN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public JsonNullable getSipSubdomain_JsonNullable() {
    return sipSubdomain;
  }
  
  @JsonProperty(JSON_PROPERTY_SIP_SUBDOMAIN)
  public void setSipSubdomain_JsonNullable(JsonNullable sipSubdomain) {
    this.sipSubdomain = sipSubdomain;
  }

  public void setSipSubdomain(String sipSubdomain) {
    this.sipSubdomain = JsonNullable.of(sipSubdomain);
  }


  public InboundFqdn 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 InboundFqdn 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 InboundFqdn 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 InboundFqdn object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    InboundFqdn inboundFqdn = (InboundFqdn) o;
    return Objects.equals(this.aniNumberFormat, inboundFqdn.aniNumberFormat) &&
        Objects.equals(this.dnisNumberFormat, inboundFqdn.dnisNumberFormat) &&
        Objects.equals(this.codecs, inboundFqdn.codecs) &&
        Objects.equals(this.defaultRoutingMethod, inboundFqdn.defaultRoutingMethod) &&
        Objects.equals(this.channelLimit, inboundFqdn.channelLimit) &&
        Objects.equals(this.generateRingbackTone, inboundFqdn.generateRingbackTone) &&
        Objects.equals(this.isupHeadersEnabled, inboundFqdn.isupHeadersEnabled) &&
        Objects.equals(this.prackEnabled, inboundFqdn.prackEnabled) &&
        Objects.equals(this.privacyZoneEnabled, inboundFqdn.privacyZoneEnabled) &&
        Objects.equals(this.sipCompactHeadersEnabled, inboundFqdn.sipCompactHeadersEnabled) &&
        Objects.equals(this.sipRegion, inboundFqdn.sipRegion) &&
        Objects.equals(this.sipSubdomain, inboundFqdn.sipSubdomain) &&
        Objects.equals(this.sipSubdomainReceiveSettings, inboundFqdn.sipSubdomainReceiveSettings) &&
        Objects.equals(this.timeout1xxSecs, inboundFqdn.timeout1xxSecs) &&
        Objects.equals(this.timeout2xxSecs, inboundFqdn.timeout2xxSecs);
  }

  @Override
  public int hashCode() {
    return Objects.hash(aniNumberFormat, dnisNumberFormat, codecs, defaultRoutingMethod, channelLimit, generateRingbackTone, isupHeadersEnabled, prackEnabled, privacyZoneEnabled, sipCompactHeadersEnabled, sipRegion, sipSubdomain, sipSubdomainReceiveSettings, timeout1xxSecs, timeout2xxSecs);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class InboundFqdn {\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("    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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy