package com.google.graphgeckos.dashboard.api.components;

import java.util.ArrayList;
import java.util.List;

/**
 * Represents the information about a single buildbot.
 */
public class Builder {
  private final String builderName;
  private final List<Log> logs;

  // "failed" or "passed"
  private final BuilderStatus status;

  public Builder(String builderName, List<Log> logs, BuilderStatus status) {
    this.builderName = builderName;
    this.logs = new ArrayList<>(logs);
    this.status = status;
  }

  public String getBuilderName() {
    return builderName;
  }

  public List<Log> getLogs() {
    return logs;
  }

  public BuilderStatus getStatus() {
    return status;
  }

}

@@ -189,16 +189,41 @@
 ilder %7B%0A
+  // name of the builder%0A
   privat
@@ -250,16 +250,34 @@
 erName;%0A
+  // builder logs%0A
   privat
@@ -310,28 +310,40 @@
  // 
-%22failed%22 or %22passed%22
+builder status, FAILED or PASSED
 %0A  p
@@ -553,32 +553,77 @@
  = status;%0A  %7D%0A%0A
+  /**%0A   * @return name of the builder%0A   */%0A
   public String 
@@ -676,58 +676,179 @@
 %0A%0A  
-public List%3CLog%3E getLogs() %7B%0A    return logs;%0A  %7D%0A
+/**%0A   * @return list of logs of the builder%0A   */%0A  public List%3CLog%3E getLogs() %7B%0A    return logs;%0A  %7D%0A  %0A  /**%0A   * @return status of the builder (FAILED or PASSED)%0A   */
 %0A  p

add javadocs for builder class