/** * <p> * The identifier of the cluster step. * </p> * * @param id * The identifier of the cluster step. * @return Returns a reference to this object so that method calls can be chained together. */ public Step withId(String id) { setId(id); return this; }
if (context.testExpression("Id", targetDepth)) { context.nextToken(); step.setId(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The identifier of the cluster step. * </p> * * @param id * The identifier of the cluster step. * @return Returns a reference to this object so that method calls can be chained together. */ public Step withId(String id) { setId(id); return this; }
if (context.testExpression("Id", targetDepth)) { context.nextToken(); step.setId(context.getUnmarshaller(String.class).unmarshall(context));
@Override public DescribeStepResult describeStepRequest(AmazonElasticMapReduceClient emrClient, DescribeStepRequest describeStepRequest) { MockEmrJobFlow cluster = getClusterById(describeStepRequest.getClusterId()); if (cluster == null) { throw new AmazonServiceException("No cluster found with jobFlowId: " + describeStepRequest.getClusterId()); } Step stepResult = null; // Add steps that are in these states for (MockEmrJobFlow step : cluster.getSteps()) { if (describeStepRequest.getStepId().equalsIgnoreCase(step.getJobFlowId())) { HadoopStepConfig hadoopStepConfig = new HadoopStepConfig().withJar(step.getJarLocation()); stepResult = new Step().withId(step.getJobFlowId()).withName(step.getJobFlowName()).withStatus(new StepStatus().withState(step.getStatus())) .withConfig(hadoopStepConfig); if (stepResult.getName().equalsIgnoreCase(MOCK_STEP_WITHOUT_ID_NAME)) { stepResult.setId(null); } break; } } return new DescribeStepResult().withStep(stepResult); }