Package odata.msgraph.client.beta.entity
Class DeviceHealthScriptDeviceState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceHealthScriptDeviceState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceHealthScriptDeviceState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties for device run state of the device health script.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceHealthScriptDeviceState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<String>assignmentFilterIdsprotected StringassignmentFilterIdsNextLinkprotected RunStatedetectionStateprotected OffsetDateTimeexpectedStateUpdateDateTimeprotected OffsetDateTimelastStateUpdateDateTimeprotected OffsetDateTimelastSyncDateTimeprotected StringpostRemediationDetectionScriptErrorprotected StringpostRemediationDetectionScriptOutputprotected StringpreRemediationDetectionScriptErrorprotected StringpreRemediationDetectionScriptOutputprotected StringremediationScriptErrorprotected RemediationStateremediationState-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceHealthScriptDeviceState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceHealthScriptDeviceState.BuilderbuilderDeviceHealthScriptDeviceState()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.CollectionPage<String>getAssignmentFilterIds()“A list of the assignment filter ids used for health script applicability evaluation”com.github.davidmoten.odata.client.CollectionPage<String>getAssignmentFilterIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“A list of the assignment filter ids used for health script applicability evaluation”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<RunState>getDetectionState()“Detection state from the lastest device health script execution”Optional<OffsetDateTime>getExpectedStateUpdateDateTime()“The next timestamp of when the device health script is expected to execute”Optional<OffsetDateTime>getLastStateUpdateDateTime()“The last timestamp of when the device health script executed”Optional<OffsetDateTime>getLastSyncDateTime()“The last time that Intune Managment Extension synced with Intune”ManagedDeviceRequestgetManagedDevice()“The managed device on which the device health script executed”Optional<String>getPostRemediationDetectionScriptError()“Error from the detection script after remediation”Optional<String>getPostRemediationDetectionScriptOutput()“Detection script output after remediation”Optional<String>getPreRemediationDetectionScriptError()“Error from the detection script before remediation”Optional<String>getPreRemediationDetectionScriptOutput()“Output of the detection script before remediation”Optional<String>getRemediationScriptError()“Error output of the remediation script”Optional<RemediationState>getRemediationState()“Remediation state from the lastest device health script execution”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceHealthScriptDeviceStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceHealthScriptDeviceStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceHealthScriptDeviceStatewithAssignmentFilterIds(List<String> assignmentFilterIds)Returns an immutable copy ofthiswith just theassignmentFilterIdsfield changed.DeviceHealthScriptDeviceStatewithDetectionState(RunState detectionState)Returns an immutable copy ofthiswith just thedetectionStatefield changed.DeviceHealthScriptDeviceStatewithExpectedStateUpdateDateTime(OffsetDateTime expectedStateUpdateDateTime)Returns an immutable copy ofthiswith just theexpectedStateUpdateDateTimefield changed.DeviceHealthScriptDeviceStatewithLastStateUpdateDateTime(OffsetDateTime lastStateUpdateDateTime)Returns an immutable copy ofthiswith just thelastStateUpdateDateTimefield changed.DeviceHealthScriptDeviceStatewithLastSyncDateTime(OffsetDateTime lastSyncDateTime)Returns an immutable copy ofthiswith just thelastSyncDateTimefield changed.DeviceHealthScriptDeviceStatewithPostRemediationDetectionScriptError(String postRemediationDetectionScriptError)Returns an immutable copy ofthiswith just thepostRemediationDetectionScriptErrorfield changed.DeviceHealthScriptDeviceStatewithPostRemediationDetectionScriptOutput(String postRemediationDetectionScriptOutput)Returns an immutable copy ofthiswith just thepostRemediationDetectionScriptOutputfield changed.DeviceHealthScriptDeviceStatewithPreRemediationDetectionScriptError(String preRemediationDetectionScriptError)Returns an immutable copy ofthiswith just thepreRemediationDetectionScriptErrorfield changed.DeviceHealthScriptDeviceStatewithPreRemediationDetectionScriptOutput(String preRemediationDetectionScriptOutput)Returns an immutable copy ofthiswith just thepreRemediationDetectionScriptOutputfield changed.DeviceHealthScriptDeviceStatewithRemediationScriptError(String remediationScriptError)Returns an immutable copy ofthiswith just theremediationScriptErrorfield changed.DeviceHealthScriptDeviceStatewithRemediationState(RemediationState remediationState)Returns an immutable copy ofthiswith just theremediationStatefield changed.DeviceHealthScriptDeviceStatewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
assignmentFilterIdsNextLink
protected String assignmentFilterIdsNextLink
-
detectionState
protected RunState detectionState
-
expectedStateUpdateDateTime
protected OffsetDateTime expectedStateUpdateDateTime
-
lastStateUpdateDateTime
protected OffsetDateTime lastStateUpdateDateTime
-
lastSyncDateTime
protected OffsetDateTime lastSyncDateTime
-
postRemediationDetectionScriptError
protected String postRemediationDetectionScriptError
-
postRemediationDetectionScriptOutput
protected String postRemediationDetectionScriptOutput
-
preRemediationDetectionScriptError
protected String preRemediationDetectionScriptError
-
preRemediationDetectionScriptOutput
protected String preRemediationDetectionScriptOutput
-
remediationScriptError
protected String remediationScriptError
-
remediationState
protected RemediationState remediationState
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceHealthScriptDeviceState
public static DeviceHealthScriptDeviceState.Builder builderDeviceHealthScriptDeviceState()
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
-
getAssignmentFilterIds
public com.github.davidmoten.odata.client.CollectionPage<String> getAssignmentFilterIds()
“A list of the assignment filter ids used for health script applicability evaluation”- Returns:
- property assignmentFilterIds
-
withAssignmentFilterIds
public DeviceHealthScriptDeviceState withAssignmentFilterIds(List<String> assignmentFilterIds)
Returns an immutable copy ofthiswith just theassignmentFilterIdsfield 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.“A list of the assignment filter ids used for health script applicability evaluation”
- Parameters:
assignmentFilterIds- new value ofassignmentFilterIdsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theassignmentFilterIdsfield changed
-
getAssignmentFilterIds
public com.github.davidmoten.odata.client.CollectionPage<String> getAssignmentFilterIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“A list of the assignment filter ids used for health script applicability evaluation”- Parameters:
options- specify connect and read timeouts- Returns:
- property assignmentFilterIds
-
getDetectionState
public Optional<RunState> getDetectionState()
“Detection state from the lastest device health script execution”- Returns:
- property detectionState
-
withDetectionState
public DeviceHealthScriptDeviceState withDetectionState(RunState detectionState)
Returns an immutable copy ofthiswith just thedetectionStatefield 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.“Detection state from the lastest device health script execution”
- Parameters:
detectionState- new value ofdetectionStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedetectionStatefield changed
-
getExpectedStateUpdateDateTime
public Optional<OffsetDateTime> getExpectedStateUpdateDateTime()
“The next timestamp of when the device health script is expected to execute”- Returns:
- property expectedStateUpdateDateTime
-
withExpectedStateUpdateDateTime
public DeviceHealthScriptDeviceState withExpectedStateUpdateDateTime(OffsetDateTime expectedStateUpdateDateTime)
Returns an immutable copy ofthiswith just theexpectedStateUpdateDateTimefield 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 next timestamp of when the device health script is expected to execute”
- Parameters:
expectedStateUpdateDateTime- new value ofexpectedStateUpdateDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexpectedStateUpdateDateTimefield changed
-
getLastStateUpdateDateTime
public Optional<OffsetDateTime> getLastStateUpdateDateTime()
“The last timestamp of when the device health script executed”- Returns:
- property lastStateUpdateDateTime
-
withLastStateUpdateDateTime
public DeviceHealthScriptDeviceState withLastStateUpdateDateTime(OffsetDateTime lastStateUpdateDateTime)
Returns an immutable copy ofthiswith just thelastStateUpdateDateTimefield 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 last timestamp of when the device health script executed”
- Parameters:
lastStateUpdateDateTime- new value oflastStateUpdateDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastStateUpdateDateTimefield changed
-
getLastSyncDateTime
public Optional<OffsetDateTime> getLastSyncDateTime()
“The last time that Intune Managment Extension synced with Intune”- Returns:
- property lastSyncDateTime
-
withLastSyncDateTime
public DeviceHealthScriptDeviceState withLastSyncDateTime(OffsetDateTime lastSyncDateTime)
Returns an immutable copy ofthiswith just thelastSyncDateTimefield 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 last time that Intune Managment Extension synced with Intune”
- Parameters:
lastSyncDateTime- new value oflastSyncDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastSyncDateTimefield changed
-
getPostRemediationDetectionScriptError
public Optional<String> getPostRemediationDetectionScriptError()
“Error from the detection script after remediation”- Returns:
- property postRemediationDetectionScriptError
-
withPostRemediationDetectionScriptError
public DeviceHealthScriptDeviceState withPostRemediationDetectionScriptError(String postRemediationDetectionScriptError)
Returns an immutable copy ofthiswith just thepostRemediationDetectionScriptErrorfield 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.“Error from the detection script after remediation”
- Parameters:
postRemediationDetectionScriptError- new value ofpostRemediationDetectionScriptErrorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepostRemediationDetectionScriptErrorfield changed
-
getPostRemediationDetectionScriptOutput
public Optional<String> getPostRemediationDetectionScriptOutput()
“Detection script output after remediation”- Returns:
- property postRemediationDetectionScriptOutput
-
withPostRemediationDetectionScriptOutput
public DeviceHealthScriptDeviceState withPostRemediationDetectionScriptOutput(String postRemediationDetectionScriptOutput)
Returns an immutable copy ofthiswith just thepostRemediationDetectionScriptOutputfield 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.“Detection script output after remediation”
- Parameters:
postRemediationDetectionScriptOutput- new value ofpostRemediationDetectionScriptOutputfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepostRemediationDetectionScriptOutputfield changed
-
getPreRemediationDetectionScriptError
public Optional<String> getPreRemediationDetectionScriptError()
“Error from the detection script before remediation”- Returns:
- property preRemediationDetectionScriptError
-
withPreRemediationDetectionScriptError
public DeviceHealthScriptDeviceState withPreRemediationDetectionScriptError(String preRemediationDetectionScriptError)
Returns an immutable copy ofthiswith just thepreRemediationDetectionScriptErrorfield 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.“Error from the detection script before remediation”
- Parameters:
preRemediationDetectionScriptError- new value ofpreRemediationDetectionScriptErrorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepreRemediationDetectionScriptErrorfield changed
-
getPreRemediationDetectionScriptOutput
public Optional<String> getPreRemediationDetectionScriptOutput()
“Output of the detection script before remediation”- Returns:
- property preRemediationDetectionScriptOutput
-
withPreRemediationDetectionScriptOutput
public DeviceHealthScriptDeviceState withPreRemediationDetectionScriptOutput(String preRemediationDetectionScriptOutput)
Returns an immutable copy ofthiswith just thepreRemediationDetectionScriptOutputfield 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.“Output of the detection script before remediation”
- Parameters:
preRemediationDetectionScriptOutput- new value ofpreRemediationDetectionScriptOutputfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepreRemediationDetectionScriptOutputfield changed
-
getRemediationScriptError
public Optional<String> getRemediationScriptError()
“Error output of the remediation script”- Returns:
- property remediationScriptError
-
withRemediationScriptError
public DeviceHealthScriptDeviceState withRemediationScriptError(String remediationScriptError)
Returns an immutable copy ofthiswith just theremediationScriptErrorfield 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.“Error output of the remediation script”
- Parameters:
remediationScriptError- new value ofremediationScriptErrorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theremediationScriptErrorfield changed
-
getRemediationState
public Optional<RemediationState> getRemediationState()
“Remediation state from the lastest device health script execution”- Returns:
- property remediationState
-
withRemediationState
public DeviceHealthScriptDeviceState withRemediationState(RemediationState remediationState)
Returns an immutable copy ofthiswith just theremediationStatefield 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.“Remediation state from the lastest device health script execution”
- Parameters:
remediationState- new value ofremediationStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theremediationStatefield changed
-
withUnmappedField
public DeviceHealthScriptDeviceState withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getManagedDevice
public ManagedDeviceRequest getManagedDevice()
“The managed device on which the device health script executed”- Returns:
- navigational property managedDevice
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public DeviceHealthScriptDeviceState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceHealthScriptDeviceState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-