public ExternalMetricSourceArgs build() {
            if ($.metric == null) {
                throw new MissingRequiredPropertyException("ExternalMetricSourceArgs", "metric");
            }
            if ($.target == null) {
                throw new MissingRequiredPropertyException("ExternalMetricSourceArgs", "target");
            }
            return $;
        }
@param target target specifies the target value for the given metric

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2/inputs/ExternalMetricSourceArgs.java