Class SyntheticsAssertion

java.lang.Object
com.datadog.api.client.AbstractOpenApiSchema
com.datadog.api.client.v1.model.SyntheticsAssertion

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SyntheticsAssertion 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: SyntheticsAssertionTarget, SyntheticsAssertionBodyHashTarget, SyntheticsAssertionJSONPathTarget, SyntheticsAssertionJSONSchemaTarget, SyntheticsAssertionXPathTarget, SyntheticsAssertionJavascript, SyntheticsAssertionMCPServerCapabilitiesTarget, SyntheticsAssertionMCPRespectsSpecification

      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: SyntheticsAssertionTarget, SyntheticsAssertionBodyHashTarget, SyntheticsAssertionJSONPathTarget, SyntheticsAssertionJSONSchemaTarget, SyntheticsAssertionXPathTarget, SyntheticsAssertionJavascript, SyntheticsAssertionMCPServerCapabilitiesTarget, SyntheticsAssertionMCPRespectsSpecification
      Overrides:
      getActualInstance in class AbstractOpenApiSchema
      Returns:
      The actual instance (SyntheticsAssertionTarget, SyntheticsAssertionBodyHashTarget, SyntheticsAssertionJSONPathTarget, SyntheticsAssertionJSONSchemaTarget, SyntheticsAssertionXPathTarget, SyntheticsAssertionJavascript, SyntheticsAssertionMCPServerCapabilitiesTarget, SyntheticsAssertionMCPRespectsSpecification)
    • getSyntheticsAssertionTarget

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

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

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

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

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

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

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

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