public class Configuration
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Amazon EMR releases 4.x or later.
Specifies a hardware and software configuration of the EMR cluster. This includes configurations for applications and software bundled with Amazon EMR. The Configuration object is a JSON object which is defined by a classification and a set of properties. Configurations can be nested, so a configuration may have its own Configuration objects listed.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
classification
The classification of a configuration.
|
private SdkInternalList<Configuration> |
configurations
A list of configurations you apply to this configuration object.
|
private SdkInternalMap<java.lang.String,java.lang.String> |
properties
A set of properties supplied to the Configuration object.
|
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
Configuration |
addPropertiesEntry(java.lang.String key,
java.lang.String value) |
Configuration |
clearPropertiesEntries()
Removes all the entries added into Properties.
|
Configuration |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClassification()
The classification of a configuration.
|
java.util.List<Configuration> |
getConfigurations()
A list of configurations you apply to this configuration object.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
A set of properties supplied to the Configuration object.
|
int |
hashCode() |
void |
setClassification(java.lang.String classification)
The classification of a configuration.
|
void |
setConfigurations(java.util.Collection<Configuration> configurations)
A list of configurations you apply to this configuration object.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
A set of properties supplied to the Configuration object.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Configuration |
withClassification(java.lang.String classification)
The classification of a configuration.
|
Configuration |
withConfigurations(java.util.Collection<Configuration> configurations)
A list of configurations you apply to this configuration object.
|
Configuration |
withConfigurations(Configuration... configurations)
A list of configurations you apply to this configuration object.
|
Configuration |
withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
A set of properties supplied to the Configuration object.
|
private java.lang.String classification
The classification of a configuration. For more information see, Amazon EMR Configurations.
private SdkInternalList<Configuration> configurations
A list of configurations you apply to this configuration object.
private SdkInternalMap<java.lang.String,java.lang.String> properties
A set of properties supplied to the Configuration object.
public void setClassification(java.lang.String classification)
The classification of a configuration. For more information see, Amazon EMR Configurations.
classification
- The classification of a configuration. For more information see,
Amazon EMR Configurations.public java.lang.String getClassification()
The classification of a configuration. For more information see, Amazon EMR Configurations.
public Configuration withClassification(java.lang.String classification)
The classification of a configuration. For more information see, Amazon EMR Configurations.
classification
- The classification of a configuration. For more information see,
Amazon EMR Configurations.public java.util.List<Configuration> getConfigurations()
A list of configurations you apply to this configuration object.
public void setConfigurations(java.util.Collection<Configuration> configurations)
A list of configurations you apply to this configuration object.
configurations
- A list of configurations you apply to this configuration object.public Configuration withConfigurations(Configuration... configurations)
A list of configurations you apply to this configuration object.
NOTE: This method appends the values to the existing list (if
any). Use setConfigurations(java.util.Collection)
or
withConfigurations(java.util.Collection)
if you want to override
the existing values.
configurations
- A list of configurations you apply to this configuration object.public Configuration withConfigurations(java.util.Collection<Configuration> configurations)
A list of configurations you apply to this configuration object.
configurations
- A list of configurations you apply to this configuration object.public java.util.Map<java.lang.String,java.lang.String> getProperties()
A set of properties supplied to the Configuration object.
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
A set of properties supplied to the Configuration object.
properties
- A set of properties supplied to the Configuration object.public Configuration withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
A set of properties supplied to the Configuration object.
properties
- A set of properties supplied to the Configuration object.public Configuration addPropertiesEntry(java.lang.String key, java.lang.String value)
public Configuration clearPropertiesEntries()
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 Configuration clone()
clone
in class java.lang.Object