public Optional<PodAffinityPatch> podAffinity() {
        return Optional.ofNullable(this.podAffinity);
    }
@return Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/AffinityPatch.java