code: public PolicyDetails withSchedules(Schedule... schedules) {
          if (this.schedules == null) {
              setSchedules(new java.util.ArrayList<Schedule>(schedules.length));
          }
          for (Schedule ele : schedules) {
              this.schedules.add(ele);
          }
          return this;
      }
docs: <p>
  The schedule of policy-defined actions.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setSchedules(java.util.Collection)} or {@link #withSchedules(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param schedules
  The schedule of policy-defined actions.
  @return Returns a reference to this object so that method calls can be chained together.