toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Runtime.nodejs:
      return 'nodejs';
    case Runtime.nodejs4_3:
      return 'nodejs4.3';
    case Runtime.nodejs6_10:
      return 'nodejs6.10';
    case Runtime.nodejs8_10:
      return 'nodejs8.10';
    case Runtime.nodejs10X:
      return 'nodejs10.x';
    case Runtime.nodejs12X:
      return 'nodejs12.x';
    case Runtime.java8:
      return 'java8';
    case Runtime.java8Al2:
      return 'java8.al2';
    case Runtime.java11:
      return 'java11';
    case Runtime.python2_7:
      return 'python2.7';
    case Runtime.python3_6:
      return 'python3.6';
    case Runtime.python3_7:
      return 'python3.7';
    case Runtime.python3_8:
      return 'python3.8';
    case Runtime.dotnetcore1_0:
      return 'dotnetcore1.0';
    case Runtime.dotnetcore2_0:
      return 'dotnetcore2.0';
    case Runtime.dotnetcore2_1:
      return 'dotnetcore2.1';
    case Runtime.dotnetcore3_1:
      return 'dotnetcore3.1';
    case Runtime.nodejs4_3Edge:
      return 'nodejs4.3-edge';
    case Runtime.go1X:
      return 'go1.x';
    case Runtime.ruby2_5:
      return 'ruby2.5';
    case Runtime.ruby2_7:
      return 'ruby2.7';
    case Runtime.provided:
      return 'provided';
    case Runtime.providedAl2:
      return 'provided.al2';
  }
}