Is it possible to apply these effects simultaneously?

Like the attached image, there is a gradient effect and a shadow effect. In the shadow effect, this shadow is partly inside and partly outside the object, diagonally. I didn't find this shadow effect feature or how to apply it along with the gradient effect. It's possible?