code: public DescribePendingMaintenanceActionsResult withPendingMaintenanceActions(ResourcePendingMaintenanceActions... pendingMaintenanceActions) {
          if (this.pendingMaintenanceActions == null) {
              setPendingMaintenanceActions(new java.util.ArrayList<ResourcePendingMaintenanceActions>(pendingMaintenanceActions.length));
          }
          for (ResourcePendingMaintenanceActions ele : pendingMaintenanceActions) {
              this.pendingMaintenanceActions.add(ele);
          }
          return this;
      }
docs: <p>
  The maintenance actions to be applied.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setPendingMaintenanceActions(java.util.Collection)} or
  {@link #withPendingMaintenanceActions(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param pendingMaintenanceActions
  The maintenance actions to be applied.
  @return Returns a reference to this object so that method calls can be chained together.