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 SupportedProductConfigclone()booleanequals(Object obj)List<String>getArgs()The list of user-supplied arguments.StringgetName()The name of the product configuration.inthashCode()voidsetArgs(Collection<String> args)The list of user-supplied arguments.voidsetName(String name)The name of the product configuration.StringtoString()Returns a string representation of this object; useful for testing and debugging.SupportedProductConfigwithArgs(String... args)The list of user-supplied arguments.SupportedProductConfigwithArgs(Collection<String> args)The list of user-supplied arguments.SupportedProductConfigwithName(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SupportedProductConfig clone()
-
-