public Optional<Output<PodSecurityPolicySpecArgs>> spec() {
        return Optional.ofNullable(this.spec);
    }
@return spec defines the policy enforced.
sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/inputs/PodSecurityPolicyArgs.java