/*
 * Camel ApiMethod Enumeration generated by camel-api-component-maven-plugin
 */
package org.apache.camel.component.dhis2.internal;

import java.lang.reflect.Method;
import java.util.List;
import javax.annotation.processing.Generated;

import org.apache.camel.component.dhis2.api.Dhis2Get;

import org.apache.camel.support.component.ApiMethod;
import org.apache.camel.support.component.ApiMethodArg;
import org.apache.camel.support.component.ApiMethodImpl;

import static org.apache.camel.support.component.ApiMethodArg.arg;
import static org.apache.camel.support.component.ApiMethodArg.setter;

/**
 * Camel {@link ApiMethod} Enumeration for org.apache.camel.component.dhis2.api.Dhis2Get
 */
@Generated("org.apache.camel.maven.ApiComponentGeneratorMojo")
public enum Dhis2GetApiMethod implements ApiMethod {

    COLLECTION(
        java.util.Iterator.class,
        "collection",
        arg("path", String.class),
        arg("arrayName", String.class),
        arg("paging", Boolean.class),
        arg("fields", String.class),
        arg("filter", java.util.List.class),
        arg("rootJunction", org.apache.camel.component.dhis2.api.RootJunctionEnum.class),
        arg("queryParams", java.util.Map.class)),

    RESOURCE(
        java.io.InputStream.class,
        "resource",
        arg("path", String.class),
        arg("fields", String.class),
        arg("filter", java.util.List.class),
        arg("rootJunction", org.apache.camel.component.dhis2.api.RootJunctionEnum.class),
        arg("queryParams", java.util.Map.class));

    private final ApiMethod apiMethod;

    Dhis2GetApiMethod(Class<?> resultType, String name, ApiMethodArg... args) {
        this.apiMethod = new ApiMethodImpl(Dhis2Get.class, resultType, name, args);
    }

    @Override
    public String getName() { return apiMethod.getName(); }

    @Override
    public Class<?> getResultType() { return apiMethod.getResultType(); }

    @Override
    public List<String> getArgNames() { return apiMethod.getArgNames(); }

    @Override
    public List<String> getSetterArgNames() { return apiMethod.getSetterArgNames(); }

    @Override
    public List<Class<?>> getArgTypes() { return apiMethod.getArgTypes(); }

    @Override
    public Method getMethod() { return apiMethod.getMethod(); }
}
