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

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

Introduction

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

Prototype


public Integer getSizeInGB() 

Source Link

Document

The volume size, in gibibytes (GiB).

Usage

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

License:Apache License

/**
 * Returns EmrClusterVolumeSpecification
 *
 * @param volumeSpecification AWS object
 *
 * @return EmrClusterVolumeSpecification
 *//*from  w w w .jav a2 s  . com*/
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;
}