Example usage for com.amazonaws.services.elasticmapreduce.model VolumeSpecification getVolumeType

List of usage examples for com.amazonaws.services.elasticmapreduce.model VolumeSpecification getVolumeType

Introduction

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

Prototype


public String getVolumeType() 

Source Link

Document

The volume type.

Usage

From source file:org.finra.herd.dao.helper.EmrHelper.java

License:Apache License

/**
 * Returns EmrClusterVolumeSpecification
 *
 * @param volumeSpecification AWS object
 *
 * @return EmrClusterVolumeSpecification
 *//*from   www.j  a v a 2  s . co  m*/
protected EmrClusterVolumeSpecification getVolumeSpecification(VolumeSpecification volumeSpecification) {
    EmrClusterVolumeSpecification emrClusterVolumeSpecification = null;

    if (volumeSpecification != null) {
        emrClusterVolumeSpecification = new EmrClusterVolumeSpecification();
        emrClusterVolumeSpecification.setVolumeType(volumeSpecification.getVolumeType());
        emrClusterVolumeSpecification.setIops(volumeSpecification.getIops());
        emrClusterVolumeSpecification.setSizeInGB(volumeSpecification.getSizeInGB());
    }

    return emrClusterVolumeSpecification;
}