private void checkRequiredFieldsForBuild() {
    if (name == null || status == null) {
      throw new IllegalStateException("Either of required fields name=" + name + " or status=" + status + " is null");
    }
  }
Checks if any required field is missing for a {@link Account}.
@throws IllegalStateException If any of the required field is missing.
ambry-api/src/main/java/com/github/ambry/account/Account.java