<p>
The stage in which to perform the action.
</p>

@param stages
The stage in which to perform the action.
767283
public void setStages(java.util.Collection<StageDeclaration> stages) {
        if (stages == null) {
            this.stages = null;
            return;
        }

        this.stages = new java.util.ArrayList<StageDeclaration>(stages);
    }
1349045
public void setRegions(java.util.Collection<Region> regions) {
        if (regions == null) {
            this.regions = null;
            return;
        }

        this.regions = new java.util.ArrayList<Region>(regions);
    }
1207956
public static void keepWithinStage (Actor actor) {
		Stage stage = actor.getStage();
		if (stage == null) {
			throw new IllegalStateException("keepWithinStage cannot be used on Actor that doesn't belong to any stage. ");
		}
		keepWithinStage(actor.getStage(), actor);
	}
503478
public synchronized Stage stageNamed(final String name) {
    Stage stage = stages.get(name);

    if (stage == null) {
      stage = new Stage(this, name);
      if (!name.equals(DEFAULT_STAGE)) stage.startDirectoryScanner();
      stages.put(name, stage);
    }

    return stage;
  }
769227
@TaskAction
  public void stageAction() throws AppEngineException {
    getProject().delete(appYamlExtension.getStagingDirectory());
    getProject().mkdir(appYamlExtension.getStagingDirectory().getAbsolutePath());

    AppYamlProjectStaging staging = new AppYamlProjectStaging();
    staging.stageArchive(appYamlExtension.toAppYamlProjectStageConfiguration());
  }
503591
public void setEvents(java.util.Collection<Event> events) {
        if (events == null) {
            this.events = null;
            return;
        }

        this.events = new java.util.ArrayList<Event>(events);
    }
6646
public void setSections(final List<Section> SECTIONS) {
        sections.setAll(SECTIONS);
        Collections.sort(sections, new SectionComparator());
        fireUpdateEvent(SECTION_EVENT);
    }
866913
public void setActions(java.util.Collection<ActionDeclaration> actions) {
        if (actions == null) {
            this.actions = null;
            return;
        }

        this.actions = new java.util.ArrayList<ActionDeclaration>(actions);
    }
552195
Stage<Void> doCollectAndDiscard(
      Collection<? extends Stage<?>> stages
  ) {
    final Completable<Void> target = completable();

    final CollectAndDiscardHelper done = new CollectAndDiscardHelper(stages.size(), target);

    for (final Stage<?> q : stages) {
      q.handle(done);
    }

    bindSignals(target, stages);
    return target;
  }
432965
@Override
    public void executeNext()
    {
        final LifecycleStage nextStage = getNextStage();
        if (nextStage == null) {
            throw new IllegalStateException("Lifecycle already hit the final stage!");
        }
        execute(nextStage);
    }
963506
synchronized void setStageTopics(String stageName, String[] topics) {
        for (String t : topics) {
            if (t.equals("*")) {
                wildcardStageTopics.put("", stageName);
            } else if (t.endsWith("/*")) {
                wildcardStageTopics.put(t.substring(0, t.length() - 1), stageName);
            } else {
                discreteStageTopics.put(t, stageName);
            }
        }

        // Clear the cache since it's no longer up to date
        clearTopicDataCache();
    }
223076
public void setLevels(Map<Integer, Long> levels) {
        SystemAssert.requireArgument(levels != null, "Levels cannot be null");
        this.levels.clear();
        this.levels.putAll(levels);
    }
281610
public void setActionTypes(java.util.Collection<ActionType> actionTypes) {
        if (actionTypes == null) {
            this.actionTypes = null;
            return;
        }

        this.actionTypes = new java.util.ArrayList<ActionType>(actionTypes);
    }
1047918
public void setRegions(java.util.Collection<Region> regions) {
        if (regions == null) {
            this.regions = null;
            return;
        }

        this.regions = new com.amazonaws.internal.SdkInternalList<Region>(regions);
    }
1000405
public void addEvent(UserFeedbackEvent.Level level, UserFeedbackEvent.Stage stage, String message) {
    addEvent(new UserFeedbackEvent(autoML, level, stage, message));
  }
1229648
public void setActions(java.util.Collection<DatasetActionSummary> actions) {
        if (actions == null) {
            this.actions = null;
            return;
        }

        this.actions = new java.util.ArrayList<DatasetActionSummary>(actions);
    }
1330004
private void collectStartVertices(final ExecutionStage stage) {

		for (int i = 0; i < stage.getNumberOfStageMembers(); i++) {

			final ExecutionGroupVertex groupVertex = stage.getStageMember(i);

			if (forward) {
				if ((groupVertex.getNumberOfBackwardLinks() == 0)
					|| ((this.stage >= 0) && allConnectionsFromOtherStage(groupVertex, true))) {
					this.entryVertices.add(groupVertex);
				}
			} else {
				if ((groupVertex.getNumberOfForwardLinks() == 0)
					|| ((this.stage >= 0) && allConnectionsFromOtherStage(groupVertex, false))) {
					this.entryVertices.add(groupVertex);
				}
			}
		}
	}