org.apache.camel.component.linkedin.internal.LinkedInApiName Maven / Gradle / Ivy
The newest version!
/*
* Camel ApiName Enumeration generated by camel-api-component-maven-plugin
*/
package org.apache.camel.component.linkedin.internal;
import org.apache.camel.support.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 static final LinkedInApiName[] VALUES = values();
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 (int i = 0; i < VALUES.length; i++) {
if (VALUES[i].name.equals(value)) {
return VALUES[i];
}
}
throw new IllegalArgumentException("Invalid value " + value);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy