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

com.telnyx.sdk.model.MessagingUrlDomain 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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.telnyx.sdk.JSON;


/**
 * MessagingUrlDomain
 */
@JsonPropertyOrder({
  MessagingUrlDomain.JSON_PROPERTY_RECORD_TYPE,
  MessagingUrlDomain.JSON_PROPERTY_ID,
  MessagingUrlDomain.JSON_PROPERTY_URL_DOMAIN,
  MessagingUrlDomain.JSON_PROPERTY_USE_CASE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class MessagingUrlDomain {
  public static final String JSON_PROPERTY_RECORD_TYPE = "record_type";
  private String recordType;

  public static final String JSON_PROPERTY_ID = "id";
  private String id;

  public static final String JSON_PROPERTY_URL_DOMAIN = "url_domain";
  private String urlDomain;

  public static final String JSON_PROPERTY_USE_CASE = "use_case";
  private String useCase;


  public MessagingUrlDomain recordType(String recordType) {
    this.recordType = recordType;
    return this;
  }

   /**
   * Get recordType
   * @return recordType
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_RECORD_TYPE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getRecordType() {
    return recordType;
  }


  public void setRecordType(String recordType) {
    this.recordType = recordType;
  }


  public MessagingUrlDomain id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getId() {
    return id;
  }


  public void setId(String id) {
    this.id = id;
  }


  public MessagingUrlDomain urlDomain(String urlDomain) {
    this.urlDomain = urlDomain;
    return this;
  }

   /**
   * Get urlDomain
   * @return urlDomain
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_URL_DOMAIN)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getUrlDomain() {
    return urlDomain;
  }


  public void setUrlDomain(String urlDomain) {
    this.urlDomain = urlDomain;
  }


  public MessagingUrlDomain useCase(String useCase) {
    this.useCase = useCase;
    return this;
  }

   /**
   * Get useCase
   * @return useCase
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_USE_CASE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getUseCase() {
    return useCase;
  }


  public void setUseCase(String useCase) {
    this.useCase = useCase;
  }


  /**
   * Return true if this MessagingUrlDomain object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    MessagingUrlDomain messagingUrlDomain = (MessagingUrlDomain) o;
    return Objects.equals(this.recordType, messagingUrlDomain.recordType) &&
        Objects.equals(this.id, messagingUrlDomain.id) &&
        Objects.equals(this.urlDomain, messagingUrlDomain.urlDomain) &&
        Objects.equals(this.useCase, messagingUrlDomain.useCase);
  }

  @Override
  public int hashCode() {
    return Objects.hash(recordType, id, urlDomain, useCase);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class MessagingUrlDomain {\n");
    sb.append("    recordType: ").append(toIndentedString(recordType)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    urlDomain: ").append(toIndentedString(urlDomain)).append("\n");
    sb.append("    useCase: ").append(toIndentedString(useCase)).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