toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ResourceAttributeType.ipv4Address:
      return 'IPV4_ADDRESS';
    case ResourceAttributeType.ipv6Address:
      return 'IPV6_ADDRESS';
    case ResourceAttributeType.macAddress:
      return 'MAC_ADDRESS';
    case ResourceAttributeType.fqdn:
      return 'FQDN';
    case ResourceAttributeType.vmManagerId:
      return 'VM_MANAGER_ID';
    case ResourceAttributeType.vmManagedObjectReference:
      return 'VM_MANAGED_OBJECT_REFERENCE';
    case ResourceAttributeType.vmName:
      return 'VM_NAME';
    case ResourceAttributeType.vmPath:
      return 'VM_PATH';
    case ResourceAttributeType.biosId:
      return 'BIOS_ID';
    case ResourceAttributeType.motherboardSerialNumber:
      return 'MOTHERBOARD_SERIAL_NUMBER';
  }
}