com.textmagic.sdk.model.UpdateSenderSettingInputObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of textmagic-java-sdk Show documentation
Show all versions of textmagic-java-sdk Show documentation
Java wrapper library for Textmagic services
/*
* 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 ");
}
}