Class Trigger

java.lang.Object
com.datadog.api.client.AbstractOpenApiSchema
com.datadog.api.client.v2.model.Trigger

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class Trigger extends AbstractOpenApiSchema
  • Field Details

    • unparsed

      public boolean unparsed
    • schemas

      public static final Map<String,jakarta.ws.rs.core.GenericType> schemas
  • Constructor Details

  • Method Details

    • getSchemas

      public Map<String,jakarta.ws.rs.core.GenericType> getSchemas()
      Description copied from class: AbstractOpenApiSchema
      Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
      Specified by:
      getSchemas in class AbstractOpenApiSchema
      Returns:
      an instance of the actual schema/object
    • setActualInstance

      public void setActualInstance(Object instance)
      Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: AgentTriggerWrapper, APITriggerWrapper, AppTriggerWrapper, CaseTriggerWrapper, ChangeEventTriggerWrapper, DatabaseMonitoringTriggerWrapper, DatastoreTriggerWrapper, DashboardTriggerWrapper, FormTriggerWrapper, GithubWebhookTriggerWrapper, IncidentCreatedTriggerWrapper, IncidentImpactCreatedTriggerWrapper, IncidentImpactUpdatedTriggerWrapper, IncidentPostmortemUpdatedTriggerWrapper, IncidentResponderCreatedTriggerWrapper, IncidentSavedTriggerWrapper, IncidentScheduleTriggerWrapper, IncidentTriggerWrapper, MonitorTriggerWrapper, NotebookTriggerWrapper, OnCallTriggerWrapper, ScheduleTriggerWrapper, SecurityTriggerWrapper, SelfServiceTriggerWrapper, SlackTriggerWrapper, SoftwareCatalogTriggerWrapper, WorkflowTriggerWrapper

      It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf).

      Overrides:
      setActualInstance in class AbstractOpenApiSchema
      Parameters:
      instance - the actual instance of the schema/object
    • getActualInstance

      public Object getActualInstance()
      Get the actual instance, which can be the following: AgentTriggerWrapper, APITriggerWrapper, AppTriggerWrapper, CaseTriggerWrapper, ChangeEventTriggerWrapper, DatabaseMonitoringTriggerWrapper, DatastoreTriggerWrapper, DashboardTriggerWrapper, FormTriggerWrapper, GithubWebhookTriggerWrapper, IncidentCreatedTriggerWrapper, IncidentImpactCreatedTriggerWrapper, IncidentImpactUpdatedTriggerWrapper, IncidentPostmortemUpdatedTriggerWrapper, IncidentResponderCreatedTriggerWrapper, IncidentSavedTriggerWrapper, IncidentScheduleTriggerWrapper, IncidentTriggerWrapper, MonitorTriggerWrapper, NotebookTriggerWrapper, OnCallTriggerWrapper, ScheduleTriggerWrapper, SecurityTriggerWrapper, SelfServiceTriggerWrapper, SlackTriggerWrapper, SoftwareCatalogTriggerWrapper, WorkflowTriggerWrapper
      Overrides:
      getActualInstance in class AbstractOpenApiSchema
      Returns:
      The actual instance (AgentTriggerWrapper, APITriggerWrapper, AppTriggerWrapper, CaseTriggerWrapper, ChangeEventTriggerWrapper, DatabaseMonitoringTriggerWrapper, DatastoreTriggerWrapper, DashboardTriggerWrapper, FormTriggerWrapper, GithubWebhookTriggerWrapper, IncidentCreatedTriggerWrapper, IncidentImpactCreatedTriggerWrapper, IncidentImpactUpdatedTriggerWrapper, IncidentPostmortemUpdatedTriggerWrapper, IncidentResponderCreatedTriggerWrapper, IncidentSavedTriggerWrapper, IncidentScheduleTriggerWrapper, IncidentTriggerWrapper, MonitorTriggerWrapper, NotebookTriggerWrapper, OnCallTriggerWrapper, ScheduleTriggerWrapper, SecurityTriggerWrapper, SelfServiceTriggerWrapper, SlackTriggerWrapper, SoftwareCatalogTriggerWrapper, WorkflowTriggerWrapper)
    • getAgentTriggerWrapper

      public AgentTriggerWrapper getAgentTriggerWrapper() throws ClassCastException
      Get the actual instance of `AgentTriggerWrapper`. If the actual instance is not `AgentTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `AgentTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `AgentTriggerWrapper`
    • getAPITriggerWrapper

      public APITriggerWrapper getAPITriggerWrapper() throws ClassCastException
      Get the actual instance of `APITriggerWrapper`. If the actual instance is not `APITriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `APITriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `APITriggerWrapper`
    • getAppTriggerWrapper

      public AppTriggerWrapper getAppTriggerWrapper() throws ClassCastException
      Get the actual instance of `AppTriggerWrapper`. If the actual instance is not `AppTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `AppTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `AppTriggerWrapper`
    • getCaseTriggerWrapper

      public CaseTriggerWrapper getCaseTriggerWrapper() throws ClassCastException
      Get the actual instance of `CaseTriggerWrapper`. If the actual instance is not `CaseTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `CaseTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `CaseTriggerWrapper`
    • getChangeEventTriggerWrapper

      public ChangeEventTriggerWrapper getChangeEventTriggerWrapper() throws ClassCastException
      Get the actual instance of `ChangeEventTriggerWrapper`. If the actual instance is not `ChangeEventTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `ChangeEventTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `ChangeEventTriggerWrapper`
    • getDatabaseMonitoringTriggerWrapper

      public DatabaseMonitoringTriggerWrapper getDatabaseMonitoringTriggerWrapper() throws ClassCastException
      Get the actual instance of `DatabaseMonitoringTriggerWrapper`. If the actual instance is not `DatabaseMonitoringTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `DatabaseMonitoringTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `DatabaseMonitoringTriggerWrapper`
    • getDatastoreTriggerWrapper

      public DatastoreTriggerWrapper getDatastoreTriggerWrapper() throws ClassCastException
      Get the actual instance of `DatastoreTriggerWrapper`. If the actual instance is not `DatastoreTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `DatastoreTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `DatastoreTriggerWrapper`
    • getDashboardTriggerWrapper

      public DashboardTriggerWrapper getDashboardTriggerWrapper() throws ClassCastException
      Get the actual instance of `DashboardTriggerWrapper`. If the actual instance is not `DashboardTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `DashboardTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `DashboardTriggerWrapper`
    • getFormTriggerWrapper

      public FormTriggerWrapper getFormTriggerWrapper() throws ClassCastException
      Get the actual instance of `FormTriggerWrapper`. If the actual instance is not `FormTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `FormTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `FormTriggerWrapper`
    • getGithubWebhookTriggerWrapper

      public GithubWebhookTriggerWrapper getGithubWebhookTriggerWrapper() throws ClassCastException
      Get the actual instance of `GithubWebhookTriggerWrapper`. If the actual instance is not `GithubWebhookTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `GithubWebhookTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `GithubWebhookTriggerWrapper`
    • getIncidentCreatedTriggerWrapper

      public IncidentCreatedTriggerWrapper getIncidentCreatedTriggerWrapper() throws ClassCastException
      Get the actual instance of `IncidentCreatedTriggerWrapper`. If the actual instance is not `IncidentCreatedTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `IncidentCreatedTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `IncidentCreatedTriggerWrapper`
    • getIncidentImpactCreatedTriggerWrapper

      public IncidentImpactCreatedTriggerWrapper getIncidentImpactCreatedTriggerWrapper() throws ClassCastException
      Get the actual instance of `IncidentImpactCreatedTriggerWrapper`. If the actual instance is not `IncidentImpactCreatedTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `IncidentImpactCreatedTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `IncidentImpactCreatedTriggerWrapper`
    • getIncidentImpactUpdatedTriggerWrapper

      public IncidentImpactUpdatedTriggerWrapper getIncidentImpactUpdatedTriggerWrapper() throws ClassCastException
      Get the actual instance of `IncidentImpactUpdatedTriggerWrapper`. If the actual instance is not `IncidentImpactUpdatedTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `IncidentImpactUpdatedTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `IncidentImpactUpdatedTriggerWrapper`
    • getIncidentPostmortemUpdatedTriggerWrapper

      public IncidentPostmortemUpdatedTriggerWrapper getIncidentPostmortemUpdatedTriggerWrapper() throws ClassCastException
      Get the actual instance of `IncidentPostmortemUpdatedTriggerWrapper`. If the actual instance is not `IncidentPostmortemUpdatedTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `IncidentPostmortemUpdatedTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `IncidentPostmortemUpdatedTriggerWrapper`
    • getIncidentResponderCreatedTriggerWrapper

      public IncidentResponderCreatedTriggerWrapper getIncidentResponderCreatedTriggerWrapper() throws ClassCastException
      Get the actual instance of `IncidentResponderCreatedTriggerWrapper`. If the actual instance is not `IncidentResponderCreatedTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `IncidentResponderCreatedTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `IncidentResponderCreatedTriggerWrapper`
    • getIncidentSavedTriggerWrapper

      public IncidentSavedTriggerWrapper getIncidentSavedTriggerWrapper() throws ClassCastException
      Get the actual instance of `IncidentSavedTriggerWrapper`. If the actual instance is not `IncidentSavedTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `IncidentSavedTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `IncidentSavedTriggerWrapper`
    • getIncidentScheduleTriggerWrapper

      public IncidentScheduleTriggerWrapper getIncidentScheduleTriggerWrapper() throws ClassCastException
      Get the actual instance of `IncidentScheduleTriggerWrapper`. If the actual instance is not `IncidentScheduleTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `IncidentScheduleTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `IncidentScheduleTriggerWrapper`
    • getIncidentTriggerWrapper

      public IncidentTriggerWrapper getIncidentTriggerWrapper() throws ClassCastException
      Get the actual instance of `IncidentTriggerWrapper`. If the actual instance is not `IncidentTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `IncidentTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `IncidentTriggerWrapper`
    • getMonitorTriggerWrapper

      public MonitorTriggerWrapper getMonitorTriggerWrapper() throws ClassCastException
      Get the actual instance of `MonitorTriggerWrapper`. If the actual instance is not `MonitorTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `MonitorTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `MonitorTriggerWrapper`
    • getNotebookTriggerWrapper

      public NotebookTriggerWrapper getNotebookTriggerWrapper() throws ClassCastException
      Get the actual instance of `NotebookTriggerWrapper`. If the actual instance is not `NotebookTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `NotebookTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `NotebookTriggerWrapper`
    • getOnCallTriggerWrapper

      public OnCallTriggerWrapper getOnCallTriggerWrapper() throws ClassCastException
      Get the actual instance of `OnCallTriggerWrapper`. If the actual instance is not `OnCallTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `OnCallTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `OnCallTriggerWrapper`
    • getScheduleTriggerWrapper

      public ScheduleTriggerWrapper getScheduleTriggerWrapper() throws ClassCastException
      Get the actual instance of `ScheduleTriggerWrapper`. If the actual instance is not `ScheduleTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `ScheduleTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `ScheduleTriggerWrapper`
    • getSecurityTriggerWrapper

      public SecurityTriggerWrapper getSecurityTriggerWrapper() throws ClassCastException
      Get the actual instance of `SecurityTriggerWrapper`. If the actual instance is not `SecurityTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `SecurityTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `SecurityTriggerWrapper`
    • getSelfServiceTriggerWrapper

      public SelfServiceTriggerWrapper getSelfServiceTriggerWrapper() throws ClassCastException
      Get the actual instance of `SelfServiceTriggerWrapper`. If the actual instance is not `SelfServiceTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `SelfServiceTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `SelfServiceTriggerWrapper`
    • getSlackTriggerWrapper

      public SlackTriggerWrapper getSlackTriggerWrapper() throws ClassCastException
      Get the actual instance of `SlackTriggerWrapper`. If the actual instance is not `SlackTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `SlackTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `SlackTriggerWrapper`
    • getSoftwareCatalogTriggerWrapper

      public SoftwareCatalogTriggerWrapper getSoftwareCatalogTriggerWrapper() throws ClassCastException
      Get the actual instance of `SoftwareCatalogTriggerWrapper`. If the actual instance is not `SoftwareCatalogTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `SoftwareCatalogTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `SoftwareCatalogTriggerWrapper`
    • getWorkflowTriggerWrapper

      public WorkflowTriggerWrapper getWorkflowTriggerWrapper() throws ClassCastException
      Get the actual instance of `WorkflowTriggerWrapper`. If the actual instance is not `WorkflowTriggerWrapper`, the ClassCastException will be thrown.
      Returns:
      The actual instance of `WorkflowTriggerWrapper`
      Throws:
      ClassCastException - if the instance is not `WorkflowTriggerWrapper`