public Builder spec(@Nullable Output<NetworkPolicySpecArgs> spec) {
            $.spec = spec;
            return this;
        }
@param spec Specification of the desired behavior for this NetworkPolicy.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/NetworkPolicyArgs.java