@CustomType.Setter
        public Builder spec(@Nullable NetworkPolicySpec spec) {

            this.spec = spec;
            return this;
        }
@return Specification of the desired behavior for this NetworkPolicy.
sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/NetworkPolicy.java