static boolean statisticSetHasNoFields(StatisticSet statisticValues) {
   return (statisticValues == null)
       || ((statisticValues.getMaximum()) == null
           && (statisticValues.getMinimum() == null)
           && (statisticValues.getSampleCount()) == null
           && (statisticValues.getSum() == null));
 }
 static void validateAllStatisticSetFields(
     StatisticSet statisticValues, String statisticValuesName) throws CloudWatchException {
   StringBuilder errors = new StringBuilder();
   boolean haveErrors = false;
   if (statisticValues == null || statisticValues.getMaximum() == null) {
     if (haveErrors) {
       errors.append("\n");
     }
     errors.append("The parameter " + statisticValuesName + ".Maximum is required.");
     haveErrors = true;
   }
   if (statisticValues == null || statisticValues.getMinimum() == null) {
     if (haveErrors) {
       errors.append("\n");
     }
     errors.append("The parameter " + statisticValuesName + ".Minimum is required.");
     haveErrors = true;
   }
   if (statisticValues == null || statisticValues.getSampleCount() == null) {
     if (haveErrors) {
       errors.append("\n");
     }
     errors.append("The parameter " + statisticValuesName + ".SampleCount is required.");
     haveErrors = true;
   }
   if (statisticValues == null || statisticValues.getSum() == null) {
     if (haveErrors) {
       errors.append("\n");
     }
     errors.append("The parameter " + statisticValuesName + ".Sum is required.");
     haveErrors = true;
   }
   if (haveErrors) {
     throw new MissingParameterException(errors.toString());
   }
 }