public Builder spec(NetworkPolicySpecArgs spec) {
            return spec(Output.of(spec));
        }
@param spec spec represents the specification of the desired behavior for this NetworkPolicy.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/inputs/NetworkPolicyArgs.java