public AffinityPatch build() {
            final var _resultValue = new AffinityPatch();
            _resultValue.nodeAffinity = nodeAffinity;
            _resultValue.podAffinity = podAffinity;
            _resultValue.podAntiAffinity = podAntiAffinity;
            return _resultValue;
        }
@return Describes pod anti-affinity scheduling rules (e.g. avoid putting 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