Class SupportedProductConfig
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.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 Summary
Constructors Constructor Description SupportedProductConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SupportedProductConfig
clone()
boolean
equals(Object obj)
List<String>
getArgs()
The list of user-supplied arguments.String
getName()
The name of the product configuration.int
hashCode()
void
setArgs(Collection<String> args)
The list of user-supplied arguments.void
setName(String name)
The name of the product configuration.String
toString()
Returns a string representation of this object; useful for testing and debugging.SupportedProductConfig
withArgs(String... args)
The list of user-supplied arguments.SupportedProductConfig
withArgs(Collection<String> args)
The list of user-supplied arguments.SupportedProductConfig
withName(String name)
The name of the product configuration.
-
-
-
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)
orwithArgs(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SupportedProductConfig clone()
-
-