toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OperatingSystem.windows_2012:
      return 'WINDOWS_2012';
    case OperatingSystem.amazonLinux:
      return 'AMAZON_LINUX';
    case OperatingSystem.amazonLinux_2:
      return 'AMAZON_LINUX_2';
  }
}