toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case HostEnvironment.vmware:
      return 'VMWARE';
    case HostEnvironment.hyperV:
      return 'HYPER-V';
    case HostEnvironment.ec2:
      return 'EC2';
    case HostEnvironment.kvm:
      return 'KVM';
    case HostEnvironment.other:
      return 'OTHER';
  }
}