public MetricSpecPatch build() {
            final var _resultValue = new MetricSpecPatch();
            _resultValue.containerResource = containerResource;
            _resultValue.external = external;
            _resultValue.object = object;
            _resultValue.pods = pods;
            _resultValue.resource = resource;
            _resultValue.type = type;
            return _resultValue;
        }
@return type is the type of metric source.  It should be one of &#34;Object&#34;, &#34;Pods&#34; or &#34;Resource&#34;, each mapping to a matching field in the object.
sdk/java/src/main/java/com/pulumi/kubernetes/autoscaling/v2beta1/outputs/MetricSpecPatch.java