io.swagger.client.model.ListUpdatePayload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticemail-RESTful-API Show documentation
Show all versions of elasticemail-RESTful-API Show documentation
Send your emails with ElasticEmail API
The newest version!
/*
* elasticemail_Restful_api
* Send your emails with ElasticEmail API
*
* OpenAPI spec version: 3.0.1
* Contact: [email protected]
*
* 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 io.swagger.client.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;
/**
* ListUpdatePayload
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-03-29T15:32:30.861Z")
public class ListUpdatePayload {
@SerializedName("NewListName")
private String newListName = null;
@SerializedName("AllowUnsubscribe")
private Boolean allowUnsubscribe = null;
public ListUpdatePayload newListName(String newListName) {
this.newListName = newListName;
return this;
}
/**
* Name of your list if you want to change it.
* @return newListName
**/
@ApiModelProperty(example = "My List 2", required = true, value = "Name of your list if you want to change it.")
public String getNewListName() {
return newListName;
}
public void setNewListName(String newListName) {
this.newListName = newListName;
}
public ListUpdatePayload allowUnsubscribe(Boolean allowUnsubscribe) {
this.allowUnsubscribe = allowUnsubscribe;
return this;
}
/**
* True: Allow unsubscribing from this list. Otherwise, false
* @return allowUnsubscribe
**/
@ApiModelProperty(example = "false", required = true, value = "True: Allow unsubscribing from this list. Otherwise, false")
public Boolean isAllowUnsubscribe() {
return allowUnsubscribe;
}
public void setAllowUnsubscribe(Boolean allowUnsubscribe) {
this.allowUnsubscribe = allowUnsubscribe;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListUpdatePayload listUpdatePayload = (ListUpdatePayload) o;
return Objects.equals(this.newListName, listUpdatePayload.newListName) &&
Objects.equals(this.allowUnsubscribe, listUpdatePayload.allowUnsubscribe);
}
@Override
public int hashCode() {
return Objects.hash(newListName, allowUnsubscribe);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListUpdatePayload {\n");
sb.append(" newListName: ").append(toIndentedString(newListName)).append("\n");
sb.append(" allowUnsubscribe: ").append(toIndentedString(allowUnsubscribe)).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 - 2025 Weber Informatics LLC | Privacy Policy