DedicatedResources constructor

DedicatedResources({
  1. MachineSpec? machineSpec,
  2. int? minReplicaCount,
  3. int? maxReplicaCount,
  4. Iterable<AutoscalingMetricSpec>? autoscalingMetricSpecs,
})

Implementation

factory DedicatedResources({
  MachineSpec? machineSpec,
  $core.int? minReplicaCount,
  $core.int? maxReplicaCount,
  $core.Iterable<AutoscalingMetricSpec>? autoscalingMetricSpecs,
}) {
  final $result = create();
  if (machineSpec != null) {
    $result.machineSpec = machineSpec;
  }
  if (minReplicaCount != null) {
    $result.minReplicaCount = minReplicaCount;
  }
  if (maxReplicaCount != null) {
    $result.maxReplicaCount = maxReplicaCount;
  }
  if (autoscalingMetricSpecs != null) {
    $result.autoscalingMetricSpecs.addAll(autoscalingMetricSpecs);
  }
  return $result;
}