code: protected final void updateCapabilities(TriggerType[] triggerTypes) {
          AgentCapabilities agentCapabilities = new AgentCapabilities();
  
          agentCapabilities.setId(this.getId());
          agentCapabilities.setType(this.getType());
          agentCapabilities.setSupportedTriggerTypes(triggerTypes);
  
          this.capabilities = agentCapabilities;
      }
docs: Update this Agent's {@link AgentCapabilities} with the given {@link TriggerType TriggerTypes}.
  
  @param triggerTypes The {@link TriggerType TriggerTypes} to be set.