Allow use enum type name while creating ArtifactBuild
This allows creating/updating ArtifactBuild with ArtifactType.(type) and
ArtifactBuildState.(state), it previously requires us to do that with
ArtifactType.(type).value and ArtifactBuildState.(state).value.