/** * Builds a new {@link CriticalSound} instance from the fields set on this builder. * * @return A non-null {@link CriticalSound}. * @throws IllegalArgumentException If the volume value is out of range. */ public CriticalSound build() { return new CriticalSound(this); } }
fields.put("sound", builder.sound); } else if (builder.criticalSound != null) { fields.put("sound", builder.criticalSound.getFields());