code: public GetCostAndUsageResult withResultsByTime(ResultByTime... resultsByTime) {
          if (this.resultsByTime == null) {
              setResultsByTime(new java.util.ArrayList<ResultByTime>(resultsByTime.length));
          }
          for (ResultByTime ele : resultsByTime) {
              this.resultsByTime.add(ele);
          }
          return this;
      }
docs: <p>
  The time period that is covered by the results in the response.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setResultsByTime(java.util.Collection)} or {@link #withResultsByTime(java.util.Collection)} if you want
  to override the existing values.
  </p>
  
  @param resultsByTime
  The time period that is covered by the results in the response.
  @return Returns a reference to this object so that method calls can be chained together.