Package odata.msgraph.client.beta.entity
Class DeviceAppManagementTask
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceAppManagementTask
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
AppVulnerabilityTask,SecurityConfigurationTask,UnmanagedDeviceDiscoveryTask
public class DeviceAppManagementTask extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“A device app management task.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceAppManagementTask.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringassignedToprotected DeviceAppManagementTaskCategorycategoryprotected OffsetDateTimecreatedDateTimeprotected Stringcreatorprotected StringcreatorNotesprotected Stringdescriptionprotected StringdisplayNameprotected OffsetDateTimedueDateTimeprotected DeviceAppManagementTaskPrioritypriorityprotected DeviceAppManagementTaskStatusstatus-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceAppManagementTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceAppManagementTask.BuilderbuilderDeviceAppManagementTask()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAssignedTo()“The name or email of the admin this task is assigned to.”Optional<DeviceAppManagementTaskCategory>getCategory()“The category.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“The created date.”Optional<String>getCreator()“The email address of the creator.”Optional<String>getCreatorNotes()“Notes from the creator.”Optional<String>getDescription()“The description.”Optional<String>getDisplayName()“The name.”Optional<OffsetDateTime>getDueDateTime()“The due date.”Optional<DeviceAppManagementTaskPriority>getPriority()“The priority.”Optional<DeviceAppManagementTaskStatus>getStatus()“The status.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceAppManagementTaskpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceAppManagementTaskput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnupdateStatus(DeviceAppManagementTaskStatus status, String note)DeviceAppManagementTaskwithAssignedTo(String assignedTo)Returns an immutable copy ofthiswith just theassignedTofield changed.DeviceAppManagementTaskwithCategory(DeviceAppManagementTaskCategory category)Returns an immutable copy ofthiswith just thecategoryfield changed.DeviceAppManagementTaskwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.DeviceAppManagementTaskwithCreator(String creator)Returns an immutable copy ofthiswith just thecreatorfield changed.DeviceAppManagementTaskwithCreatorNotes(String creatorNotes)Returns an immutable copy ofthiswith just thecreatorNotesfield changed.DeviceAppManagementTaskwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.DeviceAppManagementTaskwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceAppManagementTaskwithDueDateTime(OffsetDateTime dueDateTime)Returns an immutable copy ofthiswith just thedueDateTimefield changed.DeviceAppManagementTaskwithPriority(DeviceAppManagementTaskPriority priority)Returns an immutable copy ofthiswith just thepriorityfield changed.DeviceAppManagementTaskwithStatus(DeviceAppManagementTaskStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.DeviceAppManagementTaskwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
assignedTo
protected String assignedTo
-
category
protected DeviceAppManagementTaskCategory category
-
createdDateTime
protected OffsetDateTime createdDateTime
-
creator
protected String creator
-
creatorNotes
protected String creatorNotes
-
description
protected String description
-
displayName
protected String displayName
-
dueDateTime
protected OffsetDateTime dueDateTime
-
priority
protected DeviceAppManagementTaskPriority priority
-
status
protected DeviceAppManagementTaskStatus status
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceAppManagementTask
public static DeviceAppManagementTask.Builder builderDeviceAppManagementTask()
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
-
getAssignedTo
public Optional<String> getAssignedTo()
“The name or email of the admin this task is assigned to.”- Returns:
- property assignedTo
-
withAssignedTo
public DeviceAppManagementTask withAssignedTo(String assignedTo)
Returns an immutable copy ofthiswith just theassignedTofield 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 name or email of the admin this task is assigned to.”
- Parameters:
assignedTo- new value ofassignedTofield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theassignedTofield changed
-
getCategory
public Optional<DeviceAppManagementTaskCategory> getCategory()
“The category.”- Returns:
- property category
-
withCategory
public DeviceAppManagementTask withCategory(DeviceAppManagementTaskCategory 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.“The category.”
- Parameters:
category- new value ofcategoryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecategoryfield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“The created date.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public DeviceAppManagementTask withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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 created date.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getCreator
public Optional<String> getCreator()
“The email address of the creator.”- Returns:
- property creator
-
withCreator
public DeviceAppManagementTask withCreator(String creator)
Returns an immutable copy ofthiswith just thecreatorfield 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 email address of the creator.”
- Parameters:
creator- new value ofcreatorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatorfield changed
-
getCreatorNotes
public Optional<String> getCreatorNotes()
“Notes from the creator.”- Returns:
- property creatorNotes
-
withCreatorNotes
public DeviceAppManagementTask withCreatorNotes(String creatorNotes)
Returns an immutable copy ofthiswith just thecreatorNotesfield 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.“Notes from the creator.”
- Parameters:
creatorNotes- new value ofcreatorNotesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatorNotesfield changed
-
getDescription
public Optional<String> getDescription()
“The description.”- Returns:
- property description
-
withDescription
public DeviceAppManagementTask withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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 description.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
withDisplayName
public DeviceAppManagementTask 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.“The name.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getDueDateTime
public Optional<OffsetDateTime> getDueDateTime()
“The due date.”- Returns:
- property dueDateTime
-
withDueDateTime
public DeviceAppManagementTask withDueDateTime(OffsetDateTime dueDateTime)
Returns an immutable copy ofthiswith just thedueDateTimefield 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 due date.”
- Parameters:
dueDateTime- new value ofdueDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedueDateTimefield changed
-
getPriority
public Optional<DeviceAppManagementTaskPriority> getPriority()
“The priority.”- Returns:
- property priority
-
withPriority
public DeviceAppManagementTask withPriority(DeviceAppManagementTaskPriority priority)
Returns an immutable copy ofthiswith just thepriorityfield 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 priority.”
- Parameters:
priority- new value ofpriorityfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepriorityfield changed
-
getStatus
public Optional<DeviceAppManagementTaskStatus> getStatus()
“The status.”- Returns:
- property status
-
withStatus
public DeviceAppManagementTask withStatus(DeviceAppManagementTaskStatus status)
Returns an immutable copy ofthiswith just thestatusfield 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 status.”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUnmappedField
public DeviceAppManagementTask 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 DeviceAppManagementTask patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceAppManagementTask put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
updateStatus
public com.github.davidmoten.odata.client.ActionRequestNoReturn updateStatus(DeviceAppManagementTaskStatus status, String note)
-
-