@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Application extends Object implements Serializable, Cloneable, StructuredPojo
An application is any Amazon or third-party software that you can add to the cluster. This structure contains a list of strings that indicates the software to use with the cluster and accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action argument. For more information, see Using the MapR Distribution for Hadoop. Currently supported values are:
"mapr-m3" - launch the cluster using MapR M3 Edition.
"mapr-m5" - launch the cluster using MapR M5 Edition.
"mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the cluster using MapR M3 or M5 Edition, respectively.
In Amazon EMR releases 4.x and later, the only accepted parameter is the application name. To pass arguments to applications, you supply a configuration for each application.
Constructor and Description |
---|
Application() |
Modifier and Type | Method and Description |
---|---|
Application |
addAdditionalInfoEntry(String key,
String value) |
Application |
clearAdditionalInfoEntries()
Removes all the entries added into AdditionalInfo.
|
Application |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAdditionalInfo()
This option is for advanced users only.
|
List<String> |
getArgs()
Arguments for Amazon EMR to pass to the application.
|
String |
getName()
The name of the application.
|
String |
getVersion()
The version of the application.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalInfo(Map<String,String> additionalInfo)
This option is for advanced users only.
|
void |
setArgs(Collection<String> args)
Arguments for Amazon EMR to pass to the application.
|
void |
setName(String name)
The name of the application.
|
void |
setVersion(String version)
The version of the application.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Application |
withAdditionalInfo(Map<String,String> additionalInfo)
This option is for advanced users only.
|
Application |
withArgs(Collection<String> args)
Arguments for Amazon EMR to pass to the application.
|
Application |
withArgs(String... args)
Arguments for Amazon EMR to pass to the application.
|
Application |
withName(String name)
The name of the application.
|
Application |
withVersion(String version)
The version of the application.
|
public void setName(String name)
The name of the application.
name
- The name of the application.public String getName()
The name of the application.
public Application withName(String name)
The name of the application.
name
- The name of the application.public void setVersion(String version)
The version of the application.
version
- The version of the application.public String getVersion()
The version of the application.
public Application withVersion(String version)
The version of the application.
version
- The version of the application.public List<String> getArgs()
Arguments for Amazon EMR to pass to the application.
public void setArgs(Collection<String> args)
Arguments for Amazon EMR to pass to the application.
args
- Arguments for Amazon EMR to pass to the application.public Application withArgs(String... args)
Arguments for Amazon EMR to pass to the application.
NOTE: This method appends the values to the existing list (if any). Use
setArgs(java.util.Collection)
or withArgs(java.util.Collection)
if you want to override the
existing values.
args
- Arguments for Amazon EMR to pass to the application.public Application withArgs(Collection<String> args)
Arguments for Amazon EMR to pass to the application.
args
- Arguments for Amazon EMR to pass to the application.public Map<String,String> getAdditionalInfo()
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
public void setAdditionalInfo(Map<String,String> additionalInfo)
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
additionalInfo
- This option is for advanced users only. This is meta information about third-party applications that
third-party vendors use for testing purposes.public Application withAdditionalInfo(Map<String,String> additionalInfo)
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
additionalInfo
- This option is for advanced users only. This is meta information about third-party applications that
third-party vendors use for testing purposes.public Application addAdditionalInfoEntry(String key, String value)
public Application clearAdditionalInfoEntries()
public String toString()
toString
in class Object
Object.toString()
public Application clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.