@Generated(value="software.amazon.awssdk:codegen") public final class Configuration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Configuration.Builder,Configuration>
Amazon EMR releases 4.x or later.
An optional configuration specification to be used when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR. A configuration consists of a classification, properties, and optional nested configurations. A classification refers to an application-specific configuration file. Properties are the settings you want to change in that file. For more information, see Configuring Applications.
Modifier and Type | Class and Description |
---|---|
static interface |
Configuration.Builder |
Modifier and Type | Method and Description |
---|---|
static Configuration.Builder |
builder() |
String |
classification()
The classification within a configuration.
|
List<Configuration> |
configurations()
A list of additional configurations to apply within a configuration object.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasConfigurations()
Returns true if the Configurations property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasProperties()
Returns true if the Properties property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
Map<String,String> |
properties()
A set of properties specified within a configuration classification.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Configuration.Builder> |
serializableBuilderClass() |
Configuration.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String classification()
The classification within a configuration.
public final boolean hasConfigurations()
public final List<Configuration> configurations()
A list of additional configurations to apply within a configuration object.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasConfigurations()
to see if a value was sent in this field.
public final boolean hasProperties()
public final Map<String,String> properties()
A set of properties specified within a configuration classification.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasProperties()
to see if a value was sent in this field.
public Configuration.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Configuration.Builder,Configuration>
public static Configuration.Builder builder()
public static Class<? extends Configuration.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()