public Output<Optional<NetworkPolicySpecPatch>> spec() {
        return Codegen.optional(this.spec);
    }
@return spec represents the specification of the desired behavior for this NetworkPolicy.
sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/NetworkPolicyPatch.java