Class TrackingEvent

java.lang.Object
com.azure.resourcemanager.logic.models.TrackingEvent

public final class TrackingEvent extends Object
The tracking event.
  • Constructor Details

    • TrackingEvent

      public TrackingEvent()
      Creates an instance of TrackingEvent class.
  • Method Details

    • eventLevel

      public EventLevel eventLevel()
      Get the eventLevel property: The event level.
      Returns:
      the eventLevel value.
    • withEventLevel

      public TrackingEvent withEventLevel(EventLevel eventLevel)
      Set the eventLevel property: The event level.
      Parameters:
      eventLevel - the eventLevel value to set.
      Returns:
      the TrackingEvent object itself.
    • eventTime

      public OffsetDateTime eventTime()
      Get the eventTime property: The event time.
      Returns:
      the eventTime value.
    • withEventTime

      public TrackingEvent withEventTime(OffsetDateTime eventTime)
      Set the eventTime property: The event time.
      Parameters:
      eventTime - the eventTime value to set.
      Returns:
      the TrackingEvent object itself.
    • recordType

      public TrackingRecordType recordType()
      Get the recordType property: The record type.
      Returns:
      the recordType value.
    • withRecordType

      public TrackingEvent withRecordType(TrackingRecordType recordType)
      Set the recordType property: The record type.
      Parameters:
      recordType - the recordType value to set.
      Returns:
      the TrackingEvent object itself.
    • record

      public Object record()
      Get the record property: The record.
      Returns:
      the record value.
    • withRecord

      public TrackingEvent withRecord(Object record)
      Set the record property: The record.
      Parameters:
      record - the record value to set.
      Returns:
      the TrackingEvent object itself.
    • error

      public TrackingEventErrorInfo error()
      Get the error property: The error.
      Returns:
      the error value.
    • withError

      public TrackingEvent withError(TrackingEventErrorInfo error)
      Set the error property: The error.
      Parameters:
      error - the error value to set.
      Returns:
      the TrackingEvent object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.