public ResourceSliceSpecArgs build() {
            if ($.driver == null) {
                throw new MissingRequiredPropertyException("ResourceSliceSpecArgs", "driver");
            }
            if ($.pool == null) {
                throw new MissingRequiredPropertyException("ResourceSliceSpecArgs", "pool");
            }
            return $;
        }
@param sharedCounters SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.

The names of the SharedCounters must be unique in the ResourceSlice.

The maximum number of SharedCounters is 32.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha3/inputs/ResourceSliceSpecArgs.java