com.mailslurp.models.ImapUpdateFlagsOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mailslurp-client-java Show documentation
Show all versions of mailslurp-client-java Show documentation
Official MailSlurp email API - create real inboxes then send and receive emails and attachments from tests and code.
The newest version!
/*
* MailSlurp API
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
*
* The version of the OpenAPI document: 6.5.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.mailslurp.models;
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;
import java.util.ArrayList;
import java.util.List;
/**
* ImapUpdateFlagsOptions
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class ImapUpdateFlagsOptions {
public static final String SERIALIZED_NAME_OPERATION = "operation";
@SerializedName(SERIALIZED_NAME_OPERATION)
private String operation;
public static final String SERIALIZED_NAME_FLAGS = "flags";
@SerializedName(SERIALIZED_NAME_FLAGS)
private List flags = null;
public static final String SERIALIZED_NAME_UID_SET = "uidSet";
@SerializedName(SERIALIZED_NAME_UID_SET)
private String uidSet;
public static final String SERIALIZED_NAME_SEQ_SET = "seqSet";
@SerializedName(SERIALIZED_NAME_SEQ_SET)
private String seqSet;
public ImapUpdateFlagsOptions operation(String operation) {
this.operation = operation;
return this;
}
/**
* Get operation
* @return operation
**/
@ApiModelProperty(required = true, value = "")
public String getOperation() {
return operation;
}
public void setOperation(String operation) {
this.operation = operation;
}
public ImapUpdateFlagsOptions flags(List flags) {
this.flags = flags;
return this;
}
public ImapUpdateFlagsOptions addFlagsItem(String flagsItem) {
if (this.flags == null) {
this.flags = new ArrayList<>();
}
this.flags.add(flagsItem);
return this;
}
/**
* Get flags
* @return flags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getFlags() {
return flags;
}
public void setFlags(List flags) {
this.flags = flags;
}
public ImapUpdateFlagsOptions uidSet(String uidSet) {
this.uidSet = uidSet;
return this;
}
/**
* Get uidSet
* @return uidSet
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getUidSet() {
return uidSet;
}
public void setUidSet(String uidSet) {
this.uidSet = uidSet;
}
public ImapUpdateFlagsOptions seqSet(String seqSet) {
this.seqSet = seqSet;
return this;
}
/**
* Get seqSet
* @return seqSet
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSeqSet() {
return seqSet;
}
public void setSeqSet(String seqSet) {
this.seqSet = seqSet;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ImapUpdateFlagsOptions imapUpdateFlagsOptions = (ImapUpdateFlagsOptions) o;
return Objects.equals(this.operation, imapUpdateFlagsOptions.operation) &&
Objects.equals(this.flags, imapUpdateFlagsOptions.flags) &&
Objects.equals(this.uidSet, imapUpdateFlagsOptions.uidSet) &&
Objects.equals(this.seqSet, imapUpdateFlagsOptions.seqSet);
}
@Override
public int hashCode() {
return Objects.hash(operation, flags, uidSet, seqSet);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ImapUpdateFlagsOptions {\n");
sb.append(" operation: ").append(toIndentedString(operation)).append("\n");
sb.append(" flags: ").append(toIndentedString(flags)).append("\n");
sb.append(" uidSet: ").append(toIndentedString(uidSet)).append("\n");
sb.append(" seqSet: ").append(toIndentedString(seqSet)).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 ");
}
}