Class ScriptBootstrapActionConfig

    • Constructor Detail

      • ScriptBootstrapActionConfig

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

        public ScriptBootstrapActionConfig​(String path,
                                           List<String> args)
        Constructs a new ScriptBootstrapActionConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
        Parameters:
        path - Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
        args - A list of command line arguments to pass to the bootstrap action script.
    • Method Detail

      • setPath

        public void setPath​(String path)

        Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.

        Parameters:
        path - Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
      • getPath

        public String getPath()

        Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.

        Returns:
        Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
      • withPath

        public ScriptBootstrapActionConfig withPath​(String path)

        Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.

        Parameters:
        path - Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getArgs

        public List<String> getArgs()

        A list of command line arguments to pass to the bootstrap action script.

        Returns:
        A list of command line arguments to pass to the bootstrap action script.
      • setArgs

        public void setArgs​(Collection<String> args)

        A list of command line arguments to pass to the bootstrap action script.

        Parameters:
        args - A list of command line arguments to pass to the bootstrap action script.
      • withArgs

        public ScriptBootstrapActionConfig withArgs​(String... args)

        A list of command line arguments to pass to the bootstrap action script.

        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 - A list of command line arguments to pass to the bootstrap action script.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withArgs

        public ScriptBootstrapActionConfig withArgs​(Collection<String> args)

        A list of command line arguments to pass to the bootstrap action script.

        Parameters:
        args - A list of command line arguments to pass to the bootstrap action script.
        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