toIpAddressStatus method
Implementation
IpAddressStatus toIpAddressStatus() {
switch (this) {
case 'CREATING':
return IpAddressStatus.creating;
case 'FAILED_CREATION':
return IpAddressStatus.failedCreation;
case 'ATTACHING':
return IpAddressStatus.attaching;
case 'ATTACHED':
return IpAddressStatus.attached;
case 'REMAP_DETACHING':
return IpAddressStatus.remapDetaching;
case 'REMAP_ATTACHING':
return IpAddressStatus.remapAttaching;
case 'DETACHING':
return IpAddressStatus.detaching;
case 'FAILED_RESOURCE_GONE':
return IpAddressStatus.failedResourceGone;
case 'DELETING':
return IpAddressStatus.deleting;
case 'DELETE_FAILED_FAS_EXPIRED':
return IpAddressStatus.deleteFailedFasExpired;
}
throw Exception('$this is not known in enum IpAddressStatus');
}