Example usage for com.amazonaws.services.elasticmapreduce.model Application setVersion

List of usage examples for com.amazonaws.services.elasticmapreduce.model Application setVersion

Introduction

In this page you can find the example usage for com.amazonaws.services.elasticmapreduce.model Application setVersion.

Prototype


public void setVersion(String version) 

Source Link

Document

The version of the application.

Usage

From source file:org.finra.dm.dao.impl.EmrDaoImpl.java

License:Apache License

/**
 * Converts the given list of {@link EmrClusterDefinitionApplication} into a list of {@link Application}
 * // w w  w.  ja v  a  2  s  .  co m
 * @param emrClusterDefinitionApplications list of {@link EmrClusterDefinitionApplication}
 * @return list {@link Application}
 */
public List<Application> getApplications(
        List<EmrClusterDefinitionApplication> emrClusterDefinitionApplications) {
    List<Application> applications = new ArrayList<>();
    for (EmrClusterDefinitionApplication emrClusterDefinitionApplication : emrClusterDefinitionApplications) {
        Application application = new Application();
        application.setName(emrClusterDefinitionApplication.getName());
        application.setVersion(emrClusterDefinitionApplication.getVersion());
        application.setArgs(emrClusterDefinitionApplication.getArgs());

        List<Parameter> additionalInfoList = emrClusterDefinitionApplication.getAdditionalInfoList();
        if (!CollectionUtils.isEmpty(additionalInfoList)) {
            application.setAdditionalInfo(getMap(additionalInfoList));
        }

        applications.add(application);
    }
    return applications;
}