com.microsoft.bingads.v13.campaignmanagement.PriceUnit Maven / Gradle / Ivy
package com.microsoft.bingads.v13.campaignmanagement;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for PriceUnit.
*
*
The following schema fragment specifies the expected content contained within this class.
*
{@code
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*/
@XmlType(name = "PriceUnit")
@XmlEnum
public enum PriceUnit {
@XmlEnumValue("Unknown")
UNKNOWN("Unknown"),
@XmlEnumValue("PerHour")
PER_HOUR("PerHour"),
@XmlEnumValue("PerDay")
PER_DAY("PerDay"),
@XmlEnumValue("PerWeek")
PER_WEEK("PerWeek"),
@XmlEnumValue("PerMonth")
PER_MONTH("PerMonth"),
@XmlEnumValue("PerYear")
PER_YEAR("PerYear"),
@XmlEnumValue("None")
NONE("None"),
@XmlEnumValue("PerNight")
PER_NIGHT("PerNight");
private final String value;
PriceUnit(String v) {
value = v;
}
public String value() {
return value;
}
public static PriceUnit fromValue(String v) {
for (PriceUnit c: PriceUnit.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy