/** * Constructs a new AddJobFlowStepsRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param jobFlowId * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can * also be obtained from <a>ListClusters</a>. */ public AddJobFlowStepsRequest(String jobFlowId) { setJobFlowId(jobFlowId); }
/** * <p> * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can also be * obtained from <a>ListClusters</a>. * </p> * * @param jobFlowId * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can * also be obtained from <a>ListClusters</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public AddJobFlowStepsRequest withJobFlowId(String jobFlowId) { setJobFlowId(jobFlowId); return this; }
/** * Constructs a new AddJobFlowStepsRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param jobFlowId * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can * also be obtained from <a>ListClusters</a>. * @param steps * A list of <a>StepConfig</a> to be executed by the job flow. */ public AddJobFlowStepsRequest(String jobFlowId, java.util.List<StepConfig> steps) { setJobFlowId(jobFlowId); setSteps(steps); }
/** * Constructs a new AddJobFlowStepsRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param jobFlowId * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can * also be obtained from <a>ListClusters</a>. */ public AddJobFlowStepsRequest(String jobFlowId) { setJobFlowId(jobFlowId); }
/** * <p> * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can also be * obtained from <a>ListClusters</a>. * </p> * * @param jobFlowId * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can * also be obtained from <a>ListClusters</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public AddJobFlowStepsRequest withJobFlowId(String jobFlowId) { setJobFlowId(jobFlowId); return this; }
/** * Constructs a new AddJobFlowStepsRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param jobFlowId * A string that uniquely identifies the job flow. This identifier is returned by <a>RunJobFlow</a> and can * also be obtained from <a>ListClusters</a>. * @param steps * A list of <a>StepConfig</a> to be executed by the job flow. */ public AddJobFlowStepsRequest(String jobFlowId, java.util.List<StepConfig> steps) { setJobFlowId(jobFlowId); setSteps(steps); }
@Override public void addStepToExistingJobFlow( String stagingS3FileUrl, String stagingS3BucketUrl, String stepType, String mainClass, AbstractAmazonJobEntry jobEntry ) { this.alive = jobEntry.getAlive(); this.hadoopJobFlowId = jobEntry.getHadoopJobFlowId(); setStepsFromCluster(); List<StepConfig> steps = initSteps( stagingS3FileUrl, stepType, mainClass, jobEntry ); AddJobFlowStepsRequest addJobFlowStepsRequest = new AddJobFlowStepsRequest(); addJobFlowStepsRequest.setJobFlowId( hadoopJobFlowId ); addJobFlowStepsRequest.setSteps( steps ); emrClient.addJobFlowSteps( addJobFlowStepsRequest ); stepId = getSpecifiedRunningStep(); }