code: public CreateSnapshotScheduleResult withScheduleDefinitions(String... scheduleDefinitions) {
          if (this.scheduleDefinitions == null) {
              setScheduleDefinitions(new com.amazonaws.internal.SdkInternalList<String>(scheduleDefinitions.length));
          }
          for (String ele : scheduleDefinitions) {
              this.scheduleDefinitions.add(ele);
          }
          return this;
      }
docs: <p>
  A list of ScheduleDefinitions.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setScheduleDefinitions(java.util.Collection)} or {@link #withScheduleDefinitions(java.util.Collection)}
  if you want to override the existing values.
  </p>
  
  @param scheduleDefinitions
  A list of ScheduleDefinitions.
  @return Returns a reference to this object so that method calls can be chained together.