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

com.textmagic.sdk.model.UpdateSenderSettingInputObject Maven / Gradle / Ivy

There is a newer version: 2.0.2456
Show newest version
/*
 * TextMagic API
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 2
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.textmagic.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * UpdateSenderSettingInputObject
 */

public class UpdateSenderSettingInputObject {
  @SerializedName("value")
  private String value = null;

  @SerializedName("country")
  private String country = null;

  @SerializedName("chatId")
  private Integer chatId = null;

  public UpdateSenderSettingInputObject value(String value) {
    this.value = value;
    return this;
  }

   /**
   * Available phone number in international E.164 format or senderid.
   * @return value
  **/
  @ApiModelProperty(example = "447624800500", value = "Available phone number in international E.164 format or senderid.")
  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

  public UpdateSenderSettingInputObject country(String country) {
    this.country = country;
    return this;
  }

   /**
   * Country for which the setting will be set.
   * @return country
  **/
  @ApiModelProperty(example = "AF", value = "Country for which the setting will be set.")
  public String getCountry() {
    return country;
  }

  public void setCountry(String country) {
    this.country = country;
  }

  public UpdateSenderSettingInputObject chatId(Integer chatId) {
    this.chatId = chatId;
    return this;
  }

   /**
   * Set sender setting for specified chat only.
   * @return chatId
  **/
  @ApiModelProperty(example = "344", value = "Set sender setting for specified chat only.")
  public Integer getChatId() {
    return chatId;
  }

  public void setChatId(Integer chatId) {
    this.chatId = chatId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateSenderSettingInputObject updateSenderSettingInputObject = (UpdateSenderSettingInputObject) o;
    return Objects.equals(this.value, updateSenderSettingInputObject.value) &&
        Objects.equals(this.country, updateSenderSettingInputObject.country) &&
        Objects.equals(this.chatId, updateSenderSettingInputObject.chatId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(value, country, chatId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateSenderSettingInputObject {\n");
    
    sb.append("    value: ").append(toIndentedString(value)).append("\n");
    sb.append("    country: ").append(toIndentedString(country)).append("\n");
    sb.append("    chatId: ").append(toIndentedString(chatId)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy