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

com.aliyun.openservices.log.response.ListIngestionResponse Maven / Gradle / Ivy

There is a newer version: 0.6.115
Show newest version
package com.aliyun.openservices.log.response;

import com.aliyun.openservices.log.common.Ingestion;
import com.aliyun.openservices.log.internal.Unmarshaller;
import com.alibaba.fastjson.JSONArray;

import java.io.Serializable;
import java.util.Map;

public class ListIngestionResponse extends ResponseList implements Serializable {

    private static final long serialVersionUID = -772562389342255859L;

    public ListIngestionResponse(Map headers) {
        super(headers);
    }

    @Override
    public Unmarshaller unmarshaller() {
        return new Unmarshaller() {
            @Override
            public Ingestion unmarshal(JSONArray value, int index) {
                Ingestion ingestion = new Ingestion();
                ingestion.deserialize(value.getJSONObject(index));
                return ingestion;
            }
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy