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:
java.io.Serializable

public class ScriptBootstrapActionConfig
extends java.lang.Object
implements java.io.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(java.lang.String path, java.util.List<java.lang.String> args)
          Constructs a new ScriptBootstrapActionConfig object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<java.lang.String> getArgs()
          A list of command line arguments to pass to the bootstrap action script.
 java.lang.String getPath()
          Location of the script to run during a bootstrap action.
 int hashCode()
           
 void setArgs(java.util.Collection<java.lang.String> args)
          A list of command line arguments to pass to the bootstrap action script.
 void setPath(java.lang.String path)
          Location of the script to run during a bootstrap action.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ScriptBootstrapActionConfig withArgs(java.util.Collection<java.lang.String> args)
          A list of command line arguments to pass to the bootstrap action script.
 ScriptBootstrapActionConfig withArgs(java.lang.String... args)
          A list of command line arguments to pass to the bootstrap action script.
 ScriptBootstrapActionConfig withPath(java.lang.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(java.lang.String path,
                                   java.util.List<java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.util.List<java.lang.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(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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