All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hp.autonomy.hod.client.api.textindex.document.DeleteFromTextIndexResponse Maven / Gradle / Ivy

There is a newer version: 0.25.3
Show newest version
/*
 * Copyright 2015-2016 Hewlett-Packard Development Company, L.P.
 * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
 */

package com.hp.autonomy.hod.client.api.textindex.document;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * Holds the response from the DeleteFromTextIndex API
 */
@Data
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@JsonDeserialize(builder = DeleteFromTextIndexResponse.Builder.class)
public class DeleteFromTextIndexResponse {

    /**
     * @return The index containing the deleted documents
     */
    private final String index;

    /**
     * @return The number of deleted documents
     */
    private final int documentsDeleted;

    @Setter
    @Accessors(chain = true)
    @JsonPOJOBuilder(withPrefix = "set")
    public static class Builder {
        private String index;

        @JsonProperty("documents_deleted")
        private int documentsDeleted;

        public DeleteFromTextIndexResponse build() {
            return new DeleteFromTextIndexResponse(index, documentsDeleted);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy