public PolicyArgs build() {
            if ($.level == null) {
                throw new MissingRequiredPropertyException("PolicyArgs", "level");
            }
            return $;
        }
@param stages Stages is a list of stages for which events are created.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/auditregistration/v1alpha1/inputs/PolicyArgs.java