public Builder affinity(AffinityArgs affinity) {
            return affinity(Output.of(affinity));
        }
@param affinity If specified, the pod&#39;s scheduling constraints

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/PodSpecArgs.java