toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Dimension.az:
      return 'AZ';
    case Dimension.instanceType:
      return 'INSTANCE_TYPE';
    case Dimension.linkedAccount:
      return 'LINKED_ACCOUNT';
    case Dimension.linkedAccountName:
      return 'LINKED_ACCOUNT_NAME';
    case Dimension.operation:
      return 'OPERATION';
    case Dimension.purchaseType:
      return 'PURCHASE_TYPE';
    case Dimension.region:
      return 'REGION';
    case Dimension.service:
      return 'SERVICE';
    case Dimension.serviceCode:
      return 'SERVICE_CODE';
    case Dimension.usageType:
      return 'USAGE_TYPE';
    case Dimension.usageTypeGroup:
      return 'USAGE_TYPE_GROUP';
    case Dimension.recordType:
      return 'RECORD_TYPE';
    case Dimension.operatingSystem:
      return 'OPERATING_SYSTEM';
    case Dimension.tenancy:
      return 'TENANCY';
    case Dimension.scope:
      return 'SCOPE';
    case Dimension.platform:
      return 'PLATFORM';
    case Dimension.subscriptionId:
      return 'SUBSCRIPTION_ID';
    case Dimension.legalEntityName:
      return 'LEGAL_ENTITY_NAME';
    case Dimension.deploymentOption:
      return 'DEPLOYMENT_OPTION';
    case Dimension.databaseEngine:
      return 'DATABASE_ENGINE';
    case Dimension.cacheEngine:
      return 'CACHE_ENGINE';
    case Dimension.instanceTypeFamily:
      return 'INSTANCE_TYPE_FAMILY';
    case Dimension.billingEntity:
      return 'BILLING_ENTITY';
    case Dimension.reservationId:
      return 'RESERVATION_ID';
    case Dimension.resourceId:
      return 'RESOURCE_ID';
    case Dimension.rightsizingType:
      return 'RIGHTSIZING_TYPE';
    case Dimension.savingsPlansType:
      return 'SAVINGS_PLANS_TYPE';
    case Dimension.savingsPlanArn:
      return 'SAVINGS_PLAN_ARN';
    case Dimension.paymentOption:
      return 'PAYMENT_OPTION';
  }
}