Package odata.msgraph.client.beta.entity
Class DeviceComplianceScriptDeviceState
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceComplianceScriptDeviceState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceComplianceScriptDeviceState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties for device run state of the device compliance script.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceComplianceScriptDeviceState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected RunStatedetectionStateprotected OffsetDateTimeexpectedStateUpdateDateTimeprotected OffsetDateTimelastStateUpdateDateTimeprotected OffsetDateTimelastSyncDateTimeprotected StringscriptErrorprotected StringscriptOutput-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceComplianceScriptDeviceState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceComplianceScriptDeviceState.BuilderbuilderDeviceComplianceScriptDeviceState()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.internal.ChangedFieldsgetChangedFields()Optional<RunState>getDetectionState()“Detection state from the lastest device compliance script execution”Optional<OffsetDateTime>getExpectedStateUpdateDateTime()“The next timestamp of when the device compliance script is expected to execute”Optional<OffsetDateTime>getLastStateUpdateDateTime()“The last timestamp of when the device compliance script executed”Optional<OffsetDateTime>getLastSyncDateTime()“The last time that Intune Managment Extension synced with Intune”ManagedDeviceRequestgetManagedDevice()“The managed device on which the device compliance script executed”Optional<String>getScriptError()“Error from the detection script”Optional<String>getScriptOutput()“Output of the detection script”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceComplianceScriptDeviceStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceComplianceScriptDeviceStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceComplianceScriptDeviceStatewithDetectionState(RunState detectionState)Returns an immutable copy ofthiswith just thedetectionStatefield changed.DeviceComplianceScriptDeviceStatewithExpectedStateUpdateDateTime(OffsetDateTime expectedStateUpdateDateTime)Returns an immutable copy ofthiswith just theexpectedStateUpdateDateTimefield changed.DeviceComplianceScriptDeviceStatewithLastStateUpdateDateTime(OffsetDateTime lastStateUpdateDateTime)Returns an immutable copy ofthiswith just thelastStateUpdateDateTimefield changed.DeviceComplianceScriptDeviceStatewithLastSyncDateTime(OffsetDateTime lastSyncDateTime)Returns an immutable copy ofthiswith just thelastSyncDateTimefield changed.DeviceComplianceScriptDeviceStatewithScriptError(String scriptError)Returns an immutable copy ofthiswith just thescriptErrorfield changed.DeviceComplianceScriptDeviceStatewithScriptOutput(String scriptOutput)Returns an immutable copy ofthiswith just thescriptOutputfield changed.DeviceComplianceScriptDeviceStatewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
detectionState
protected RunState detectionState
-
expectedStateUpdateDateTime
protected OffsetDateTime expectedStateUpdateDateTime
-
lastStateUpdateDateTime
protected OffsetDateTime lastStateUpdateDateTime
-
lastSyncDateTime
protected OffsetDateTime lastSyncDateTime
-
scriptError
protected String scriptError
-
scriptOutput
protected String scriptOutput
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceComplianceScriptDeviceState
public static DeviceComplianceScriptDeviceState.Builder builderDeviceComplianceScriptDeviceState()
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
-
getDetectionState
public Optional<RunState> getDetectionState()
“Detection state from the lastest device compliance script execution”- Returns:
- property detectionState
-
withDetectionState
public DeviceComplianceScriptDeviceState 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 compliance 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 compliance script is expected to execute”- Returns:
- property expectedStateUpdateDateTime
-
withExpectedStateUpdateDateTime
public DeviceComplianceScriptDeviceState 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 compliance 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 compliance script executed”- Returns:
- property lastStateUpdateDateTime
-
withLastStateUpdateDateTime
public DeviceComplianceScriptDeviceState 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 compliance 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 DeviceComplianceScriptDeviceState 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
-
getScriptError
public Optional<String> getScriptError()
“Error from the detection script”- Returns:
- property scriptError
-
withScriptError
public DeviceComplianceScriptDeviceState withScriptError(String scriptError)
Returns an immutable copy ofthiswith just thescriptErrorfield 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”
- Parameters:
scriptError- new value ofscriptErrorfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thescriptErrorfield changed
-
getScriptOutput
public Optional<String> getScriptOutput()
“Output of the detection script”- Returns:
- property scriptOutput
-
withScriptOutput
public DeviceComplianceScriptDeviceState withScriptOutput(String scriptOutput)
Returns an immutable copy ofthiswith just thescriptOutputfield 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”
- Parameters:
scriptOutput- new value ofscriptOutputfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thescriptOutputfield changed
-
withUnmappedField
public DeviceComplianceScriptDeviceState withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getManagedDevice
public ManagedDeviceRequest getManagedDevice()
“The managed device on which the device compliance 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 DeviceComplianceScriptDeviceState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceComplianceScriptDeviceState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-