com.textmagic.sdk.model.CreateListInputObject 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;
/**
* CreateListInputObject
*/
public class CreateListInputObject {
@SerializedName("name")
private String name = null;
@SerializedName("shared")
private Boolean shared = false;
@SerializedName("favorited")
private Boolean favorited = false;
@SerializedName("isDefault")
private Boolean isDefault = false;
public CreateListInputObject name(String name) {
this.name = name;
return this;
}
/**
* List name.
* @return name
**/
@ApiModelProperty(example = "Private list", value = "List name.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CreateListInputObject shared(Boolean shared) {
this.shared = shared;
return this;
}
/**
* Should the new list be **shared** among all the sub-accounts?
* @return shared
**/
@ApiModelProperty(example = "false", value = "Should the new list be **shared** among all the sub-accounts?")
public Boolean isShared() {
return shared;
}
public void setShared(Boolean shared) {
this.shared = shared;
}
public CreateListInputObject favorited(Boolean favorited) {
this.favorited = favorited;
return this;
}
/**
* Is the list favorited? Default is false.
* @return favorited
**/
@ApiModelProperty(example = "false", value = "Is the list favorited? Default is false.")
public Boolean isFavorited() {
return favorited;
}
public void setFavorited(Boolean favorited) {
this.favorited = favorited;
}
public CreateListInputObject isDefault(Boolean isDefault) {
this.isDefault = isDefault;
return this;
}
/**
* Is the list default for new contacts (web only)?
* @return isDefault
**/
@ApiModelProperty(example = "false", value = "Is the list default for new contacts (web only)?")
public Boolean isIsDefault() {
return isDefault;
}
public void setIsDefault(Boolean isDefault) {
this.isDefault = isDefault;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateListInputObject createListInputObject = (CreateListInputObject) o;
return Objects.equals(this.name, createListInputObject.name) &&
Objects.equals(this.shared, createListInputObject.shared) &&
Objects.equals(this.favorited, createListInputObject.favorited) &&
Objects.equals(this.isDefault, createListInputObject.isDefault);
}
@Override
public int hashCode() {
return Objects.hash(name, shared, favorited, isDefault);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateListInputObject {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" shared: ").append(toIndentedString(shared)).append("\n");
sb.append(" favorited: ").append(toIndentedString(favorited)).append("\n");
sb.append(" isDefault: ").append(toIndentedString(isDefault)).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 ");
}
}