public Optional<LabelSelector> labelSelector() {
        return Optional.ofNullable(this.labelSelector);
    }
@return A label query over a set of resources, in this case pods. If it&#39;s null, this PodAffinityTerm matches with no Pods.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/PodAffinityTerm.java