toStateReasonCode method
Implementation
StateReasonCode toStateReasonCode() {
switch (this) {
case 'Idle':
return StateReasonCode.idle;
case 'Creating':
return StateReasonCode.creating;
case 'Restoring':
return StateReasonCode.restoring;
case 'EniLimitExceeded':
return StateReasonCode.eniLimitExceeded;
case 'InsufficientRolePermissions':
return StateReasonCode.insufficientRolePermissions;
case 'InvalidConfiguration':
return StateReasonCode.invalidConfiguration;
case 'InternalError':
return StateReasonCode.internalError;
case 'SubnetOutOfIPAddresses':
return StateReasonCode.subnetOutOfIPAddresses;
case 'InvalidSubnet':
return StateReasonCode.invalidSubnet;
case 'InvalidSecurityGroup':
return StateReasonCode.invalidSecurityGroup;
case 'ImageDeleted':
return StateReasonCode.imageDeleted;
case 'ImageAccessDenied':
return StateReasonCode.imageAccessDenied;
case 'InvalidImage':
return StateReasonCode.invalidImage;
}
throw Exception('$this is not known in enum StateReasonCode');
}