Class Configuration
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPropertiesEntry
(String key, String value) Removes all the entries added into Properties.clone()
boolean
The classification of a configuration.A list of configurations you apply to this configuration object.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.toString()
Returns a string representation of this object; useful for testing and debugging.withClassification
(String classification) The classification of a configuration.withConfigurations
(Configuration... configurations) A list of configurations you apply to this configuration object.withConfigurations
(Collection<Configuration> configurations) A list of configurations you apply to this configuration object.withProperties
(Map<String, String> properties) A set of properties supplied to the Configuration object.
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
setClassification
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
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
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
A list of configurations you apply to this configuration object.
- Returns:
- A list of configurations you apply to this configuration object.
-
setConfigurations
A list of configurations you apply to this configuration object.
- Parameters:
configurations
- A list of configurations you apply to this configuration object.
-
withConfigurations
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
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
A set of properties supplied to the Configuration object.
- Returns:
- A set of properties supplied to the Configuration object.
-
setProperties
A set of properties supplied to the Configuration object.
- Parameters:
properties
- A set of properties supplied to the Configuration object.
-
withProperties
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
-
clearPropertiesEntries
Removes all the entries added into Properties. <p> Returns a reference to this object so that method calls can be chained together. -
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-