Class SupportedProductConfig

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class SupportedProductConfig
    extends Object
    implements Serializable, Cloneable

    The list of supported product configurations which allow user-supplied arguments. EMR accepts these arguments and forwards them to the corresponding installation script as bootstrap action arguments.

    See Also:
    Serialized Form
    • Constructor Detail

      • SupportedProductConfig

        public SupportedProductConfig()
    • Method Detail

      • setName

        public void setName​(String name)

        The name of the product configuration.

        Parameters:
        name - The name of the product configuration.
      • getName

        public String getName()

        The name of the product configuration.

        Returns:
        The name of the product configuration.
      • withName

        public SupportedProductConfig withName​(String name)

        The name of the product configuration.

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

        public List<String> getArgs()

        The list of user-supplied arguments.

        Returns:
        The list of user-supplied arguments.
      • setArgs

        public void setArgs​(Collection<String> args)

        The list of user-supplied arguments.

        Parameters:
        args - The list of user-supplied arguments.
      • withArgs

        public SupportedProductConfig withArgs​(String... args)

        The list of user-supplied arguments.

        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 - The list of user-supplied arguments.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withArgs

        public SupportedProductConfig withArgs​(Collection<String> args)

        The list of user-supplied arguments.

        Parameters:
        args - The list of user-supplied arguments.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object