private void mapDiskType(DiskState diskState,Volume volume){
  String volumeType=volume.getVolumeType();
  if (volumeType.equalsIgnoreCase(VOLUME_TYPE_GENERAL_PURPOSED_SSD) || (volumeType.equalsIgnoreCase(VOLUME_TYPE_PROVISIONED_SSD))) {
    diskState.type=DiskType.SSD;
  }
 else   if (volumeType.equalsIgnoreCase(VOLUME_TYPE_MAGNETIC)) {
    diskState.type=DiskType.HDD;
  }
}

private void mapDiskType ( DiskState diskState , Volume volume ) { String volumeType = volume . getVolumeType ( ) ; if ( volumeType . equalsIgnoreCase ( VOLUME_TYPE_GENERAL_PURPOSED_SSD ) || ( volumeType . equalsIgnoreCase ( VOLUME_TYPE_PROVISIONED_SSD ) ) ) { diskState . type = DiskType . SSD ; } else if ( volumeType . equalsIgnoreCase ( VOLUME_TYPE_MAGNETIC ) ) { diskState . type = DiskType . HDD ; } }
the disk types available on aws include - gp2 = general purpose ssd - io1 = provisioned ssd - standard = magnetic disk these are mapped to ssd or hdd in the local system .
