public PreferredSchedulingTermArgs build() {
            if ($.preference == null) {
                throw new MissingRequiredPropertyException("PreferredSchedulingTermArgs", "preference");
            }
            if ($.weight == null) {
                throw new MissingRequiredPropertyException("PreferredSchedulingTermArgs", "weight");
            }
            return $;
        }
@param weight Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.

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