/** * The statistic for the metric. * * @param statistic statistic for the metric * * @return this {@code ListAlarmsForMetric} object */ public ListAlarmsForMetric statistic(Statistics statistic) { checkNotNull(statistic, "statistic"); checkArgument(statistic != Statistics.UNRECOGNIZED, "statistic unrecognized"); formParameters.put("Statistic", statistic.toString()); return this; }
public String value() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name()); }
@Override public String toString() { return value(); }
public static Statistics fromValue(String value) { try { return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(value, "value"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
state = Alarm.State.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("Statistic")) { statistic = Statistics.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("Threshold")) { threshold = Double.valueOf(SaxUtils.currentOrNull(currentText));
public static Statistics fromValue(String value) { try { return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(value, "value"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
state = Alarm.State.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("Statistic")) { statistic = Statistics.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("Threshold")) { threshold = Double.valueOf(SaxUtils.currentOrNull(currentText));
/** * The statistic to apply to the alarm's associated metric. * * @param statistic the statistic to apply to the alarm's associated metric * * @return this {@code SaveAlarmOptions} object */ public SaveAlarmOptions statistic(Statistics statistic) { checkNotNull(statistic, "statistic"); checkArgument(statistic != Statistics.UNRECOGNIZED, "statistic unrecognized"); formParameters.put("Statistic", statistic.toString()); return this; }
public static Statistics fromValue(String value) { try { return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(value, "value"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
@Override public String toString() { return value(); }
public String value() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name()); }
state = Alarm.State.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("Statistic")) { statistic = Statistics.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("Threshold")) { threshold = Double.valueOf(SaxUtils.currentOrNull(currentText));
/** * The statistic to apply to the alarm's associated metric. * * @param statistic the statistic to apply to the alarm's associated metric * * @return this {@code SaveAlarmOptions} object */ public SaveAlarmOptions statistic(Statistics statistic) { checkNotNull(statistic, "statistic"); checkArgument(statistic != Statistics.UNRECOGNIZED, "statistic unrecognized"); formParameters.put("Statistic", statistic.toString()); return this; }
public static Statistics fromValue(String value) { try { return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(value, "value"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
@Override public String toString() { return value(); }
public String value() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name()); }
state = Alarm.State.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("Statistic")) { statistic = Statistics.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("Threshold")) { threshold = Double.valueOf(SaxUtils.currentOrNull(currentText));
/** * The statistic for the metric. * * @param statistic statistic for the metric * * @return this {@code ListAlarmsForMetric} object */ public ListAlarmsForMetric statistic(Statistics statistic) { checkNotNull(statistic, "statistic"); checkArgument(statistic != Statistics.UNRECOGNIZED, "statistic unrecognized"); formParameters.put("Statistic", statistic.toString()); return this; }
public static Statistics fromValue(String value) { try { return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(value, "value"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
@Override public String toString() { return value(); }