com.amazonaws.services.elasticmapreduce.model
Class Application

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.Application
All Implemented Interfaces:
Serializable

public class Application
extends Object
implements Serializable

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 Launch a Job Flow on the MapR Distribution for Hadoop . Currently supported values are:

See Also:
Serialized Form

Constructor Summary
Application()
           
 
Method Summary
 Application addAdditionalInfoEntry(String key, String value)
          This option is for advanced users only.
 Application clearAdditionalInfoEntries()
          Removes all the entries added into AdditionalInfo.
 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 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Application

public Application()
Method Detail

getName

public String getName()
The name of the application.

Returns:
The name of the application.

setName

public void setName(String name)
The name of the application.

Parameters:
name - The name of the application.

withName

public Application withName(String name)
The name of the application.

Returns a reference to this object so that method calls can be chained together.

Parameters:
name - The name of the application.
Returns:
A reference to this updated object so that method calls can be chained together.

getVersion

public String getVersion()
The version of the application.

Returns:
The version of the application.

setVersion

public void setVersion(String version)
The version of the application.

Parameters:
version - The version of the application.

withVersion

public Application withVersion(String version)
The version of the application.

Returns a reference to this object so that method calls can be chained together.

Parameters:
version - The version of the application.
Returns:
A reference to this updated object so that method calls can be chained together.

getArgs

public List<String> getArgs()
Arguments for Amazon EMR to pass to the application.

Returns:
Arguments for Amazon EMR to pass to the application.

setArgs

public void setArgs(Collection<String> args)
Arguments for Amazon EMR to pass to the application.

Parameters:
args - Arguments for Amazon EMR to pass to the application.

withArgs

public Application withArgs(String... args)
Arguments for Amazon EMR to pass to the application.

Returns a reference to this object so that method calls can be chained together.

Parameters:
args - Arguments for Amazon EMR to pass to the application.
Returns:
A reference to this updated object so that method calls can be chained together.

withArgs

public Application withArgs(Collection<String> args)
Arguments for Amazon EMR to pass to the application.

Returns a reference to this object so that method calls can be chained together.

Parameters:
args - Arguments for Amazon EMR to pass to the application.
Returns:
A reference to this updated object so that method calls can be chained together.

getAdditionalInfo

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.

Returns:
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.

setAdditionalInfo

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.

Parameters:
additionalInfo - This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.

withAdditionalInfo

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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
additionalInfo - This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
Returns:
A reference to this updated object so that method calls can be chained together.

addAdditionalInfoEntry

public Application addAdditionalInfoEntry(String key,
                                          String value)
This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.

The method adds a new key-value pair into AdditionalInfo parameter, and returns a reference to this object so that method calls can be chained together.

Parameters:
key - The key of the entry to be added into AdditionalInfo.
value - The corresponding value of the entry to be added into AdditionalInfo.

clearAdditionalInfoEntries

public Application clearAdditionalInfoEntries()
Removes all the entries added into AdditionalInfo.

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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2016. All rights reserved.