EventTrigger constructor

EventTrigger({
  1. String? trigger,
  2. String? triggerRegion,
  3. String? eventType,
  4. Iterable<EventFilter>? eventFilters,
  5. String? pubsubTopic,
  6. String? serviceAccountEmail,
  7. EventTrigger_RetryPolicy? retryPolicy,
  8. String? channel,
})

Implementation

factory EventTrigger({
  $core.String? trigger,
  $core.String? triggerRegion,
  $core.String? eventType,
  $core.Iterable<EventFilter>? eventFilters,
  $core.String? pubsubTopic,
  $core.String? serviceAccountEmail,
  EventTrigger_RetryPolicy? retryPolicy,
  $core.String? channel,
}) {
  final $result = create();
  if (trigger != null) {
    $result.trigger = trigger;
  }
  if (triggerRegion != null) {
    $result.triggerRegion = triggerRegion;
  }
  if (eventType != null) {
    $result.eventType = eventType;
  }
  if (eventFilters != null) {
    $result.eventFilters.addAll(eventFilters);
  }
  if (pubsubTopic != null) {
    $result.pubsubTopic = pubsubTopic;
  }
  if (serviceAccountEmail != null) {
    $result.serviceAccountEmail = serviceAccountEmail;
  }
  if (retryPolicy != null) {
    $result.retryPolicy = retryPolicy;
  }
  if (channel != null) {
    $result.channel = channel;
  }
  return $result;
}