public class Configuration extends Object implements Serializable, Cloneable
NOTE: 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)
A set of properties supplied to the Configuration object.
|
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 String getClassification()
public void setClassification(String classification)
classification
- The classification of a configuration. For more information see, Amazon
EMR Configurations.public Configuration withClassification(String classification)
Returns a reference to this object so that method calls can be chained together.
classification
- The classification of a configuration. For more information see, Amazon
EMR Configurations.public List<Configuration> getConfigurations()
public void setConfigurations(Collection<Configuration> configurations)
configurations
- A list of configurations you apply to this configuration object.public Configuration withConfigurations(Configuration... configurations)
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.
Returns a reference to this object so that method calls can be chained together.
configurations
- A list of configurations you apply to this configuration object.public Configuration withConfigurations(Collection<Configuration> configurations)
Returns a reference to this object so that method calls can be chained together.
configurations
- A list of configurations you apply to this configuration object.public Map<String,String> getProperties()
public void setProperties(Map<String,String> properties)
properties
- A set of properties supplied to the Configuration object.public Configuration withProperties(Map<String,String> properties)
Returns a reference to this object so that method calls can be chained together.
properties
- A set of properties supplied to the Configuration object.public Configuration addPropertiesEntry(String key, String value)
The method adds a new key-value pair into Properties parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Properties.value
- The corresponding value of the entry to be added into Properties.public Configuration clearPropertiesEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
public Configuration clone()
Copyright © 2015. All rights reserved.