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

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


/**
 * VerifyProfile
 */
@JsonPropertyOrder({
  VerifyProfile.JSON_PROPERTY_ID,
  VerifyProfile.JSON_PROPERTY_RECORD_TYPE,
  VerifyProfile.JSON_PROPERTY_NAME,
  VerifyProfile.JSON_PROPERTY_CREATED_AT,
  VerifyProfile.JSON_PROPERTY_UPDATED_AT,
  VerifyProfile.JSON_PROPERTY_MESSAGING_ENABLED,
  VerifyProfile.JSON_PROPERTY_RCS_ENABLED,
  VerifyProfile.JSON_PROPERTY_MESSAGING_TEMPLATE,
  VerifyProfile.JSON_PROPERTY_DEFAULT_TIMEOUT_SECS,
  VerifyProfile.JSON_PROPERTY_VSMS_ENABLED
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class VerifyProfile {
  public static final String JSON_PROPERTY_ID = "id";
  private UUID id;

  public static final String JSON_PROPERTY_RECORD_TYPE = "record_type";
  private String recordType;

  public static final String JSON_PROPERTY_NAME = "name";
  private String name;

  public static final String JSON_PROPERTY_CREATED_AT = "created_at";
  private String createdAt;

  public static final String JSON_PROPERTY_UPDATED_AT = "updated_at";
  private String updatedAt;

  public static final String JSON_PROPERTY_MESSAGING_ENABLED = "messaging_enabled";
  private Boolean messagingEnabled;

  public static final String JSON_PROPERTY_RCS_ENABLED = "rcs_enabled";
  private Boolean rcsEnabled;

  public static final String JSON_PROPERTY_MESSAGING_TEMPLATE = "messaging_template";
  private String messagingTemplate;

  public static final String JSON_PROPERTY_DEFAULT_TIMEOUT_SECS = "default_timeout_secs";
  private Integer defaultTimeoutSecs;

  public static final String JSON_PROPERTY_VSMS_ENABLED = "vsms_enabled";
  private Boolean vsmsEnabled;


  public VerifyProfile id(UUID id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(example = "12ade33a-21c0-473b-b055-b3c836e1c292", required = true, value = "")
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public UUID getId() {
    return id;
  }


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


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

   /**
   * Identifies the type of the resource.
   * @return recordType
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "verify_profile", value = "Identifies the type of the resource.")
  @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 VerifyProfile name(String name) {
    this.name = name;
    return this;
  }

   /**
   * The name of the Verify profile.
   * @return name
  **/
  @ApiModelProperty(example = "Test Profile", required = true, value = "The name of the Verify profile.")
  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getName() {
    return name;
  }


  public void setName(String name) {
    this.name = name;
  }


  public VerifyProfile createdAt(String createdAt) {
    this.createdAt = createdAt;
    return this;
  }

   /**
   * Get createdAt
   * @return createdAt
  **/
  @ApiModelProperty(example = "2020-09-14T17:03:32.965812", required = true, value = "")
  @JsonProperty(JSON_PROPERTY_CREATED_AT)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getCreatedAt() {
    return createdAt;
  }


  public void setCreatedAt(String createdAt) {
    this.createdAt = createdAt;
  }


  public VerifyProfile updatedAt(String updatedAt) {
    this.updatedAt = updatedAt;
    return this;
  }

   /**
   * Get updatedAt
   * @return updatedAt
  **/
  @ApiModelProperty(example = "2020-09-14T17:03:32.965812", required = true, value = "")
  @JsonProperty(JSON_PROPERTY_UPDATED_AT)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getUpdatedAt() {
    return updatedAt;
  }


  public void setUpdatedAt(String updatedAt) {
    this.updatedAt = updatedAt;
  }


  public VerifyProfile messagingEnabled(Boolean messagingEnabled) {
    this.messagingEnabled = messagingEnabled;
    return this;
  }

   /**
   * Enables SMS text messaging for the Verify profile.
   * @return messagingEnabled
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "true", value = "Enables SMS text messaging for the Verify profile.")
  @JsonProperty(JSON_PROPERTY_MESSAGING_ENABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getMessagingEnabled() {
    return messagingEnabled;
  }


  public void setMessagingEnabled(Boolean messagingEnabled) {
    this.messagingEnabled = messagingEnabled;
  }


  public VerifyProfile rcsEnabled(Boolean rcsEnabled) {
    this.rcsEnabled = rcsEnabled;
    return this;
  }

   /**
   * Enables RCS messaging for the Verify profile.
   * @return rcsEnabled
  **/
  @ApiModelProperty(example = "true", required = true, value = "Enables RCS messaging for the Verify profile.")
  @JsonProperty(JSON_PROPERTY_RCS_ENABLED)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Boolean getRcsEnabled() {
    return rcsEnabled;
  }


  public void setRcsEnabled(Boolean rcsEnabled) {
    this.rcsEnabled = rcsEnabled;
  }


  public VerifyProfile messagingTemplate(String messagingTemplate) {
    this.messagingTemplate = messagingTemplate;
    return this;
  }

   /**
   * Optionally sets a messaging text template when sending the verification code. Uses `{code}` to template in the actual verification code.
   * @return messagingTemplate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Hello, this is the Acme Inc verification code you requested: {code}.", value = "Optionally sets a messaging text template when sending the verification code. Uses `{code}` to template in the actual verification code.")
  @JsonProperty(JSON_PROPERTY_MESSAGING_TEMPLATE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getMessagingTemplate() {
    return messagingTemplate;
  }


  public void setMessagingTemplate(String messagingTemplate) {
    this.messagingTemplate = messagingTemplate;
  }


  public VerifyProfile defaultTimeoutSecs(Integer defaultTimeoutSecs) {
    this.defaultTimeoutSecs = defaultTimeoutSecs;
    return this;
  }

   /**
   * For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity.
   * @return defaultTimeoutSecs
  **/
  @ApiModelProperty(example = "300", required = true, value = "For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity.")
  @JsonProperty(JSON_PROPERTY_DEFAULT_TIMEOUT_SECS)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Integer getDefaultTimeoutSecs() {
    return defaultTimeoutSecs;
  }


  public void setDefaultTimeoutSecs(Integer defaultTimeoutSecs) {
    this.defaultTimeoutSecs = defaultTimeoutSecs;
  }


  public VerifyProfile vsmsEnabled(Boolean vsmsEnabled) {
    this.vsmsEnabled = vsmsEnabled;
    return this;
  }

   /**
   * Enables VSMS for the Verify profile.
   * @return vsmsEnabled
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "true", value = "Enables VSMS for the Verify profile.")
  @JsonProperty(JSON_PROPERTY_VSMS_ENABLED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getVsmsEnabled() {
    return vsmsEnabled;
  }


  public void setVsmsEnabled(Boolean vsmsEnabled) {
    this.vsmsEnabled = vsmsEnabled;
  }


  /**
   * Return true if this VerifyProfile object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    VerifyProfile verifyProfile = (VerifyProfile) o;
    return Objects.equals(this.id, verifyProfile.id) &&
        Objects.equals(this.recordType, verifyProfile.recordType) &&
        Objects.equals(this.name, verifyProfile.name) &&
        Objects.equals(this.createdAt, verifyProfile.createdAt) &&
        Objects.equals(this.updatedAt, verifyProfile.updatedAt) &&
        Objects.equals(this.messagingEnabled, verifyProfile.messagingEnabled) &&
        Objects.equals(this.rcsEnabled, verifyProfile.rcsEnabled) &&
        Objects.equals(this.messagingTemplate, verifyProfile.messagingTemplate) &&
        Objects.equals(this.defaultTimeoutSecs, verifyProfile.defaultTimeoutSecs) &&
        Objects.equals(this.vsmsEnabled, verifyProfile.vsmsEnabled);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, recordType, name, createdAt, updatedAt, messagingEnabled, rcsEnabled, messagingTemplate, defaultTimeoutSecs, vsmsEnabled);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class VerifyProfile {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    recordType: ").append(toIndentedString(recordType)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
    sb.append("    messagingEnabled: ").append(toIndentedString(messagingEnabled)).append("\n");
    sb.append("    rcsEnabled: ").append(toIndentedString(rcsEnabled)).append("\n");
    sb.append("    messagingTemplate: ").append(toIndentedString(messagingTemplate)).append("\n");
    sb.append("    defaultTimeoutSecs: ").append(toIndentedString(defaultTimeoutSecs)).append("\n");
    sb.append("    vsmsEnabled: ").append(toIndentedString(vsmsEnabled)).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