Is it possible to create a plugin to conditionally disable a job

Is it possible to disable bamboo job conditionally in PreJobAction or PreChainAction ?

I could not find any related methods in StageExecution, BuildContext, ChainExecution, Chain classes