Package odata.msgraph.client.beta.entity
Class DeviceComplianceScriptRunSummary
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceComplianceScriptRunSummary
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceComplianceScriptRunSummary extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties for the run summary of a device management script.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceComplianceScriptRunSummary.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegerdetectionScriptErrorDeviceCountprotected IntegerdetectionScriptPendingDeviceCountprotected IntegerissueDetectedDeviceCountprotected OffsetDateTimelastScriptRunDateTimeprotected IntegernoIssueDetectedDeviceCount-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceComplianceScriptRunSummary()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceComplianceScriptRunSummary.BuilderbuilderDeviceComplianceScriptRunSummary()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<Integer>getDetectionScriptErrorDeviceCount()“Number of devices on which the detection script execution encountered an error and did not complete.Optional<Integer>getDetectionScriptPendingDeviceCount()“Number of devices which have not yet run the latest version of the device compliance script.Optional<Integer>getIssueDetectedDeviceCount()“Number of devices for which the detection script found an issue.Optional<OffsetDateTime>getLastScriptRunDateTime()“Last run time for the script across all devices”Optional<Integer>getNoIssueDetectedDeviceCount()“Number of devices for which the detection script did not find an issue and the device is healthy.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceComplianceScriptRunSummarypatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceComplianceScriptRunSummaryput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceComplianceScriptRunSummarywithDetectionScriptErrorDeviceCount(Integer detectionScriptErrorDeviceCount)Returns an immutable copy ofthiswith just thedetectionScriptErrorDeviceCountfield changed.DeviceComplianceScriptRunSummarywithDetectionScriptPendingDeviceCount(Integer detectionScriptPendingDeviceCount)Returns an immutable copy ofthiswith just thedetectionScriptPendingDeviceCountfield changed.DeviceComplianceScriptRunSummarywithIssueDetectedDeviceCount(Integer issueDetectedDeviceCount)Returns an immutable copy ofthiswith just theissueDetectedDeviceCountfield changed.DeviceComplianceScriptRunSummarywithLastScriptRunDateTime(OffsetDateTime lastScriptRunDateTime)Returns an immutable copy ofthiswith just thelastScriptRunDateTimefield changed.DeviceComplianceScriptRunSummarywithNoIssueDetectedDeviceCount(Integer noIssueDetectedDeviceCount)Returns an immutable copy ofthiswith just thenoIssueDetectedDeviceCountfield changed.DeviceComplianceScriptRunSummarywithUnmappedField(String name, String value)
-
-
-
Field Detail
-
detectionScriptErrorDeviceCount
protected Integer detectionScriptErrorDeviceCount
-
detectionScriptPendingDeviceCount
protected Integer detectionScriptPendingDeviceCount
-
issueDetectedDeviceCount
protected Integer issueDetectedDeviceCount
-
lastScriptRunDateTime
protected OffsetDateTime lastScriptRunDateTime
-
noIssueDetectedDeviceCount
protected Integer noIssueDetectedDeviceCount
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceComplianceScriptRunSummary
public static DeviceComplianceScriptRunSummary.Builder builderDeviceComplianceScriptRunSummary()
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
-
getDetectionScriptErrorDeviceCount
public Optional<Integer> getDetectionScriptErrorDeviceCount()
“Number of devices on which the detection script execution encountered an error and did not complete. Valid values -2147483648 to 2147483647”- Returns:
- property detectionScriptErrorDeviceCount
-
withDetectionScriptErrorDeviceCount
public DeviceComplianceScriptRunSummary withDetectionScriptErrorDeviceCount(Integer detectionScriptErrorDeviceCount)
Returns an immutable copy ofthiswith just thedetectionScriptErrorDeviceCountfield 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.“Number of devices on which the detection script execution encountered an error and did not complete. Valid values -2147483648 to 2147483647”
- Parameters:
detectionScriptErrorDeviceCount- new value ofdetectionScriptErrorDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedetectionScriptErrorDeviceCountfield changed
-
getDetectionScriptPendingDeviceCount
public Optional<Integer> getDetectionScriptPendingDeviceCount()
“Number of devices which have not yet run the latest version of the device compliance script. Valid values -2147483648 to 2147483647”- Returns:
- property detectionScriptPendingDeviceCount
-
withDetectionScriptPendingDeviceCount
public DeviceComplianceScriptRunSummary withDetectionScriptPendingDeviceCount(Integer detectionScriptPendingDeviceCount)
Returns an immutable copy ofthiswith just thedetectionScriptPendingDeviceCountfield 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.“Number of devices which have not yet run the latest version of the device compliance script. Valid values -2147483648 to 2147483647”
- Parameters:
detectionScriptPendingDeviceCount- new value ofdetectionScriptPendingDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedetectionScriptPendingDeviceCountfield changed
-
getIssueDetectedDeviceCount
public Optional<Integer> getIssueDetectedDeviceCount()
“Number of devices for which the detection script found an issue. Valid values - 2147483648 to 2147483647”- Returns:
- property issueDetectedDeviceCount
-
withIssueDetectedDeviceCount
public DeviceComplianceScriptRunSummary withIssueDetectedDeviceCount(Integer issueDetectedDeviceCount)
Returns an immutable copy ofthiswith just theissueDetectedDeviceCountfield 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.“Number of devices for which the detection script found an issue. Valid values - 2147483648 to 2147483647”
- Parameters:
issueDetectedDeviceCount- new value ofissueDetectedDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theissueDetectedDeviceCountfield changed
-
getLastScriptRunDateTime
public Optional<OffsetDateTime> getLastScriptRunDateTime()
“Last run time for the script across all devices”- Returns:
- property lastScriptRunDateTime
-
withLastScriptRunDateTime
public DeviceComplianceScriptRunSummary withLastScriptRunDateTime(OffsetDateTime lastScriptRunDateTime)
Returns an immutable copy ofthiswith just thelastScriptRunDateTimefield 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.“Last run time for the script across all devices”
- Parameters:
lastScriptRunDateTime- new value oflastScriptRunDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastScriptRunDateTimefield changed
-
getNoIssueDetectedDeviceCount
public Optional<Integer> getNoIssueDetectedDeviceCount()
“Number of devices for which the detection script did not find an issue and the device is healthy. Valid values -2147483648 to 2147483647”- Returns:
- property noIssueDetectedDeviceCount
-
withNoIssueDetectedDeviceCount
public DeviceComplianceScriptRunSummary withNoIssueDetectedDeviceCount(Integer noIssueDetectedDeviceCount)
Returns an immutable copy ofthiswith just thenoIssueDetectedDeviceCountfield 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.“Number of devices for which the detection script did not find an issue and the device is healthy. Valid values -2147483648 to 2147483647”
- Parameters:
noIssueDetectedDeviceCount- new value ofnoIssueDetectedDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenoIssueDetectedDeviceCountfield changed
-
withUnmappedField
public DeviceComplianceScriptRunSummary 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 DeviceComplianceScriptRunSummary patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceComplianceScriptRunSummary put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-