Class AddJobFlowStepsRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.elasticmapreduce.model.AddJobFlowStepsRequest
All Implemented Interfaces:
ReadLimitInfo, Serializable, Cloneable

public class AddJobFlowStepsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable

The input argument to the AddJobFlowSteps operation.

See Also:
  • Constructor Details

    • AddJobFlowStepsRequest

      public AddJobFlowStepsRequest()
      Default constructor for AddJobFlowStepsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • AddJobFlowStepsRequest

      public AddJobFlowStepsRequest(String jobFlowId)
      Constructs a new AddJobFlowStepsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      jobFlowId - A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.
    • AddJobFlowStepsRequest

      public AddJobFlowStepsRequest(String jobFlowId, List<StepConfig> steps)
      Constructs a new AddJobFlowStepsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      jobFlowId - A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.
      steps - A list of StepConfig to be executed by the job flow.
  • Method Details

    • setJobFlowId

      public void setJobFlowId(String jobFlowId)

      A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.

      Parameters:
      jobFlowId - A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.
    • getJobFlowId

      public String getJobFlowId()

      A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.

      Returns:
      A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.
    • withJobFlowId

      public AddJobFlowStepsRequest withJobFlowId(String jobFlowId)

      A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.

      Parameters:
      jobFlowId - A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getSteps

      public List<StepConfig> getSteps()

      A list of StepConfig to be executed by the job flow.

      Returns:
      A list of StepConfig to be executed by the job flow.
    • setSteps

      public void setSteps(Collection<StepConfig> steps)

      A list of StepConfig to be executed by the job flow.

      Parameters:
      steps - A list of StepConfig to be executed by the job flow.
    • withSteps

      public AddJobFlowStepsRequest withSteps(StepConfig... steps)

      A list of StepConfig to be executed by the job flow.

      NOTE: This method appends the values to the existing list (if any). Use setSteps(java.util.Collection) or withSteps(java.util.Collection) if you want to override the existing values.

      Parameters:
      steps - A list of StepConfig to be executed by the job flow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withSteps

      public AddJobFlowStepsRequest withSteps(Collection<StepConfig> steps)

      A list of StepConfig to be executed by the job flow.

      Parameters:
      steps - A list of StepConfig to be executed by the job flow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AddJobFlowStepsRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: