public PodSecurityPolicy build() {
            final var _resultValue = new PodSecurityPolicy();
            _resultValue.apiVersion = apiVersion;
            _resultValue.kind = kind;
            _resultValue.metadata = metadata;
            _resultValue.spec = spec;
            return _resultValue;
        }
@return spec defines the policy enforced.
sdk/java/src/main/java/com/pulumi/kubernetes/policy/v1beta1/outputs/PodSecurityPolicy.java