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

com.jakewharton.pingdom.enumerations.PublicReportMonths Maven / Gradle / Ivy

Go to download

A Java wrapper around the Pingdom RESTful API and a simple DSL for easy interaction.

The newest version!
package com.jakewharton.pingdom.enumerations;

import java.util.HashMap;
import java.util.Map;
import com.jakewharton.pingdom.PingdomEnumeration;

/**
 * Represents a Pingdom public report months enumeration.
 */
public enum PublicReportMonths implements PingdomEnumeration {
	None("none"),
	All("all"),
	Three("3");
	
	private final String value;
	
	private PublicReportMonths(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return this.value;
	}
	
	private static final Map STRING_MAPPING = new HashMap();

	static {
		for (PublicReportMonths months : PublicReportMonths.values()) {
			STRING_MAPPING.put(months.toString(), months);
		}
	}
	
	public static PublicReportMonths fromValue(String value) {
		return STRING_MAPPING.get(value);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy