Package odata.msgraph.client.beta.entity
Class AuditEvent
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.AuditEvent
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class AuditEvent extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“A class containing the properties for Audit Event.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuditEvent.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringactivityprotected OffsetDateTimeactivityDateTimeprotected StringactivityOperationTypeprotected StringactivityResultprotected StringactivityTypeprotected AuditActoractorprotected Stringcategoryprotected StringcomponentNameprotected UUIDcorrelationIdprotected StringdisplayNameprotected List<AuditResource>resourcesprotected StringresourcesNextLink-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAuditEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuditEvent.BuilderbuilderAuditEvent()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.ChangedFieldsgetChangedFields()Optional<String>getComponentName()“Component name.”Optional<UUID>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.UnmappedFieldsgetUnmappedFields()StringodataTypeName()AuditEventpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)AuditEventput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()AuditEventwithActivity(String activity)Returns an immutable copy ofthiswith just theactivityfield changed.AuditEventwithActivityDateTime(OffsetDateTime activityDateTime)Returns an immutable copy ofthiswith just theactivityDateTimefield changed.AuditEventwithActivityOperationType(String activityOperationType)Returns an immutable copy ofthiswith just theactivityOperationTypefield changed.AuditEventwithActivityResult(String activityResult)Returns an immutable copy ofthiswith just theactivityResultfield changed.AuditEventwithActivityType(String activityType)Returns an immutable copy ofthiswith just theactivityTypefield changed.AuditEventwithActor(AuditActor actor)Returns an immutable copy ofthiswith just theactorfield changed.AuditEventwithCategory(String category)Returns an immutable copy ofthiswith just thecategoryfield changed.AuditEventwithComponentName(String componentName)Returns an immutable copy ofthiswith just thecomponentNamefield changed.AuditEventwithCorrelationId(UUID correlationId)Returns an immutable copy ofthiswith just thecorrelationIdfield changed.AuditEventwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.AuditEventwithResources(List<AuditResource> resources)Returns an immutable copy ofthiswith just theresourcesfield changed.AuditEventwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
activity
protected String activity
-
activityDateTime
protected OffsetDateTime activityDateTime
-
activityOperationType
protected String activityOperationType
-
activityResult
protected String activityResult
-
activityType
protected String activityType
-
actor
protected AuditActor actor
-
category
protected String category
-
componentName
protected String componentName
-
correlationId
protected UUID correlationId
-
displayName
protected String displayName
-
resources
protected List<AuditResource> resources
-
resourcesNextLink
protected String resourcesNextLink
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderAuditEvent
public static AuditEvent.Builder builderAuditEvent()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getActivity
public Optional<String> getActivity()
“Friendly name of the activity.”- Returns:
- property activity
-
withActivity
public AuditEvent withActivity(String activity)
Returns an immutable copy ofthiswith just theactivityfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Friendly name of the activity.”
- Parameters:
activity- new value ofactivityfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactivityfield changed
-
getActivityDateTime
public Optional<OffsetDateTime> getActivityDateTime()
“The date time in UTC when the activity was performed.”- Returns:
- property activityDateTime
-
withActivityDateTime
public AuditEvent withActivityDateTime(OffsetDateTime activityDateTime)
Returns an immutable copy ofthiswith just theactivityDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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.”
- Parameters:
activityDateTime- new value ofactivityDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactivityDateTimefield changed
-
getActivityOperationType
public Optional<String> getActivityOperationType()
“The HTTP operation type of the activity.”- Returns:
- property activityOperationType
-
withActivityOperationType
public AuditEvent withActivityOperationType(String activityOperationType)
Returns an immutable copy ofthiswith just theactivityOperationTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The HTTP operation type of the activity.”
- Parameters:
activityOperationType- new value ofactivityOperationTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactivityOperationTypefield changed
-
getActivityResult
public Optional<String> getActivityResult()
“The result of the activity.”- Returns:
- property activityResult
-
withActivityResult
public AuditEvent withActivityResult(String activityResult)
Returns an immutable copy ofthiswith just theactivityResultfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The result of the activity.”
- Parameters:
activityResult- new value ofactivityResultfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactivityResultfield changed
-
getActivityType
public Optional<String> getActivityType()
“The type of activity that was being performed.”- Returns:
- property activityType
-
withActivityType
public AuditEvent withActivityType(String activityType)
Returns an immutable copy ofthiswith just theactivityTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The type of activity that was being performed.”
- Parameters:
activityType- new value ofactivityTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactivityTypefield changed
-
getActor
public Optional<AuditActor> getActor()
“AAD user and application that are associated with the audit event.”- Returns:
- property actor
-
withActor
public AuditEvent withActor(AuditActor actor)
Returns an immutable copy ofthiswith just theactorfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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.”
- Parameters:
actor- new value ofactorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactorfield changed
-
withCategory
public AuditEvent withCategory(String category)
Returns an immutable copy ofthiswith just thecategoryfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Audit category.”
- Parameters:
category- new value ofcategoryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecategoryfield changed
-
getComponentName
public Optional<String> getComponentName()
“Component name.”- Returns:
- property componentName
-
withComponentName
public AuditEvent withComponentName(String componentName)
Returns an immutable copy ofthiswith just thecomponentNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Component name.”
- Parameters:
componentName- new value ofcomponentNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecomponentNamefield changed
-
getCorrelationId
public Optional<UUID> getCorrelationId()
“The client request Id that is used to correlate activity within the system.”- Returns:
- property correlationId
-
withCorrelationId
public AuditEvent withCorrelationId(UUID correlationId)
Returns an immutable copy ofthiswith just thecorrelationIdfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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.”
- Parameters:
correlationId- new value ofcorrelationIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecorrelationIdfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Event display name.”- Returns:
- property displayName
-
withDisplayName
public AuditEvent withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Event display name.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getResources
public com.github.davidmoten.odata.client.CollectionPage<AuditResource> getResources()
“Resources being modified.”- Returns:
- property resources
-
withResources
public AuditEvent withResources(List<AuditResource> resources)
Returns an immutable copy ofthiswith just theresourcesfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Resources being modified.”
- Parameters:
resources- new value ofresourcesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresourcesfield changed
-
getResources
public com.github.davidmoten.odata.client.CollectionPage<AuditResource> getResources(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Resources being modified.”- Parameters:
options- specify connect and read timeouts- Returns:
- property resources
-
withUnmappedField
public AuditEvent withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public AuditEvent patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public AuditEvent put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-