UpdateTargetRequest constructor

UpdateTargetRequest({
  1. String? targetId,
  2. String? name,
  3. SetRESTWebhook? restWebhook,
  4. SetRESTRequestResponse? restRequestResponse,
  5. Duration? timeout,
  6. bool? isAsync,
  7. bool? interruptOnError,
})

Implementation

factory UpdateTargetRequest({
  $core.String? targetId,
  $core.String? name,
  $4.SetRESTWebhook? restWebhook,
  $4.SetRESTRequestResponse? restRequestResponse,
  $2.Duration? timeout,
  $core.bool? isAsync,
  $core.bool? interruptOnError,
}) {
  final $result = create();
  if (targetId != null) {
    $result.targetId = targetId;
  }
  if (name != null) {
    $result.name = name;
  }
  if (restWebhook != null) {
    $result.restWebhook = restWebhook;
  }
  if (restRequestResponse != null) {
    $result.restRequestResponse = restRequestResponse;
  }
  if (timeout != null) {
    $result.timeout = timeout;
  }
  if (isAsync != null) {
    $result.isAsync = isAsync;
  }
  if (interruptOnError != null) {
    $result.interruptOnError = interruptOnError;
  }
  return $result;
}