public static class AuditEvent.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuditEvent |
build() |
AuditEvent.Builder |
cloudEventsVersion(String cloudEventsVersion)
The version of the CloudEvents specification.
|
AuditEvent.Builder |
contentType(String contentType)
The content type of the data contained in
data . |
AuditEvent.Builder |
copy(AuditEvent model) |
AuditEvent.Builder |
data(Data data) |
AuditEvent.Builder |
eventId(String eventId)
The GUID of the event.
|
AuditEvent.Builder |
eventTime(Date eventTime)
The time the event occurred, expressed in RFC 3339
timestamp format.
|
AuditEvent.Builder |
eventType(String eventType)
The type of event that happened.
|
AuditEvent.Builder |
eventTypeVersion(String eventTypeVersion)
The version of the event type.
|
AuditEvent.Builder |
source(String source)
The source of the event.
|
public AuditEvent.Builder eventType(String eventType)
The type of event that happened.
The service that produces the event can also add, remove, or change the meaning of a
field. A service implementing these type changes would publish a new version of an eventType
and revise the eventTypeVersion
field.
Example: com.oraclecloud.ComputeApi.GetInstance
eventType
- the value to setpublic AuditEvent.Builder cloudEventsVersion(String cloudEventsVersion)
The version of the CloudEvents specification. The structure of the envelope follows the CloudEvents industry standard format hosted by the Cloud Native Computing Foundation ( CNCF).
Audit uses version 0.1 specification of the CloudEvents event envelope.
Example: 0.1
cloudEventsVersion
- the value to setpublic AuditEvent.Builder eventTypeVersion(String eventTypeVersion)
The version of the event type. This version applies to the payload of the event, not the
envelope. Use cloudEventsVersion
to determine the version of the envelope.
Example: 2.0
eventTypeVersion
- the value to setpublic AuditEvent.Builder source(String source)
The source of the event.
Example: ComputeApi
source
- the value to setpublic AuditEvent.Builder eventId(String eventId)
The GUID of the event.
eventId
- the value to setpublic AuditEvent.Builder eventTime(Date eventTime)
The time the event occurred, expressed in RFC 3339 timestamp format.
Example: 2019-09-18T00:10:59.252Z
eventTime
- the value to setpublic AuditEvent.Builder contentType(String contentType)
The content type of the data contained in data
.
Example: application/json
contentType
- the value to setpublic AuditEvent.Builder data(Data data)
public AuditEvent build()
public AuditEvent.Builder copy(AuditEvent model)
Copyright © 2016–2024. All rights reserved.