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:
  • Constructor Details

    • Configuration

      public Configuration()
  • Method Details

    • 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) or withConfigurations(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Configuration clone()
      Overrides:
      clone in class Object