// Path: src/main/java/com/verifalia/api/emailvalidations/serialization/QualityLevelNameDeserializer.java
// public class QualityLevelNameDeserializer extends JsonDeserializer<QualityLevelName> {
//     @Override
//     public QualityLevelName deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
//         String qualityLevelNameString = jp.getText();
// 
//         if (qualityLevelNameString == null) {
//             return null;
//         }
// 
//         return new QualityLevelName(qualityLevelNameString);
//     }
// }
// 
// Path: src/main/java/com/verifalia/api/emailvalidations/serialization/ValidationEntryStatusDeserializer.java
// public class ValidationEntryStatusDeserializer extends JsonDeserializer<ValidationEntryStatus> {
//     @Override
//     public ValidationEntryStatus deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {
//         String validationEntryStatusString = jp.getText();
// 
//         if (validationEntryStatusString != null) {
//             for (ValidationEntryStatus candidate : ValidationEntryStatus.values()) {
//                 if (candidate.name().equalsIgnoreCase(validationEntryStatusString)) {
//                     return candidate;
//                 }
//             }
//         }
// 
//         return ValidationEntryStatus.Unknown;
//     }
// }


import com.verifalia.api.emailvalidations.serialization.QualityLevelNameDeserializer;
import com.verifalia.api.emailvalidations.serialization.ValidationEntryStatusDeserializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import java.util.Date;
import static java.util.Objects.nonNull;
/*
 * Verifalia - Email list cleaning and real-time email verification service
 * https://verifalia.com/
 * support@verifalia.com
 *
 * Copyright (c) 2005-2020 Cobisi Research
 *
 * Cobisi Research
 * Via Prima Strada, 35
 * 35129, Padova
 * Italy - European Union
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.verifalia.api.emailvalidations.models;




/**
 * Represents a single validated entry within a <tt>Validation</tt>.
 */
@Getter
@Setter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class ValidationEntry {
    /**
     * The index of this entry within its <tt>Validation</tt> container. This property is mostly useful in the event
     * the API returns a filtered view of the items.
     */
    private Integer index;

    /**
     * The input string being validated.
     */
    private String inputData;

    /**
     * The <tt>ValidationEntryClassification</tt> for the status of this email address.
     */
    private ValidationEntryClassification classification;

    /**
     * The validation status for this entry.
     */
// Path: src/main/java/com/verifalia/api/emailvalidations/serialization/QualityLevelNameDeserializer.java
// public class QualityLevelNameDeserializer extends JsonDeserializer<QualityLevelName> {
//     @Override
//     public QualityLevelName deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
//         String qualityLevelNameString = jp.getText();
// 
//         if (qualityLevelNameString == null) {
//             return null;
//         }
// 
//         return new QualityLevelName(qualityLevelNameString);
//     }
// }
// 
// Path: src/main/java/com/verifalia/api/emailvalidations/serialization/ValidationEntryStatusDeserializer.java
// public class ValidationEntryStatusDeserializer extends JsonDeserializer<ValidationEntryStatus> {
//     @Override
//     public ValidationEntryStatus deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException {
//         String validationEntryStatusString = jp.getText();
// 
//         if (validationEntryStatusString != null) {
//             for (ValidationEntryStatus candidate : ValidationEntryStatus.values()) {
//                 if (candidate.name().equalsIgnoreCase(validationEntryStatusString)) {
//                     return candidate;
//                 }
//             }
//         }
// 
//         return ValidationEntryStatus.Unknown;
//     }
// }


// Path: src/main/java/com/verifalia/api/emailvalidations/models/ValidationEntry.java
import com.verifalia.api.emailvalidations.serialization.QualityLevelNameDeserializer;
import com.verifalia.api.emailvalidations.serialization.ValidationEntryStatusDeserializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import java.util.Date;
import static java.util.Objects.nonNull;

/*
 * Verifalia - Email list cleaning and real-time email verification service
 * https://verifalia.com/
 * support@verifalia.com
 *
 * Copyright (c) 2005-2020 Cobisi Research
 *
 * Cobisi Research
 * Via Prima Strada, 35
 * 35129, Padova
 * Italy - European Union
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package com.verifalia.api.emailvalidations.models;




/**
 * Represents a single validated entry within a <tt>Validation</tt>.
 */
@Getter
@Setter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class ValidationEntry {
    /**
     * The index of this entry within its <tt>Validation</tt> container. This property is mostly useful in the event
     * the API returns a filtered view of the items.
     */
    private Integer index;

    /**
     * The input string being validated.
     */
    private String inputData;

    /**
     * The <tt>ValidationEntryClassification</tt> for the status of this email address.
     */
    private ValidationEntryClassification classification;

    /**
     * The validation status for this entry.
     */
    @JsonDeserialize(using = ValidationEntryStatusDeserializer.class)