Package odata.msgraph.client.complex
Class WindowsMalwareStateCount
- java.lang.Object
-
- odata.msgraph.client.complex.WindowsMalwareStateCount
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class WindowsMalwareStateCount extends Object implements com.github.davidmoten.odata.client.ODataType
“Windows Malware State Summary.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsMalwareStateCount.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected IntegerdeviceCountprotected IntegerdistinctMalwareCountprotected OffsetDateTimelastUpdateDateTimeprotected IntegermalwareDetectionCountprotected StringodataTypeprotected WindowsMalwareThreatStatestateprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsMalwareStateCount()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsMalwareStateCount.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getDeviceCount()“Count of devices with malware detections for this malware State”Optional<Integer>getDistinctMalwareCount()“Count of distinct malwares for this malware State.Optional<OffsetDateTime>getLastUpdateDateTime()“The Timestamp of the last update for the device count in UTC”Optional<Integer>getMalwareDetectionCount()“Count of total malware detections for this malware State.Optional<WindowsMalwareThreatState>getState()“Malware Threat State.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()WindowsMalwareStateCountwithDeviceCount(Integer deviceCount)Returns an immutable copy ofthiswith just thedeviceCountfield changed.WindowsMalwareStateCountwithDistinctMalwareCount(Integer distinctMalwareCount)Returns an immutable copy ofthiswith just thedistinctMalwareCountfield changed.WindowsMalwareStateCountwithLastUpdateDateTime(OffsetDateTime lastUpdateDateTime)Returns an immutable copy ofthiswith just thelastUpdateDateTimefield changed.WindowsMalwareStateCountwithMalwareDetectionCount(Integer malwareDetectionCount)Returns an immutable copy ofthiswith just themalwareDetectionCountfield changed.WindowsMalwareStateCountwithState(WindowsMalwareThreatState state)Returns an immutable copy ofthiswith just thestatefield changed.WindowsMalwareStateCountwithUnmappedField(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
-
deviceCount
protected Integer deviceCount
-
distinctMalwareCount
protected Integer distinctMalwareCount
-
lastUpdateDateTime
protected OffsetDateTime lastUpdateDateTime
-
malwareDetectionCount
protected Integer malwareDetectionCount
-
state
protected WindowsMalwareThreatState state
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDeviceCount
public Optional<Integer> getDeviceCount()
“Count of devices with malware detections for this malware State”- Returns:
- property deviceCount
-
withDeviceCount
public WindowsMalwareStateCount withDeviceCount(Integer deviceCount)
Returns an immutable copy ofthiswith just thedeviceCountfield 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.“Count of devices with malware detections for this malware State”
- Parameters:
deviceCount- new value ofdeviceCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceCountfield changed
-
getDistinctMalwareCount
public Optional<Integer> getDistinctMalwareCount()
“Count of distinct malwares for this malware State. Valid values -2147483648 to 2147483647”- Returns:
- property distinctMalwareCount
-
withDistinctMalwareCount
public WindowsMalwareStateCount withDistinctMalwareCount(Integer distinctMalwareCount)
Returns an immutable copy ofthiswith just thedistinctMalwareCountfield 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.“Count of distinct malwares for this malware State. Valid values -2147483648 to 2147483647”
- Parameters:
distinctMalwareCount- new value ofdistinctMalwareCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedistinctMalwareCountfield changed
-
getLastUpdateDateTime
public Optional<OffsetDateTime> getLastUpdateDateTime()
“The Timestamp of the last update for the device count in UTC”- Returns:
- property lastUpdateDateTime
-
withLastUpdateDateTime
public WindowsMalwareStateCount withLastUpdateDateTime(OffsetDateTime lastUpdateDateTime)
Returns an immutable copy ofthiswith just thelastUpdateDateTimefield 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 Timestamp of the last update for the device count in UTC”
- Parameters:
lastUpdateDateTime- new value oflastUpdateDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastUpdateDateTimefield changed
-
getMalwareDetectionCount
public Optional<Integer> getMalwareDetectionCount()
“Count of total malware detections for this malware State. Valid values - 2147483648 to 2147483647”- Returns:
- property malwareDetectionCount
-
withMalwareDetectionCount
public WindowsMalwareStateCount withMalwareDetectionCount(Integer malwareDetectionCount)
Returns an immutable copy ofthiswith just themalwareDetectionCountfield 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.“Count of total malware detections for this malware State. Valid values - 2147483648 to 2147483647”
- Parameters:
malwareDetectionCount- new value ofmalwareDetectionCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themalwareDetectionCountfield changed
-
getState
public Optional<WindowsMalwareThreatState> getState()
“Malware Threat State. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. Defaults to noStatusCleared. Computed.”- Returns:
- property state
-
withState
public WindowsMalwareStateCount withState(WindowsMalwareThreatState state)
Returns an immutable copy ofthiswith just thestatefield 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.“Malware Threat State. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. Defaults to noStatusCleared. Computed.”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
withUnmappedField
public WindowsMalwareStateCount 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 WindowsMalwareStateCount.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
-
-