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

org.apache.camel.component.linkedin.internal.LinkedInApiName Maven / Gradle / Ivy

There is a newer version: 2.15.6
Show newest version
/*
 * Camel ApiName Enumeration generated by camel-api-component-maven-plugin
 * Generated on: Sat Aug 15 16:30:00 EDT 2015
 */
package org.apache.camel.component.linkedin.internal;

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

/**
 * Camel {@link ApiName} Enumeration for Component LinkedIn
 */
public enum LinkedInApiName implements ApiName {

    COMMENTS("comments"),
    COMPANIES("companies"),
    GROUPS("groups"),
    JOBS("jobs"),
    PEOPLE("people"),
    POSTS("posts"),
    SEARCH("search");

    private final String name;

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

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

    public static LinkedInApiName fromValue(String value) throws IllegalArgumentException {
        for (LinkedInApiName api : LinkedInApiName.values()) {
            if (api.name.equals(value)) {
                return api;
            }
        }
        throw new IllegalArgumentException("Invalid value " + value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy