Package odata.msgraph.client.beta.entity
Class RemoteActionAudit
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.RemoteActionAudit
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class RemoteActionAudit extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Report of remote actions initiated on the devices belonging to a certain tenant.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemoteActionAudit.Builder
-
Field Summary
Fields Modifier and Type Field Description protected RemoteActionactionprotected ActionStateactionStateprotected StringdeviceDisplayNameprotected StringdeviceIMEIprotected StringdeviceOwnerUserPrincipalNameprotected StringinitiatedByUserPrincipalNameprotected StringmanagedDeviceIdprotected OffsetDateTimerequestDateTimeprotected StringuserName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoteActionAudit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RemoteActionAudit.BuilderbuilderRemoteActionAudit()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<RemoteAction>getAction()“The action name.”Optional<ActionState>getActionState()“Action state.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDeviceDisplayName()“Intune device name.”Optional<String>getDeviceIMEI()“IMEI of the device.”Optional<String>getDeviceOwnerUserPrincipalName()“Upn of the device owner.”Optional<String>getInitiatedByUserPrincipalName()“User who initiated the device action, format is UPN.”Optional<String>getManagedDeviceId()“Action target.”Optional<OffsetDateTime>getRequestDateTime()“Time when the action was issued, given in UTC.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserName()“[deprecated] Please use InitiatedByUserPrincipalName instead.”StringodataTypeName()RemoteActionAuditpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)RemoteActionAuditput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()RemoteActionAuditwithAction(RemoteAction action)Returns an immutable copy ofthiswith just theactionfield changed.RemoteActionAuditwithActionState(ActionState actionState)Returns an immutable copy ofthiswith just theactionStatefield changed.RemoteActionAuditwithDeviceDisplayName(String deviceDisplayName)Returns an immutable copy ofthiswith just thedeviceDisplayNamefield changed.RemoteActionAuditwithDeviceIMEI(String deviceIMEI)Returns an immutable copy ofthiswith just thedeviceIMEIfield changed.RemoteActionAuditwithDeviceOwnerUserPrincipalName(String deviceOwnerUserPrincipalName)Returns an immutable copy ofthiswith just thedeviceOwnerUserPrincipalNamefield changed.RemoteActionAuditwithInitiatedByUserPrincipalName(String initiatedByUserPrincipalName)Returns an immutable copy ofthiswith just theinitiatedByUserPrincipalNamefield changed.RemoteActionAuditwithManagedDeviceId(String managedDeviceId)Returns an immutable copy ofthiswith just themanagedDeviceIdfield changed.RemoteActionAuditwithRequestDateTime(OffsetDateTime requestDateTime)Returns an immutable copy ofthiswith just therequestDateTimefield changed.RemoteActionAuditwithUnmappedField(String name, String value)RemoteActionAuditwithUserName(String userName)Returns an immutable copy ofthiswith just theuserNamefield changed.
-
-
-
Field Detail
-
action
protected RemoteAction action
-
actionState
protected ActionState actionState
-
deviceDisplayName
protected String deviceDisplayName
-
deviceIMEI
protected String deviceIMEI
-
deviceOwnerUserPrincipalName
protected String deviceOwnerUserPrincipalName
-
initiatedByUserPrincipalName
protected String initiatedByUserPrincipalName
-
managedDeviceId
protected String managedDeviceId
-
requestDateTime
protected OffsetDateTime requestDateTime
-
userName
protected String userName
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderRemoteActionAudit
public static RemoteActionAudit.Builder builderRemoteActionAudit()
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
-
getAction
public Optional<RemoteAction> getAction()
“The action name.”- Returns:
- property action
-
withAction
public RemoteActionAudit withAction(RemoteAction action)
Returns an immutable copy ofthiswith just theactionfield 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 action name.”
- Parameters:
action- new value ofactionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactionfield changed
-
getActionState
public Optional<ActionState> getActionState()
“Action state.”- Returns:
- property actionState
-
withActionState
public RemoteActionAudit withActionState(ActionState actionState)
Returns an immutable copy ofthiswith just theactionStatefield 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.“Action state.”
- Parameters:
actionState- new value ofactionStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactionStatefield changed
-
getDeviceDisplayName
public Optional<String> getDeviceDisplayName()
“Intune device name.”- Returns:
- property deviceDisplayName
-
withDeviceDisplayName
public RemoteActionAudit withDeviceDisplayName(String deviceDisplayName)
Returns an immutable copy ofthiswith just thedeviceDisplayNamefield 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.“Intune device name.”
- Parameters:
deviceDisplayName- new value ofdeviceDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceDisplayNamefield changed
-
getDeviceIMEI
public Optional<String> getDeviceIMEI()
“IMEI of the device.”- Returns:
- property deviceIMEI
-
withDeviceIMEI
public RemoteActionAudit withDeviceIMEI(String deviceIMEI)
Returns an immutable copy ofthiswith just thedeviceIMEIfield 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.“IMEI of the device.”
- Parameters:
deviceIMEI- new value ofdeviceIMEIfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIMEIfield changed
-
getDeviceOwnerUserPrincipalName
public Optional<String> getDeviceOwnerUserPrincipalName()
“Upn of the device owner.”- Returns:
- property deviceOwnerUserPrincipalName
-
withDeviceOwnerUserPrincipalName
public RemoteActionAudit withDeviceOwnerUserPrincipalName(String deviceOwnerUserPrincipalName)
Returns an immutable copy ofthiswith just thedeviceOwnerUserPrincipalNamefield 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.“Upn of the device owner.”
- Parameters:
deviceOwnerUserPrincipalName- new value ofdeviceOwnerUserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceOwnerUserPrincipalNamefield changed
-
getInitiatedByUserPrincipalName
public Optional<String> getInitiatedByUserPrincipalName()
“User who initiated the device action, format is UPN.”- Returns:
- property initiatedByUserPrincipalName
-
withInitiatedByUserPrincipalName
public RemoteActionAudit withInitiatedByUserPrincipalName(String initiatedByUserPrincipalName)
Returns an immutable copy ofthiswith just theinitiatedByUserPrincipalNamefield 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.“User who initiated the device action, format is UPN.”
- Parameters:
initiatedByUserPrincipalName- new value ofinitiatedByUserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinitiatedByUserPrincipalNamefield changed
-
getManagedDeviceId
public Optional<String> getManagedDeviceId()
“Action target.”- Returns:
- property managedDeviceId
-
withManagedDeviceId
public RemoteActionAudit withManagedDeviceId(String managedDeviceId)
Returns an immutable copy ofthiswith just themanagedDeviceIdfield 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.“Action target.”
- Parameters:
managedDeviceId- new value ofmanagedDeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagedDeviceIdfield changed
-
getRequestDateTime
public Optional<OffsetDateTime> getRequestDateTime()
“Time when the action was issued, given in UTC.”- Returns:
- property requestDateTime
-
withRequestDateTime
public RemoteActionAudit withRequestDateTime(OffsetDateTime requestDateTime)
Returns an immutable copy ofthiswith just therequestDateTimefield 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.“Time when the action was issued, given in UTC.”
- Parameters:
requestDateTime- new value ofrequestDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therequestDateTimefield changed
-
getUserName
public Optional<String> getUserName()
“[deprecated] Please use InitiatedByUserPrincipalName instead.”- Returns:
- property userName
-
withUserName
public RemoteActionAudit withUserName(String userName)
Returns an immutable copy ofthiswith just theuserNamefield 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.“[deprecated] Please use InitiatedByUserPrincipalName instead.”
- Parameters:
userName- new value ofuserNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserNamefield changed
-
withUnmappedField
public RemoteActionAudit 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 RemoteActionAudit patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public RemoteActionAudit put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-