public Optional<NodeAffinity> nodeAffinity() {
        return Optional.ofNullable(this.nodeAffinity);
    }
@return Describes node affinity scheduling rules for the pod.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/Affinity.java