public class SupportedProductConfig
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
args
The list of user-supplied arguments.
|
private java.lang.String |
name
The name of the product configuration.
|
Constructor and Description |
---|
SupportedProductConfig() |
Modifier and Type | Method and Description |
---|---|
SupportedProductConfig |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getArgs()
The list of user-supplied arguments.
|
java.lang.String |
getName()
The name of the product configuration.
|
int |
hashCode() |
void |
setArgs(java.util.Collection<java.lang.String> args)
The list of user-supplied arguments.
|
void |
setName(java.lang.String name)
The name of the product configuration.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SupportedProductConfig |
withArgs(java.util.Collection<java.lang.String> args)
The list of user-supplied arguments.
|
SupportedProductConfig |
withArgs(java.lang.String... args)
The list of user-supplied arguments.
|
SupportedProductConfig |
withName(java.lang.String name)
The name of the product configuration.
|
private java.lang.String name
The name of the product configuration.
private SdkInternalList<java.lang.String> args
The list of user-supplied arguments.
public void setName(java.lang.String name)
The name of the product configuration.
name
- The name of the product configuration.public java.lang.String getName()
The name of the product configuration.
public SupportedProductConfig withName(java.lang.String name)
The name of the product configuration.
name
- The name of the product configuration.public java.util.List<java.lang.String> getArgs()
The list of user-supplied arguments.
public void setArgs(java.util.Collection<java.lang.String> args)
The list of user-supplied arguments.
args
- The list of user-supplied arguments.public SupportedProductConfig withArgs(java.lang.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)
or
withArgs(java.util.Collection)
if you want to override the
existing values.
args
- The list of user-supplied arguments.public SupportedProductConfig withArgs(java.util.Collection<java.lang.String> args)
The list of user-supplied arguments.
args
- The list of user-supplied arguments.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SupportedProductConfig clone()
clone
in class java.lang.Object