package com.arms.api.admin.backup.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Map;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class IndexInfoDTO {

    private Map<String, Object> mappings;

    @JsonProperty("settings")
    private SettingsWrapper settingsWrapper;

    private Map<String, Object> aliases;

    @Getter
    @Setter
    @NoArgsConstructor
    @AllArgsConstructor
    public static class SettingsWrapper {
        private Map<String, Object> index;
    }
}
