// Path: src/main/java/eu/luminis/elastic/search/response/aggregations/Aggregation.java
// public class Aggregation {
//     private String name;
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// }


import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import eu.luminis.elastic.search.response.aggregations.Aggregation;
import java.util.HashMap;
import java.util.Map;
package eu.luminis.elastic.search.response.aggregations.bucket;



/**
 * Default Bucket that can be used by most other buckets besides the ones with a non-string key.
 */
public class BaseBucket implements Bucket {
    @JsonProperty("key")
    private String key;

    @JsonProperty("doc_count")
    private Long docCount;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Long getDocCount() {
        return docCount;
    }

    public void setDocCount(Long docCount) {
        this.docCount = docCount;
    }

// Path: src/main/java/eu/luminis/elastic/search/response/aggregations/Aggregation.java
// public class Aggregation {
//     private String name;
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// }


// Path: src/main/java/eu/luminis/elastic/search/response/aggregations/bucket/BaseBucket.java
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import eu.luminis.elastic.search.response.aggregations.Aggregation;
import java.util.HashMap;
import java.util.Map;

package eu.luminis.elastic.search.response.aggregations.bucket;



/**
 * Default Bucket that can be used by most other buckets besides the ones with a non-string key.
 */
public class BaseBucket implements Bucket {
    @JsonProperty("key")
    private String key;

    @JsonProperty("doc_count")
    private Long docCount;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Long getDocCount() {
        return docCount;
    }

    public void setDocCount(Long docCount) {
        this.docCount = docCount;
    }

    private Map<String, Aggregation> aggregations = new HashMap<>();