Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticmapreduce.model
Class ScriptBootstrapActionConfig

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.ScriptBootstrapActionConfig
All Implemented Interfaces:
Serializable

public class ScriptBootstrapActionConfig
extends Object
implements Serializable

Configuration of the script to run during a bootstrap action.

See Also:
Serialized Form

Constructor Summary
ScriptBootstrapActionConfig()
          Default constructor for a new ScriptBootstrapActionConfig object.
ScriptBootstrapActionConfig(String path, List<String> args)
          Constructs a new ScriptBootstrapActionConfig object.
 
Method Summary
 boolean equals(Object obj)
           
 List<String> getArgs()
          A list of command line arguments to pass to the bootstrap action script.
 String getPath()
          Location of the script to run during a bootstrap action.
 int hashCode()
           
 void setArgs(Collection<String> args)
          A list of command line arguments to pass to the bootstrap action script.
 void setPath(String path)
          Location of the script to run during a bootstrap action.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ScriptBootstrapActionConfig withArgs(Collection<String> args)
          A list of command line arguments to pass to the bootstrap action script.
 ScriptBootstrapActionConfig withArgs(String... args)
          A list of command line arguments to pass to the bootstrap action script.
 ScriptBootstrapActionConfig withPath(String path)
          Location of the script to run during a bootstrap action.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptBootstrapActionConfig

public ScriptBootstrapActionConfig()
Default constructor for a new ScriptBootstrapActionConfig object. Callers should use the setter or fluent setter (with...) methods to initialize this 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

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.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

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.

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.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

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.

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

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:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

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

Returns a reference to this object so that method calls can be chained together.

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

equals

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


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.