package com.microsoft.bingads.v11.campaignmanagement;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for AgeRange.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="AgeRange">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="ZeroToSeventeen"/>
* <enumeration value="EighteenToTwentyFour"/>
* <enumeration value="TwentyFiveToThirtyFour"/>
* <enumeration value="ThirtyFiveToFourtyNine"/>
* <enumeration value="FiftyToSixtyFour"/>
* <enumeration value="SixtyFiveAndAbove"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "AgeRange")
@XmlEnum
public enum AgeRange {
@XmlEnumValue("ZeroToSeventeen")
ZERO_TO_SEVENTEEN("ZeroToSeventeen"),
@XmlEnumValue("EighteenToTwentyFour")
EIGHTEEN_TO_TWENTY_FOUR("EighteenToTwentyFour"),
@XmlEnumValue("TwentyFiveToThirtyFour")
TWENTY_FIVE_TO_THIRTY_FOUR("TwentyFiveToThirtyFour"),
@XmlEnumValue("ThirtyFiveToFourtyNine")
THIRTY_FIVE_TO_FOURTY_NINE("ThirtyFiveToFourtyNine"),
@XmlEnumValue("FiftyToSixtyFour")
FIFTY_TO_SIXTY_FOUR("FiftyToSixtyFour"),
@XmlEnumValue("SixtyFiveAndAbove")
SIXTY_FIVE_AND_ABOVE("SixtyFiveAndAbove");
private final String value;
AgeRange(String v) {
value = v;
}
public String value() {
return value;
}
public static AgeRange fromValue(String v) {
for (AgeRange c: AgeRange.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}