Package com.oracle.bmc.audit.model
Class AuditEvent.Builder
- java.lang.Object
-
- com.oracle.bmc.audit.model.AuditEvent.Builder
-
- Enclosing class:
- AuditEvent
public static class AuditEvent.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
eventType
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
- Parameters:
eventType
- the value to set- Returns:
- this builder
-
cloudEventsVersion
public 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
- Parameters:
cloudEventsVersion
- the value to set- Returns:
- this builder
-
eventTypeVersion
public 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
- Parameters:
eventTypeVersion
- the value to set- Returns:
- this builder
-
source
public AuditEvent.Builder source(String source)
The source of the event.Example: ComputeApi
- Parameters:
source
- the value to set- Returns:
- this builder
-
eventId
public AuditEvent.Builder eventId(String eventId)
The GUID of the event.- Parameters:
eventId
- the value to set- Returns:
- this builder
-
eventTime
public AuditEvent.Builder eventTime(Date eventTime)
The time the event occurred, expressed in RFC 3339 timestamp format.Example: 2019-09-18T00:10:59.252Z
- Parameters:
eventTime
- the value to set- Returns:
- this builder
-
contentType
public AuditEvent.Builder contentType(String contentType)
The content type of the data contained in data.Example: application/json
- Parameters:
contentType
- the value to set- Returns:
- this builder
-
data
public AuditEvent.Builder data(Data data)
-
build
public AuditEvent build()
-
copy
public AuditEvent.Builder copy(AuditEvent model)
-
-