
/*
 * Camel ApiName Enumeration generated by camel-api-component-maven-plugin
 */
package org.apache.camel.component.google.drive.internal;

import org.apache.camel.support.component.ApiName;

/**
 * Camel {@link ApiName} Enumeration for Component GoogleDrive
 */
public enum GoogleDriveApiName implements ApiName {

    DRIVE_ABOUT("drive-about"),

    DRIVE_APPS("drive-apps"),

    DRIVE_CHANGES("drive-changes"),

    DRIVE_CHANNELS("drive-channels"),

    DRIVE_CHILDREN("drive-children"),

    DRIVE_COMMENTS("drive-comments"),

    DRIVE_FILES("drive-files"),

    DRIVE_PARENTS("drive-parents"),

    DRIVE_PERMISSIONS("drive-permissions"),

    DRIVE_PROPERTIES("drive-properties"),

    DRIVE_REALTIME("drive-realtime"),

    DRIVE_REPLIES("drive-replies"),

    DRIVE_REVISIONS("drive-revisions");


    private static final GoogleDriveApiName[] VALUES = values();
    
    private final String name;

    private GoogleDriveApiName(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    public static GoogleDriveApiName fromValue(String value) throws IllegalArgumentException {
        for (int i = 0; i < VALUES.length; i++) {
            if (VALUES[i].name.equals(value)) {
                return VALUES[i];
            }
        }
        throw new IllegalArgumentException("Invalid value " + value);
    }
}
