toInstancesHealthAttribute method
Implementation
InstancesHealthAttribute toInstancesHealthAttribute() {
switch (this) {
case 'HealthStatus':
return InstancesHealthAttribute.healthStatus;
case 'Color':
return InstancesHealthAttribute.color;
case 'Causes':
return InstancesHealthAttribute.causes;
case 'ApplicationMetrics':
return InstancesHealthAttribute.applicationMetrics;
case 'RefreshedAt':
return InstancesHealthAttribute.refreshedAt;
case 'LaunchedAt':
return InstancesHealthAttribute.launchedAt;
case 'System':
return InstancesHealthAttribute.system;
case 'Deployment':
return InstancesHealthAttribute.deployment;
case 'AvailabilityZone':
return InstancesHealthAttribute.availabilityZone;
case 'InstanceType':
return InstancesHealthAttribute.instanceType;
case 'All':
return InstancesHealthAttribute.all;
}
throw Exception('$this is not known in enum InstancesHealthAttribute');
}