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

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