/** * The arithmetic operation to use when comparing the specified statistic and threshold. * * @param comparisonOperator the arithmetic operation to use when comparing the specified statistic and threshold * * @return this {@code SaveAlarmOptions} object */ public SaveAlarmOptions comparisonOperator(ComparisonOperator comparisonOperator) { checkNotNull(comparisonOperator, "comparisonOperator"); checkArgument(comparisonOperator != ComparisonOperator.UNRECOGNIZED, "comparisonOperator unrecognized"); formParameters.put("ComparisonOperator", comparisonOperator.toString()); return this; }
public String value() { return CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, name()); }
@Override public String toString() { return value(); }
public static ComparisonOperator fromValue(String value) { try { return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(value, "value"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
alarmName = SaxUtils.currentOrNull(currentText); } else if (qName.equals("ComparisonOperator")) { comparisonOperator = ComparisonOperator.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("EvaluationPeriods")) { evaluationPeriods = Integer.valueOf(SaxUtils.currentOrNull(currentText));
public static ComparisonOperator fromValue(String value) { try { return valueOf(CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, checkNotNull(value, "value"))); } catch (IllegalArgumentException e) { return UNRECOGNIZED; } }
alarmName = SaxUtils.currentOrNull(currentText); } else if (qName.equals("ComparisonOperator")) { comparisonOperator = ComparisonOperator.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("EvaluationPeriods")) { evaluationPeriods = Integer.parseInt(SaxUtils.currentOrNull(currentText));
/** * The arithmetic operation to use when comparing the specified statistic and threshold. * * @param comparisonOperator the arithmetic operation to use when comparing the specified statistic and threshold * * @return this {@code SaveAlarmOptions} object */ public SaveAlarmOptions comparisonOperator(ComparisonOperator comparisonOperator) { checkNotNull(comparisonOperator, "comparisonOperator"); checkArgument(comparisonOperator != ComparisonOperator.UNRECOGNIZED, "comparisonOperator unrecognized"); formParameters.put("ComparisonOperator", comparisonOperator.toString()); return this; }
public static ComparisonOperator 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()); }
alarmName = SaxUtils.currentOrNull(currentText); } else if (qName.equals("ComparisonOperator")) { comparisonOperator = ComparisonOperator.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("EvaluationPeriods")) { evaluationPeriods = Integer.parseInt(SaxUtils.currentOrNull(currentText));
/** * The arithmetic operation to use when comparing the specified statistic and threshold. * * @param comparisonOperator the arithmetic operation to use when comparing the specified statistic and threshold * * @return this {@code SaveAlarmOptions} object */ public SaveAlarmOptions comparisonOperator(ComparisonOperator comparisonOperator) { checkNotNull(comparisonOperator, "comparisonOperator"); checkArgument(comparisonOperator != ComparisonOperator.UNRECOGNIZED, "comparisonOperator unrecognized"); formParameters.put("ComparisonOperator", comparisonOperator.toString()); return this; }
public static ComparisonOperator 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()); }
alarmName = SaxUtils.currentOrNull(currentText); } else if (qName.equals("ComparisonOperator")) { comparisonOperator = ComparisonOperator.fromValue(SaxUtils.currentOrNull(currentText)); } else if (qName.equals("EvaluationPeriods")) { evaluationPeriods = Integer.valueOf(SaxUtils.currentOrNull(currentText));
/** * The arithmetic operation to use when comparing the specified statistic and threshold. * * @param comparisonOperator the arithmetic operation to use when comparing the specified statistic and threshold * * @return this {@code SaveAlarmOptions} object */ public SaveAlarmOptions comparisonOperator(ComparisonOperator comparisonOperator) { checkNotNull(comparisonOperator, "comparisonOperator"); checkArgument(comparisonOperator != ComparisonOperator.UNRECOGNIZED, "comparisonOperator unrecognized"); formParameters.put("ComparisonOperator", comparisonOperator.toString()); return this; }
public static ComparisonOperator 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(); }