Class Configuration
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.Configuration
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Configuration... configurations)
A list of configurations you apply to this configuration object.Configuration
withConfigurations(Collection<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.
-
-
-
Method Detail
-
setClassification
public void setClassification(String classification)
The classification of a configuration. For more information see, Amazon EMR Configurations.
- Parameters:
classification
- The classification of a configuration. For more information see, Amazon EMR Configurations.
-
getClassification
public String getClassification()
The classification of a configuration. For more information see, Amazon EMR Configurations.
- Returns:
- The classification of a configuration. For more information see, Amazon EMR Configurations.
-
withClassification
public Configuration withClassification(String classification)
The classification of a configuration. For more information see, Amazon EMR Configurations.
- Parameters:
classification
- The classification of a configuration. For more information see, Amazon EMR Configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getConfigurations
public List<Configuration> getConfigurations()
A list of configurations you apply to this configuration object.
- Returns:
- A list of configurations you apply to this configuration object.
-
setConfigurations
public void setConfigurations(Collection<Configuration> configurations)
A list of configurations you apply to this configuration object.
- Parameters:
configurations
- A list of configurations you apply to this configuration object.
-
withConfigurations
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)
orwithConfigurations(java.util.Collection)
if you want to override the existing values.- Parameters:
configurations
- A list of configurations you apply to this configuration object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withConfigurations
public Configuration withConfigurations(Collection<Configuration> configurations)
A list of configurations you apply to this configuration object.
- Parameters:
configurations
- A list of configurations you apply to this configuration object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getProperties
public Map<String,String> getProperties()
A set of properties supplied to the Configuration object.
- Returns:
- A set of properties supplied to the Configuration object.
-
setProperties
public void setProperties(Map<String,String> properties)
A set of properties supplied to the Configuration object.
- Parameters:
properties
- A set of properties supplied to the Configuration object.
-
withProperties
public Configuration withProperties(Map<String,String> properties)
A set of properties supplied to the Configuration object.
- Parameters:
properties
- A set of properties supplied to the Configuration object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addPropertiesEntry
public Configuration addPropertiesEntry(String key, String value)
-
clearPropertiesEntries
public Configuration clearPropertiesEntries()
Removes all the entries added into Properties. <p> 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Configuration clone()
-
-