Class DeviceHealthScriptRemediationHistoryData
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeviceHealthScriptRemediationHistoryData
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeviceHealthScriptRemediationHistoryData extends Object implements com.github.davidmoten.odata.client.ODataType
“The number of devices remediated by a device health script on a given date.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceHealthScriptRemediationHistoryData.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected LocalDatedateprotected IntegernoIssueDeviceCountprotected StringodataTypeprotected IntegerremediatedDeviceCountprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceHealthScriptRemediationHistoryData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceHealthScriptRemediationHistoryData.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<LocalDate>getDate()“The date on which devices were remediated by the device health script.”Optional<Integer>getNoIssueDeviceCount()“The number of devices that were found to have no issue by the device health script.”Optional<Integer>getRemediatedDeviceCount()“The number of devices remediated by the device health script.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeviceHealthScriptRemediationHistoryDatawithDate(LocalDate date)Returns an immutable copy ofthiswith just thedatefield changed.DeviceHealthScriptRemediationHistoryDatawithNoIssueDeviceCount(Integer noIssueDeviceCount)Returns an immutable copy ofthiswith just thenoIssueDeviceCountfield changed.DeviceHealthScriptRemediationHistoryDatawithRemediatedDeviceCount(Integer remediatedDeviceCount)Returns an immutable copy ofthiswith just theremediatedDeviceCountfield changed.DeviceHealthScriptRemediationHistoryDatawithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
date
protected LocalDate date
-
noIssueDeviceCount
protected Integer noIssueDeviceCount
-
remediatedDeviceCount
protected Integer remediatedDeviceCount
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDate
public Optional<LocalDate> getDate()
“The date on which devices were remediated by the device health script.”- Returns:
- property date
-
withDate
public DeviceHealthScriptRemediationHistoryData withDate(LocalDate date)
Returns an immutable copy ofthiswith just thedatefield 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 date on which devices were remediated by the device health script.”
- Parameters:
date- new value ofdatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedatefield changed
-
getNoIssueDeviceCount
public Optional<Integer> getNoIssueDeviceCount()
“The number of devices that were found to have no issue by the device health script.”- Returns:
- property noIssueDeviceCount
-
withNoIssueDeviceCount
public DeviceHealthScriptRemediationHistoryData withNoIssueDeviceCount(Integer noIssueDeviceCount)
Returns an immutable copy ofthiswith just thenoIssueDeviceCountfield 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 number of devices that were found to have no issue by the device health script.”
- Parameters:
noIssueDeviceCount- new value ofnoIssueDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenoIssueDeviceCountfield changed
-
getRemediatedDeviceCount
public Optional<Integer> getRemediatedDeviceCount()
“The number of devices remediated by the device health script.”- Returns:
- property remediatedDeviceCount
-
withRemediatedDeviceCount
public DeviceHealthScriptRemediationHistoryData withRemediatedDeviceCount(Integer remediatedDeviceCount)
Returns an immutable copy ofthiswith just theremediatedDeviceCountfield 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 number of devices remediated by the device health script.”
- Parameters:
remediatedDeviceCount- new value ofremediatedDeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theremediatedDeviceCountfield changed
-
withUnmappedField
public DeviceHealthScriptRemediationHistoryData withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static DeviceHealthScriptRemediationHistoryData.Builder builder()
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
-
-