toGameServerGroupInstanceType method

GameServerGroupInstanceType toGameServerGroupInstanceType()

Implementation

GameServerGroupInstanceType toGameServerGroupInstanceType() {
  switch (this) {
    case 'c4.large':
      return GameServerGroupInstanceType.c4Large;
    case 'c4.xlarge':
      return GameServerGroupInstanceType.c4Xlarge;
    case 'c4.2xlarge':
      return GameServerGroupInstanceType.c4_2xlarge;
    case 'c4.4xlarge':
      return GameServerGroupInstanceType.c4_4xlarge;
    case 'c4.8xlarge':
      return GameServerGroupInstanceType.c4_8xlarge;
    case 'c5.large':
      return GameServerGroupInstanceType.c5Large;
    case 'c5.xlarge':
      return GameServerGroupInstanceType.c5Xlarge;
    case 'c5.2xlarge':
      return GameServerGroupInstanceType.c5_2xlarge;
    case 'c5.4xlarge':
      return GameServerGroupInstanceType.c5_4xlarge;
    case 'c5.9xlarge':
      return GameServerGroupInstanceType.c5_9xlarge;
    case 'c5.12xlarge':
      return GameServerGroupInstanceType.c5_12xlarge;
    case 'c5.18xlarge':
      return GameServerGroupInstanceType.c5_18xlarge;
    case 'c5.24xlarge':
      return GameServerGroupInstanceType.c5_24xlarge;
    case 'r4.large':
      return GameServerGroupInstanceType.r4Large;
    case 'r4.xlarge':
      return GameServerGroupInstanceType.r4Xlarge;
    case 'r4.2xlarge':
      return GameServerGroupInstanceType.r4_2xlarge;
    case 'r4.4xlarge':
      return GameServerGroupInstanceType.r4_4xlarge;
    case 'r4.8xlarge':
      return GameServerGroupInstanceType.r4_8xlarge;
    case 'r4.16xlarge':
      return GameServerGroupInstanceType.r4_16xlarge;
    case 'r5.large':
      return GameServerGroupInstanceType.r5Large;
    case 'r5.xlarge':
      return GameServerGroupInstanceType.r5Xlarge;
    case 'r5.2xlarge':
      return GameServerGroupInstanceType.r5_2xlarge;
    case 'r5.4xlarge':
      return GameServerGroupInstanceType.r5_4xlarge;
    case 'r5.8xlarge':
      return GameServerGroupInstanceType.r5_8xlarge;
    case 'r5.12xlarge':
      return GameServerGroupInstanceType.r5_12xlarge;
    case 'r5.16xlarge':
      return GameServerGroupInstanceType.r5_16xlarge;
    case 'r5.24xlarge':
      return GameServerGroupInstanceType.r5_24xlarge;
    case 'm4.large':
      return GameServerGroupInstanceType.m4Large;
    case 'm4.xlarge':
      return GameServerGroupInstanceType.m4Xlarge;
    case 'm4.2xlarge':
      return GameServerGroupInstanceType.m4_2xlarge;
    case 'm4.4xlarge':
      return GameServerGroupInstanceType.m4_4xlarge;
    case 'm4.10xlarge':
      return GameServerGroupInstanceType.m4_10xlarge;
    case 'm5.large':
      return GameServerGroupInstanceType.m5Large;
    case 'm5.xlarge':
      return GameServerGroupInstanceType.m5Xlarge;
    case 'm5.2xlarge':
      return GameServerGroupInstanceType.m5_2xlarge;
    case 'm5.4xlarge':
      return GameServerGroupInstanceType.m5_4xlarge;
    case 'm5.8xlarge':
      return GameServerGroupInstanceType.m5_8xlarge;
    case 'm5.12xlarge':
      return GameServerGroupInstanceType.m5_12xlarge;
    case 'm5.16xlarge':
      return GameServerGroupInstanceType.m5_16xlarge;
    case 'm5.24xlarge':
      return GameServerGroupInstanceType.m5_24xlarge;
  }
  throw Exception('$this is not known in enum GameServerGroupInstanceType');
}