public class Configuration extends Object implements Serializable, 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.
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
Configuration |
addPropertiesEntry(String key,
String value) |
Configuration |
clearPropertiesEntries()
Removes all the entries added into Properties.
|
Configuration |
clone() |
boolean |
equals(Object obj) |
String |
getClassification()
The classification of a configuration.
|
List<Configuration> |
getConfigurations()
A list of configurations you apply to this configuration object.
|
Map<String,String> |
getProperties()
A set of properties supplied to the Configuration object.
|
int |
hashCode() |
void |
setClassification(String classification)
The classification of a configuration.
|
void |
setConfigurations(Collection<Configuration> configurations)
A list of configurations you apply to this configuration object.
|
void |
setProperties(Map<String,String> properties)
A set of properties supplied to the Configuration object.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Configuration |
withClassification(String classification)
The classification of a configuration.
|
Configuration |
withConfigurations(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(Map<String,String> properties)
A set of properties supplied to the Configuration object.
|
public void setClassification(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 String getClassification()
The classification of a configuration. For more information see, Amazon EMR Configurations.
public Configuration withClassification(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 List<Configuration> getConfigurations()
A list of configurations you apply to this configuration object.
public void setConfigurations(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(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 Map<String,String> getProperties()
A set of properties supplied to the Configuration object.
public void setProperties(Map<String,String> properties)
A set of properties supplied to the Configuration object.
properties
- A set of properties supplied to the Configuration object.public Configuration withProperties(Map<String,String> properties)
A set of properties supplied to the Configuration object.
properties
- A set of properties supplied to the Configuration object.public Configuration addPropertiesEntry(String key, String value)
public Configuration clearPropertiesEntries()
public String toString()
toString
in class Object
Object.toString()
public Configuration clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.