toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OpenSearchPartitionInstanceType.m3MediumSearch:
      return 'm3.medium.search';
    case OpenSearchPartitionInstanceType.m3LargeSearch:
      return 'm3.large.search';
    case OpenSearchPartitionInstanceType.m3XlargeSearch:
      return 'm3.xlarge.search';
    case OpenSearchPartitionInstanceType.m3_2xlargeSearch:
      return 'm3.2xlarge.search';
    case OpenSearchPartitionInstanceType.m4LargeSearch:
      return 'm4.large.search';
    case OpenSearchPartitionInstanceType.m4XlargeSearch:
      return 'm4.xlarge.search';
    case OpenSearchPartitionInstanceType.m4_2xlargeSearch:
      return 'm4.2xlarge.search';
    case OpenSearchPartitionInstanceType.m4_4xlargeSearch:
      return 'm4.4xlarge.search';
    case OpenSearchPartitionInstanceType.m4_10xlargeSearch:
      return 'm4.10xlarge.search';
    case OpenSearchPartitionInstanceType.m5LargeSearch:
      return 'm5.large.search';
    case OpenSearchPartitionInstanceType.m5XlargeSearch:
      return 'm5.xlarge.search';
    case OpenSearchPartitionInstanceType.m5_2xlargeSearch:
      return 'm5.2xlarge.search';
    case OpenSearchPartitionInstanceType.m5_4xlargeSearch:
      return 'm5.4xlarge.search';
    case OpenSearchPartitionInstanceType.m5_12xlargeSearch:
      return 'm5.12xlarge.search';
    case OpenSearchPartitionInstanceType.m5_24xlargeSearch:
      return 'm5.24xlarge.search';
    case OpenSearchPartitionInstanceType.r5LargeSearch:
      return 'r5.large.search';
    case OpenSearchPartitionInstanceType.r5XlargeSearch:
      return 'r5.xlarge.search';
    case OpenSearchPartitionInstanceType.r5_2xlargeSearch:
      return 'r5.2xlarge.search';
    case OpenSearchPartitionInstanceType.r5_4xlargeSearch:
      return 'r5.4xlarge.search';
    case OpenSearchPartitionInstanceType.r5_12xlargeSearch:
      return 'r5.12xlarge.search';
    case OpenSearchPartitionInstanceType.r5_24xlargeSearch:
      return 'r5.24xlarge.search';
    case OpenSearchPartitionInstanceType.c5LargeSearch:
      return 'c5.large.search';
    case OpenSearchPartitionInstanceType.c5XlargeSearch:
      return 'c5.xlarge.search';
    case OpenSearchPartitionInstanceType.c5_2xlargeSearch:
      return 'c5.2xlarge.search';
    case OpenSearchPartitionInstanceType.c5_4xlargeSearch:
      return 'c5.4xlarge.search';
    case OpenSearchPartitionInstanceType.c5_9xlargeSearch:
      return 'c5.9xlarge.search';
    case OpenSearchPartitionInstanceType.c5_18xlargeSearch:
      return 'c5.18xlarge.search';
    case OpenSearchPartitionInstanceType.t3NanoSearch:
      return 't3.nano.search';
    case OpenSearchPartitionInstanceType.t3MicroSearch:
      return 't3.micro.search';
    case OpenSearchPartitionInstanceType.t3SmallSearch:
      return 't3.small.search';
    case OpenSearchPartitionInstanceType.t3MediumSearch:
      return 't3.medium.search';
    case OpenSearchPartitionInstanceType.t3LargeSearch:
      return 't3.large.search';
    case OpenSearchPartitionInstanceType.t3XlargeSearch:
      return 't3.xlarge.search';
    case OpenSearchPartitionInstanceType.t3_2xlargeSearch:
      return 't3.2xlarge.search';
    case OpenSearchPartitionInstanceType.ultrawarm1MediumSearch:
      return 'ultrawarm1.medium.search';
    case OpenSearchPartitionInstanceType.ultrawarm1LargeSearch:
      return 'ultrawarm1.large.search';
    case OpenSearchPartitionInstanceType.ultrawarm1XlargeSearch:
      return 'ultrawarm1.xlarge.search';
    case OpenSearchPartitionInstanceType.t2MicroSearch:
      return 't2.micro.search';
    case OpenSearchPartitionInstanceType.t2SmallSearch:
      return 't2.small.search';
    case OpenSearchPartitionInstanceType.t2MediumSearch:
      return 't2.medium.search';
    case OpenSearchPartitionInstanceType.r3LargeSearch:
      return 'r3.large.search';
    case OpenSearchPartitionInstanceType.r3XlargeSearch:
      return 'r3.xlarge.search';
    case OpenSearchPartitionInstanceType.r3_2xlargeSearch:
      return 'r3.2xlarge.search';
    case OpenSearchPartitionInstanceType.r3_4xlargeSearch:
      return 'r3.4xlarge.search';
    case OpenSearchPartitionInstanceType.r3_8xlargeSearch:
      return 'r3.8xlarge.search';
    case OpenSearchPartitionInstanceType.i2XlargeSearch:
      return 'i2.xlarge.search';
    case OpenSearchPartitionInstanceType.i2_2xlargeSearch:
      return 'i2.2xlarge.search';
    case OpenSearchPartitionInstanceType.d2XlargeSearch:
      return 'd2.xlarge.search';
    case OpenSearchPartitionInstanceType.d2_2xlargeSearch:
      return 'd2.2xlarge.search';
    case OpenSearchPartitionInstanceType.d2_4xlargeSearch:
      return 'd2.4xlarge.search';
    case OpenSearchPartitionInstanceType.d2_8xlargeSearch:
      return 'd2.8xlarge.search';
    case OpenSearchPartitionInstanceType.c4LargeSearch:
      return 'c4.large.search';
    case OpenSearchPartitionInstanceType.c4XlargeSearch:
      return 'c4.xlarge.search';
    case OpenSearchPartitionInstanceType.c4_2xlargeSearch:
      return 'c4.2xlarge.search';
    case OpenSearchPartitionInstanceType.c4_4xlargeSearch:
      return 'c4.4xlarge.search';
    case OpenSearchPartitionInstanceType.c4_8xlargeSearch:
      return 'c4.8xlarge.search';
    case OpenSearchPartitionInstanceType.r4LargeSearch:
      return 'r4.large.search';
    case OpenSearchPartitionInstanceType.r4XlargeSearch:
      return 'r4.xlarge.search';
    case OpenSearchPartitionInstanceType.r4_2xlargeSearch:
      return 'r4.2xlarge.search';
    case OpenSearchPartitionInstanceType.r4_4xlargeSearch:
      return 'r4.4xlarge.search';
    case OpenSearchPartitionInstanceType.r4_8xlargeSearch:
      return 'r4.8xlarge.search';
    case OpenSearchPartitionInstanceType.r4_16xlargeSearch:
      return 'r4.16xlarge.search';
    case OpenSearchPartitionInstanceType.i3LargeSearch:
      return 'i3.large.search';
    case OpenSearchPartitionInstanceType.i3XlargeSearch:
      return 'i3.xlarge.search';
    case OpenSearchPartitionInstanceType.i3_2xlargeSearch:
      return 'i3.2xlarge.search';
    case OpenSearchPartitionInstanceType.i3_4xlargeSearch:
      return 'i3.4xlarge.search';
    case OpenSearchPartitionInstanceType.i3_8xlargeSearch:
      return 'i3.8xlarge.search';
    case OpenSearchPartitionInstanceType.i3_16xlargeSearch:
      return 'i3.16xlarge.search';
    case OpenSearchPartitionInstanceType.r6gLargeSearch:
      return 'r6g.large.search';
    case OpenSearchPartitionInstanceType.r6gXlargeSearch:
      return 'r6g.xlarge.search';
    case OpenSearchPartitionInstanceType.r6g_2xlargeSearch:
      return 'r6g.2xlarge.search';
    case OpenSearchPartitionInstanceType.r6g_4xlargeSearch:
      return 'r6g.4xlarge.search';
    case OpenSearchPartitionInstanceType.r6g_8xlargeSearch:
      return 'r6g.8xlarge.search';
    case OpenSearchPartitionInstanceType.r6g_12xlargeSearch:
      return 'r6g.12xlarge.search';
    case OpenSearchPartitionInstanceType.m6gLargeSearch:
      return 'm6g.large.search';
    case OpenSearchPartitionInstanceType.m6gXlargeSearch:
      return 'm6g.xlarge.search';
    case OpenSearchPartitionInstanceType.m6g_2xlargeSearch:
      return 'm6g.2xlarge.search';
    case OpenSearchPartitionInstanceType.m6g_4xlargeSearch:
      return 'm6g.4xlarge.search';
    case OpenSearchPartitionInstanceType.m6g_8xlargeSearch:
      return 'm6g.8xlarge.search';
    case OpenSearchPartitionInstanceType.m6g_12xlargeSearch:
      return 'm6g.12xlarge.search';
    case OpenSearchPartitionInstanceType.c6gLargeSearch:
      return 'c6g.large.search';
    case OpenSearchPartitionInstanceType.c6gXlargeSearch:
      return 'c6g.xlarge.search';
    case OpenSearchPartitionInstanceType.c6g_2xlargeSearch:
      return 'c6g.2xlarge.search';
    case OpenSearchPartitionInstanceType.c6g_4xlargeSearch:
      return 'c6g.4xlarge.search';
    case OpenSearchPartitionInstanceType.c6g_8xlargeSearch:
      return 'c6g.8xlarge.search';
    case OpenSearchPartitionInstanceType.c6g_12xlargeSearch:
      return 'c6g.12xlarge.search';
    case OpenSearchPartitionInstanceType.r6gdLargeSearch:
      return 'r6gd.large.search';
    case OpenSearchPartitionInstanceType.r6gdXlargeSearch:
      return 'r6gd.xlarge.search';
    case OpenSearchPartitionInstanceType.r6gd_2xlargeSearch:
      return 'r6gd.2xlarge.search';
    case OpenSearchPartitionInstanceType.r6gd_4xlargeSearch:
      return 'r6gd.4xlarge.search';
    case OpenSearchPartitionInstanceType.r6gd_8xlargeSearch:
      return 'r6gd.8xlarge.search';
    case OpenSearchPartitionInstanceType.r6gd_12xlargeSearch:
      return 'r6gd.12xlarge.search';
    case OpenSearchPartitionInstanceType.r6gd_16xlargeSearch:
      return 'r6gd.16xlarge.search';
    case OpenSearchPartitionInstanceType.t4gSmallSearch:
      return 't4g.small.search';
    case OpenSearchPartitionInstanceType.t4gMediumSearch:
      return 't4g.medium.search';
  }
}