JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.elasticmapreduce.model

Class Command

    • Constructor Detail

      • Command

        public Command()
    • Method Detail

      • setName

        public void setName(String name)

        The name of the command.

        Parameters:
        name - The name of the command.
      • getName

        public String getName()

        The name of the command.

        Returns:
        The name of the command.
      • withName

        public Command withName(String name)

        The name of the command.

        Parameters:
        name - The name of the command.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setScriptPath

        public void setScriptPath(String scriptPath)

        The Amazon S3 location of the command script.

        Parameters:
        scriptPath - The Amazon S3 location of the command script.
      • getScriptPath

        public String getScriptPath()

        The Amazon S3 location of the command script.

        Returns:
        The Amazon S3 location of the command script.
      • withScriptPath

        public Command withScriptPath(String scriptPath)

        The Amazon S3 location of the command script.

        Parameters:
        scriptPath - The Amazon S3 location of the command script.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getArgs

        public List<String> getArgs()

        Arguments for Amazon EMR to pass to the command for execution.

        Returns:
        Arguments for Amazon EMR to pass to the command for execution.
      • setArgs

        public void setArgs(Collection<String> args)

        Arguments for Amazon EMR to pass to the command for execution.

        Parameters:
        args - Arguments for Amazon EMR to pass to the command for execution.
      • withArgs

        public Command withArgs(String... args)

        Arguments for Amazon EMR to pass to the command for execution.

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

        Parameters:
        args - Arguments for Amazon EMR to pass to the command for execution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withArgs

        public Command withArgs(Collection<String> args)

        Arguments for Amazon EMR to pass to the command for execution.

        Parameters:
        args - Arguments for Amazon EMR to pass to the command for execution.
        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. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /