toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ESPartitionInstanceType.m3MediumElasticsearch:
      return 'm3.medium.elasticsearch';
    case ESPartitionInstanceType.m3LargeElasticsearch:
      return 'm3.large.elasticsearch';
    case ESPartitionInstanceType.m3XlargeElasticsearch:
      return 'm3.xlarge.elasticsearch';
    case ESPartitionInstanceType.m3_2xlargeElasticsearch:
      return 'm3.2xlarge.elasticsearch';
    case ESPartitionInstanceType.m4LargeElasticsearch:
      return 'm4.large.elasticsearch';
    case ESPartitionInstanceType.m4XlargeElasticsearch:
      return 'm4.xlarge.elasticsearch';
    case ESPartitionInstanceType.m4_2xlargeElasticsearch:
      return 'm4.2xlarge.elasticsearch';
    case ESPartitionInstanceType.m4_4xlargeElasticsearch:
      return 'm4.4xlarge.elasticsearch';
    case ESPartitionInstanceType.m4_10xlargeElasticsearch:
      return 'm4.10xlarge.elasticsearch';
    case ESPartitionInstanceType.m5LargeElasticsearch:
      return 'm5.large.elasticsearch';
    case ESPartitionInstanceType.m5XlargeElasticsearch:
      return 'm5.xlarge.elasticsearch';
    case ESPartitionInstanceType.m5_2xlargeElasticsearch:
      return 'm5.2xlarge.elasticsearch';
    case ESPartitionInstanceType.m5_4xlargeElasticsearch:
      return 'm5.4xlarge.elasticsearch';
    case ESPartitionInstanceType.m5_12xlargeElasticsearch:
      return 'm5.12xlarge.elasticsearch';
    case ESPartitionInstanceType.r5LargeElasticsearch:
      return 'r5.large.elasticsearch';
    case ESPartitionInstanceType.r5XlargeElasticsearch:
      return 'r5.xlarge.elasticsearch';
    case ESPartitionInstanceType.r5_2xlargeElasticsearch:
      return 'r5.2xlarge.elasticsearch';
    case ESPartitionInstanceType.r5_4xlargeElasticsearch:
      return 'r5.4xlarge.elasticsearch';
    case ESPartitionInstanceType.r5_12xlargeElasticsearch:
      return 'r5.12xlarge.elasticsearch';
    case ESPartitionInstanceType.c5LargeElasticsearch:
      return 'c5.large.elasticsearch';
    case ESPartitionInstanceType.c5XlargeElasticsearch:
      return 'c5.xlarge.elasticsearch';
    case ESPartitionInstanceType.c5_2xlargeElasticsearch:
      return 'c5.2xlarge.elasticsearch';
    case ESPartitionInstanceType.c5_4xlargeElasticsearch:
      return 'c5.4xlarge.elasticsearch';
    case ESPartitionInstanceType.c5_9xlargeElasticsearch:
      return 'c5.9xlarge.elasticsearch';
    case ESPartitionInstanceType.c5_18xlargeElasticsearch:
      return 'c5.18xlarge.elasticsearch';
    case ESPartitionInstanceType.ultrawarm1MediumElasticsearch:
      return 'ultrawarm1.medium.elasticsearch';
    case ESPartitionInstanceType.ultrawarm1LargeElasticsearch:
      return 'ultrawarm1.large.elasticsearch';
    case ESPartitionInstanceType.t2MicroElasticsearch:
      return 't2.micro.elasticsearch';
    case ESPartitionInstanceType.t2SmallElasticsearch:
      return 't2.small.elasticsearch';
    case ESPartitionInstanceType.t2MediumElasticsearch:
      return 't2.medium.elasticsearch';
    case ESPartitionInstanceType.r3LargeElasticsearch:
      return 'r3.large.elasticsearch';
    case ESPartitionInstanceType.r3XlargeElasticsearch:
      return 'r3.xlarge.elasticsearch';
    case ESPartitionInstanceType.r3_2xlargeElasticsearch:
      return 'r3.2xlarge.elasticsearch';
    case ESPartitionInstanceType.r3_4xlargeElasticsearch:
      return 'r3.4xlarge.elasticsearch';
    case ESPartitionInstanceType.r3_8xlargeElasticsearch:
      return 'r3.8xlarge.elasticsearch';
    case ESPartitionInstanceType.i2XlargeElasticsearch:
      return 'i2.xlarge.elasticsearch';
    case ESPartitionInstanceType.i2_2xlargeElasticsearch:
      return 'i2.2xlarge.elasticsearch';
    case ESPartitionInstanceType.d2XlargeElasticsearch:
      return 'd2.xlarge.elasticsearch';
    case ESPartitionInstanceType.d2_2xlargeElasticsearch:
      return 'd2.2xlarge.elasticsearch';
    case ESPartitionInstanceType.d2_4xlargeElasticsearch:
      return 'd2.4xlarge.elasticsearch';
    case ESPartitionInstanceType.d2_8xlargeElasticsearch:
      return 'd2.8xlarge.elasticsearch';
    case ESPartitionInstanceType.c4LargeElasticsearch:
      return 'c4.large.elasticsearch';
    case ESPartitionInstanceType.c4XlargeElasticsearch:
      return 'c4.xlarge.elasticsearch';
    case ESPartitionInstanceType.c4_2xlargeElasticsearch:
      return 'c4.2xlarge.elasticsearch';
    case ESPartitionInstanceType.c4_4xlargeElasticsearch:
      return 'c4.4xlarge.elasticsearch';
    case ESPartitionInstanceType.c4_8xlargeElasticsearch:
      return 'c4.8xlarge.elasticsearch';
    case ESPartitionInstanceType.r4LargeElasticsearch:
      return 'r4.large.elasticsearch';
    case ESPartitionInstanceType.r4XlargeElasticsearch:
      return 'r4.xlarge.elasticsearch';
    case ESPartitionInstanceType.r4_2xlargeElasticsearch:
      return 'r4.2xlarge.elasticsearch';
    case ESPartitionInstanceType.r4_4xlargeElasticsearch:
      return 'r4.4xlarge.elasticsearch';
    case ESPartitionInstanceType.r4_8xlargeElasticsearch:
      return 'r4.8xlarge.elasticsearch';
    case ESPartitionInstanceType.r4_16xlargeElasticsearch:
      return 'r4.16xlarge.elasticsearch';
    case ESPartitionInstanceType.i3LargeElasticsearch:
      return 'i3.large.elasticsearch';
    case ESPartitionInstanceType.i3XlargeElasticsearch:
      return 'i3.xlarge.elasticsearch';
    case ESPartitionInstanceType.i3_2xlargeElasticsearch:
      return 'i3.2xlarge.elasticsearch';
    case ESPartitionInstanceType.i3_4xlargeElasticsearch:
      return 'i3.4xlarge.elasticsearch';
    case ESPartitionInstanceType.i3_8xlargeElasticsearch:
      return 'i3.8xlarge.elasticsearch';
    case ESPartitionInstanceType.i3_16xlargeElasticsearch:
      return 'i3.16xlarge.elasticsearch';
  }
}