<p>
The Cognito Events returned from the GetCognitoEvents request
</p>

@param events
The Cognito Events returned from the GetCognitoEvents request
@return Returns a reference to this object so that method calls can be chained together.
960925
public GetCognitoEventsResult withEvents(java.util.Map<String, String> events) {
        setEvents(events);
        return this;
    }
726463
public void setPullRequestEvents(java.util.Collection<PullRequestEvent> pullRequestEvents) {
        if (pullRequestEvents == null) {
            this.pullRequestEvents = null;
            return;
        }

        this.pullRequestEvents = new java.util.ArrayList<PullRequestEvent>(pullRequestEvents);
    }
917403
function(events){
    this._delegateDOMEvents(events);
    Marionette.bindEntityEvents(this, this.model, Marionette.getOption(this, "modelEvents"));
    Marionette.bindEntityEvents(this, this.collection, Marionette.getOption(this, "collectionEvents"));
  }
719015
private List<Event> toEvents(Collection<Item> items) {
        if (items.isEmpty()) {
            return ImmutableList.of();
        }

        // Sort the items to match the order of their events in an attempt to get first-in-first-out.
        return items.stream().sorted().map(Item::toEvent).collect(Collectors.toList());
    }
422051
protected <T extends DomainEvent> T registerEvent(T event) {
        Assert.notNull(event, "Domain event must not be null!");

        this.domainEvents.add(event);
        return event;
    }
943184
public List<T> getEvents() {
        List<T> returnEvents = new ArrayList<T>();

        if (bufferedEvents.isEmpty()) {
            return returnEvents;
        }

        int returnSize = isBufferFull() ? bufferSize : bufferedEvents.size();

        for (int i = 0 ; i < returnSize ; i++) {
            returnEvents.add(bufferedEvents.remove(0));
        }

        return returnEvents;
    }
1135054
public final ZMonitor add(Event... events)
    {
        if (started) {
            System.out.println("ZMonitor: Unable to add events while already started.");
            return this;
        }
        ZMsg msg = new ZMsg();
        msg.add(ADD_EVENTS);
        for (Event evt : events) {
            msg.add(evt.name());
        }
        agent.send(msg);
        agent.recv();
        return this;
    }
1243627
protected Collection<? extends CasEvent> getCasTicketGrantingTicketCreatedEventsFor(final String principal) {
        val type = CasTicketGrantingTicketCreatedEvent.class.getName();
        LOGGER.debug("Retrieving events of type [{}] for [{}]", type, principal);

        val date = ZonedDateTime.now(ZoneOffset.UTC)
            .minusDays(casProperties.getAuthn().getAdaptive().getRisk().getDaysInRecentHistory());
        return casEventRepository.getEventsOfTypeForPrincipal(type, principal, date);
    }
269454
public NotificationConfiguration withEvents(Set<String> events) {
        this.events.clear();
        this.events.addAll(events);
        return this;
    }
332581
public java.util.List<InputLogEvent> getLogEvents() {
        if (logEvents == null) {
            logEvents = new com.amazonaws.internal.SdkInternalList<InputLogEvent>();
        }
        return logEvents;
    }
503591
public void setEvents(java.util.Collection<Event> events) {
        if (events == null) {
            this.events = null;
            return;
        }

        this.events = new java.util.ArrayList<Event>(events);
    }
973883
public LruList<LoggingEvent> getEvents() {
        if (events == null) {
            events = new LruList<LoggingEvent>(LoggingEvent.class, getSize());
        }
        return events;
    }
1124447
Collection<Class< ? extends ManagerEvent>> expandEvents(Collection<Class< ? extends ManagerEvent>> events)
    {
        Collection<Class< ? extends ManagerEvent>> requiredEvents = new HashSet<>();
        for (Class< ? extends ManagerEvent> event : events)
        {
            requiredEvents.add(event);
            if (event.equals(BridgeEvent.class))
            {
                requiredEvents.add(UnlinkEvent.class);
                requiredEvents.add(LinkEvent.class);
            }
        }

        return requiredEvents;
    }
726123
private List<ResourceBuilderModel> getRegisteredListForEvent(String event) {
        if(eventSubscribers.containsKey(event)) {
            return eventSubscribers.get(event);
        } else {
            LinkedList<ResourceBuilderModel> tempList = new LinkedList<>();
            eventSubscribers.put(event, tempList);
            return tempList;
        }
    }
837464
public List<EventDefinitionType<PortletAppType<T>>> getAllEventDefinition()
   {
      List<EventDefinitionType<PortletAppType<T>>> list = new ArrayList<EventDefinitionType<PortletAppType<T>>>();
      List<Node> nodeList = childNode.get("event-definition");
      for(Node node: nodeList)
      {
         EventDefinitionType<PortletAppType<T>>  type = new EventDefinitionTypeImpl<PortletAppType<T>>(this, "event-definition", childNode, node);
         list.add(type);
      }
      return list;
   }
953425
@Beta
    public static Type getMapping(final String eventType) {
        if (!containsMappingFor(eventType)) {
            return null;
        } else {
            return systemEventMappings.get(canonicalizeEventType(eventType));
        }
    }
908329
public java.util.List<EventSourceMappingConfiguration> getEventSourceMappings() {
        if (eventSourceMappings == null) {
            eventSourceMappings = new com.amazonaws.internal.SdkInternalList<EventSourceMappingConfiguration>();
        }
        return eventSourceMappings;
    }