io.swagger.client.model.EmailSend Maven / Gradle / Ivy
/*
* 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;
/**
* EmailSend
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-03-29T15:32:30.861Z")
public class EmailSend {
@SerializedName("TransactionID")
private String transactionID = null;
@SerializedName("MessageID")
private String messageID = null;
public EmailSend transactionID(String transactionID) {
this.transactionID = transactionID;
return this;
}
/**
* ID number of transaction
* @return transactionID
**/
@ApiModelProperty(example = "TransactionID", required = true, value = "ID number of transaction")
public String getTransactionID() {
return transactionID;
}
public void setTransactionID(String transactionID) {
this.transactionID = transactionID;
}
public EmailSend messageID(String messageID) {
this.messageID = messageID;
return this;
}
/**
* Unique identifier for this email.
* @return messageID
**/
@ApiModelProperty(example = "-HHGPM_9RPhSMiaJq_ab4g3", required = true, value = "Unique identifier for this email.")
public String getMessageID() {
return messageID;
}
public void setMessageID(String messageID) {
this.messageID = messageID;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmailSend emailSend = (EmailSend) o;
return Objects.equals(this.transactionID, emailSend.transactionID) &&
Objects.equals(this.messageID, emailSend.messageID);
}
@Override
public int hashCode() {
return Objects.hash(transactionID, messageID);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmailSend {\n");
sb.append(" transactionID: ").append(toIndentedString(transactionID)).append("\n");
sb.append(" messageID: ").append(toIndentedString(messageID)).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