com.sforce.soap.tooling.MonitoredEvents Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sforce-tooling-api Show documentation
Show all versions of sforce-tooling-api Show documentation
Salesforce Tooling API client
The newest version!
package com.sforce.soap.tooling;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for MonitoredEvents.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="MonitoredEvents">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="AuditTrail"/>
* <enumeration value="Login"/>
* <enumeration value="Entity"/>
* <enumeration value="DataExport"/>
* <enumeration value="AccessResource"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "MonitoredEvents")
@XmlEnum
public enum MonitoredEvents {
@XmlEnumValue("AuditTrail")
AUDIT_TRAIL("AuditTrail"),
@XmlEnumValue("Login")
LOGIN("Login"),
@XmlEnumValue("Entity")
ENTITY("Entity"),
@XmlEnumValue("DataExport")
DATA_EXPORT("DataExport"),
@XmlEnumValue("AccessResource")
ACCESS_RESOURCE("AccessResource");
private final String value;
MonitoredEvents(String v) {
value = v;
}
public String value() {
return value;
}
public static MonitoredEvents fromValue(String v) {
for (MonitoredEvents c: MonitoredEvents.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}