com.mailslurp.models.LookupBimiDomainResults 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 com.mailslurp.models.DNSLookupOptions;
import com.mailslurp.models.DNSLookupResult;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* LookupBimiDomainResults
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class LookupBimiDomainResults {
public static final String SERIALIZED_NAME_VALID = "valid";
@SerializedName(SERIALIZED_NAME_VALID)
private Boolean valid;
public static final String SERIALIZED_NAME_QUERY = "query";
@SerializedName(SERIALIZED_NAME_QUERY)
private DNSLookupOptions query;
public static final String SERIALIZED_NAME_RECORDS = "records";
@SerializedName(SERIALIZED_NAME_RECORDS)
private List records = new ArrayList<>();
public static final String SERIALIZED_NAME_ERRORS = "errors";
@SerializedName(SERIALIZED_NAME_ERRORS)
private List errors = new ArrayList<>();
public static final String SERIALIZED_NAME_WARNINGS = "warnings";
@SerializedName(SERIALIZED_NAME_WARNINGS)
private List warnings = new ArrayList<>();
public LookupBimiDomainResults valid(Boolean valid) {
this.valid = valid;
return this;
}
/**
* Get valid
* @return valid
**/
@ApiModelProperty(required = true, value = "")
public Boolean getValid() {
return valid;
}
public void setValid(Boolean valid) {
this.valid = valid;
}
public LookupBimiDomainResults query(DNSLookupOptions query) {
this.query = query;
return this;
}
/**
* Get query
* @return query
**/
@ApiModelProperty(required = true, value = "")
public DNSLookupOptions getQuery() {
return query;
}
public void setQuery(DNSLookupOptions query) {
this.query = query;
}
public LookupBimiDomainResults records(List records) {
this.records = records;
return this;
}
public LookupBimiDomainResults addRecordsItem(DNSLookupResult recordsItem) {
this.records.add(recordsItem);
return this;
}
/**
* Get records
* @return records
**/
@ApiModelProperty(required = true, value = "")
public List getRecords() {
return records;
}
public void setRecords(List records) {
this.records = records;
}
public LookupBimiDomainResults errors(List errors) {
this.errors = errors;
return this;
}
public LookupBimiDomainResults addErrorsItem(String errorsItem) {
this.errors.add(errorsItem);
return this;
}
/**
* Get errors
* @return errors
**/
@ApiModelProperty(required = true, value = "")
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
public LookupBimiDomainResults warnings(List warnings) {
this.warnings = warnings;
return this;
}
public LookupBimiDomainResults addWarningsItem(String warningsItem) {
this.warnings.add(warningsItem);
return this;
}
/**
* Get warnings
* @return warnings
**/
@ApiModelProperty(required = true, value = "")
public List getWarnings() {
return warnings;
}
public void setWarnings(List warnings) {
this.warnings = warnings;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LookupBimiDomainResults lookupBimiDomainResults = (LookupBimiDomainResults) o;
return Objects.equals(this.valid, lookupBimiDomainResults.valid) &&
Objects.equals(this.query, lookupBimiDomainResults.query) &&
Objects.equals(this.records, lookupBimiDomainResults.records) &&
Objects.equals(this.errors, lookupBimiDomainResults.errors) &&
Objects.equals(this.warnings, lookupBimiDomainResults.warnings);
}
@Override
public int hashCode() {
return Objects.hash(valid, query, records, errors, warnings);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LookupBimiDomainResults {\n");
sb.append(" valid: ").append(toIndentedString(valid)).append("\n");
sb.append(" query: ").append(toIndentedString(query)).append("\n");
sb.append(" records: ").append(toIndentedString(records)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).append("\n");
sb.append(" warnings: ").append(toIndentedString(warnings)).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 ");
}
}