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