public final class TrackingEvent extends Object
Constructor and Description |
---|
TrackingEvent() |
Modifier and Type | Method and Description |
---|---|
TrackingEventErrorInfo |
error()
Get the error property: The error.
|
EventLevel |
eventLevel()
Get the eventLevel property: The event level.
|
OffsetDateTime |
eventTime()
Get the eventTime property: The event time.
|
Object |
record()
Get the record property: The record.
|
TrackingRecordType |
recordType()
Get the recordType property: The record type.
|
void |
validate()
Validates the instance.
|
TrackingEvent |
withError(TrackingEventErrorInfo error)
Set the error property: The error.
|
TrackingEvent |
withEventLevel(EventLevel eventLevel)
Set the eventLevel property: The event level.
|
TrackingEvent |
withEventTime(OffsetDateTime eventTime)
Set the eventTime property: The event time.
|
TrackingEvent |
withRecord(Object record)
Set the record property: The record.
|
TrackingEvent |
withRecordType(TrackingRecordType recordType)
Set the recordType property: The record type.
|
public EventLevel eventLevel()
public TrackingEvent withEventLevel(EventLevel eventLevel)
eventLevel
- the eventLevel value to set.public OffsetDateTime eventTime()
public TrackingEvent withEventTime(OffsetDateTime eventTime)
eventTime
- the eventTime value to set.public TrackingRecordType recordType()
public TrackingEvent withRecordType(TrackingRecordType recordType)
recordType
- the recordType value to set.public Object record()
public TrackingEvent withRecord(Object record)
record
- the record value to set.public TrackingEventErrorInfo error()
public TrackingEvent withError(TrackingEventErrorInfo error)
error
- the error value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.