public class AuditEvent extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
AuditEvent.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
activity |
protected OffsetDateTime |
activityDateTime |
protected String |
activityOperationType |
protected String |
activityResult |
protected String |
activityType |
protected AuditActor |
actor |
protected String |
category |
protected String |
componentName |
protected String |
correlationId |
protected String |
displayName |
protected List<AuditResource> |
resources |
protected String |
resourcesNextLink |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
AuditEvent() |
| Modifier and Type | Method and Description |
|---|---|
static AuditEvent.Builder |
builderAuditEvent()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<String> |
getActivity()
“Friendly name of the activity.”
|
Optional<OffsetDateTime> |
getActivityDateTime()
“The date time in UTC when the activity was performed.”
|
Optional<String> |
getActivityOperationType()
“The HTTP operation type of the activity.”
|
Optional<String> |
getActivityResult()
“The result of the activity.”
|
Optional<String> |
getActivityType()
“The type of activity that was being performed.”
|
Optional<AuditActor> |
getActor()
“AAD user and application that are associated with the audit event.”
|
Optional<String> |
getCategory()
“Audit category.”
|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getComponentName()
“Component name.”
|
Optional<String> |
getCorrelationId()
“The client request Id that is used to correlate activity within the system.”
|
Optional<String> |
getDisplayName()
“Event display name.”
|
com.github.davidmoten.odata.client.CollectionPage<AuditResource> |
getResources()
“Resources being modified.”
|
com.github.davidmoten.odata.client.CollectionPage<AuditResource> |
getResources(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Resources being modified.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
AuditEvent |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
AuditEvent |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
AuditEvent |
withActivity(String activity)
Returns an immutable copy of
this with just the activity field
changed. |
AuditEvent |
withActivityDateTime(OffsetDateTime activityDateTime)
Returns an immutable copy of
this with just the activityDateTime
field changed. |
AuditEvent |
withActivityOperationType(String activityOperationType)
Returns an immutable copy of
this with just the activityOperationType field changed. |
AuditEvent |
withActivityResult(String activityResult)
Returns an immutable copy of
this with just the activityResult
field changed. |
AuditEvent |
withActivityType(String activityType)
Returns an immutable copy of
this with just the activityType
field changed. |
AuditEvent |
withActor(AuditActor actor)
Returns an immutable copy of
this with just the actor field
changed. |
AuditEvent |
withCategory(String category)
Returns an immutable copy of
this with just the category field
changed. |
AuditEvent |
withComponentName(String componentName)
Returns an immutable copy of
this with just the componentName
field changed. |
AuditEvent |
withCorrelationId(String correlationId)
Returns an immutable copy of
this with just the correlationId
field changed. |
AuditEvent |
withDisplayName(String displayName)
Returns an immutable copy of
this with just the displayName
field changed. |
protected String displayName
protected String componentName
protected AuditActor actor
protected String activity
protected OffsetDateTime activityDateTime
protected String activityType
protected String activityOperationType
protected String activityResult
protected String correlationId
protected List<AuditResource> resources
protected String resourcesNextLink
protected String category
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static AuditEvent.Builder builderAuditEvent()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<String> getDisplayName()
public AuditEvent withDisplayName(String displayName)
this with just the displayName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Event display name.”
displayName - new value of displayName field (as defined in service metadata)this with just the displayName field changedpublic Optional<String> getComponentName()
public AuditEvent withComponentName(String componentName)
this with just the componentName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Component name.”
componentName - new value of componentName field (as defined in service metadata)this with just the componentName field changedpublic Optional<AuditActor> getActor()
public AuditEvent withActor(AuditActor actor)
this with just the actor field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“AAD user and application that are associated with the audit event.”
actor - new value of actor field (as defined in service metadata)this with just the actor field changedpublic Optional<String> getActivity()
public AuditEvent withActivity(String activity)
this with just the activity field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Friendly name of the activity.”
activity - new value of activity field (as defined in service metadata)this with just the activity field changedpublic Optional<OffsetDateTime> getActivityDateTime()
public AuditEvent withActivityDateTime(OffsetDateTime activityDateTime)
this with just the activityDateTime
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The date time in UTC when the activity was performed.”
activityDateTime - new value of activityDateTime field (as defined in service metadata)this with just the activityDateTime field changedpublic Optional<String> getActivityType()
public AuditEvent withActivityType(String activityType)
this with just the activityType
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The type of activity that was being performed.”
activityType - new value of activityType field (as defined in service metadata)this with just the activityType field changedpublic Optional<String> getActivityOperationType()
public AuditEvent withActivityOperationType(String activityOperationType)
this with just the activityOperationType field changed. Field description below. The field name is
also added to an internal map of changed fields in the returned object so that
when this.patch() is called (if available)on the returned object only
the changed fields are submitted.
“The HTTP operation type of the activity.”
activityOperationType - new value of activityOperationType field (as defined in service metadata)this with just the activityOperationType field changedpublic Optional<String> getActivityResult()
public AuditEvent withActivityResult(String activityResult)
this with just the activityResult
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The result of the activity.”
activityResult - new value of activityResult field (as defined in service metadata)this with just the activityResult field changedpublic Optional<String> getCorrelationId()
public AuditEvent withCorrelationId(String correlationId)
this with just the correlationId
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“The client request Id that is used to correlate activity within the system.”
correlationId - new value of correlationId field (as defined in service metadata)this with just the correlationId field changedpublic com.github.davidmoten.odata.client.CollectionPage<AuditResource> getResources()
public com.github.davidmoten.odata.client.CollectionPage<AuditResource> getResources(com.github.davidmoten.odata.client.HttpRequestOptions options)
public AuditEvent withCategory(String category)
this with just the category field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Audit category.”
category - new value of category field (as defined in service metadata)this with just the category field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic AuditEvent patch()
this with changed fields reset.public AuditEvent put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.