Package odata.msgraph.client.entity
Class MalwareStateForWindowsDevice
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.MalwareStateForWindowsDevice
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MalwareStateForWindowsDevice extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Malware state for a windows device”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMalwareStateForWindowsDevice.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegerdetectionCountprotected StringdeviceNameprotected WindowsMalwareExecutionStateexecutionStateprotected OffsetDateTimeinitialDetectionDateTimeprotected OffsetDateTimelastStateChangeDateTimeprotected WindowsMalwareThreatStatethreatState-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMalwareStateForWindowsDevice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MalwareStateForWindowsDevice.BuilderbuilderMalwareStateForWindowsDevice()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>getDetectionCount()“Indicates the number of times the malware is detected”Optional<String>getDeviceName()“Indicates the name of the device being evaluated for malware state”Optional<WindowsMalwareExecutionState>getExecutionState()“Indicates execution status of the malware.Optional<OffsetDateTime>getInitialDetectionDateTime()“Initial detection datetime of the malware”Optional<OffsetDateTime>getLastStateChangeDateTime()“The last time this particular threat was changed”Optional<WindowsMalwareThreatState>getThreatState()“Indicates threat status of the malware.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()MalwareStateForWindowsDevicepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MalwareStateForWindowsDeviceput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MalwareStateForWindowsDevicewithDetectionCount(Integer detectionCount)Returns an immutable copy ofthiswith just thedetectionCountfield changed.MalwareStateForWindowsDevicewithDeviceName(String deviceName)Returns an immutable copy ofthiswith just thedeviceNamefield changed.MalwareStateForWindowsDevicewithExecutionState(WindowsMalwareExecutionState executionState)Returns an immutable copy ofthiswith just theexecutionStatefield changed.MalwareStateForWindowsDevicewithInitialDetectionDateTime(OffsetDateTime initialDetectionDateTime)Returns an immutable copy ofthiswith just theinitialDetectionDateTimefield changed.MalwareStateForWindowsDevicewithLastStateChangeDateTime(OffsetDateTime lastStateChangeDateTime)Returns an immutable copy ofthiswith just thelastStateChangeDateTimefield changed.MalwareStateForWindowsDevicewithThreatState(WindowsMalwareThreatState threatState)Returns an immutable copy ofthiswith just thethreatStatefield changed.MalwareStateForWindowsDevicewithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
detectionCount
protected Integer detectionCount
-
deviceName
protected String deviceName
-
executionState
protected WindowsMalwareExecutionState executionState
-
initialDetectionDateTime
protected OffsetDateTime initialDetectionDateTime
-
lastStateChangeDateTime
protected OffsetDateTime lastStateChangeDateTime
-
threatState
protected WindowsMalwareThreatState threatState
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMalwareStateForWindowsDevice
public static MalwareStateForWindowsDevice.Builder builderMalwareStateForWindowsDevice()
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
-
getDetectionCount
public Optional<Integer> getDetectionCount()
“Indicates the number of times the malware is detected”- Returns:
- property detectionCount
-
withDetectionCount
public MalwareStateForWindowsDevice withDetectionCount(Integer detectionCount)
Returns an immutable copy ofthiswith just thedetectionCountfield 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.“Indicates the number of times the malware is detected”
- Parameters:
detectionCount- new value ofdetectionCountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedetectionCountfield changed
-
getDeviceName
public Optional<String> getDeviceName()
“Indicates the name of the device being evaluated for malware state”- Returns:
- property deviceName
-
withDeviceName
public MalwareStateForWindowsDevice withDeviceName(String deviceName)
Returns an immutable copy ofthiswith just thedeviceNamefield 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.“Indicates the name of the device being evaluated for malware state”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
getExecutionState
public Optional<WindowsMalwareExecutionState> getExecutionState()
“Indicates execution status of the malware. Possible values are: unknown, blocked , allowed, running, notRunning. Defaults to unknown”- Returns:
- property executionState
-
withExecutionState
public MalwareStateForWindowsDevice withExecutionState(WindowsMalwareExecutionState executionState)
Returns an immutable copy ofthiswith just theexecutionStatefield 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.“Indicates execution status of the malware. Possible values are: unknown, blocked , allowed, running, notRunning. Defaults to unknown”
- Parameters:
executionState- new value ofexecutionStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexecutionStatefield changed
-
getInitialDetectionDateTime
public Optional<OffsetDateTime> getInitialDetectionDateTime()
“Initial detection datetime of the malware”- Returns:
- property initialDetectionDateTime
-
withInitialDetectionDateTime
public MalwareStateForWindowsDevice withInitialDetectionDateTime(OffsetDateTime initialDetectionDateTime)
Returns an immutable copy ofthiswith just theinitialDetectionDateTimefield 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.“Initial detection datetime of the malware”
- Parameters:
initialDetectionDateTime- new value ofinitialDetectionDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinitialDetectionDateTimefield changed
-
getLastStateChangeDateTime
public Optional<OffsetDateTime> getLastStateChangeDateTime()
“The last time this particular threat was changed”- Returns:
- property lastStateChangeDateTime
-
withLastStateChangeDateTime
public MalwareStateForWindowsDevice withLastStateChangeDateTime(OffsetDateTime lastStateChangeDateTime)
Returns an immutable copy ofthiswith just thelastStateChangeDateTimefield 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 this particular threat was changed”
- Parameters:
lastStateChangeDateTime- new value oflastStateChangeDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastStateChangeDateTimefield changed
-
getThreatState
public Optional<WindowsMalwareThreatState> getThreatState()
“Indicates threat status of the malware. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. defaults to noStatusCleared”- Returns:
- property threatState
-
withThreatState
public MalwareStateForWindowsDevice withThreatState(WindowsMalwareThreatState threatState)
Returns an immutable copy ofthiswith just thethreatStatefield 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.“Indicates threat status of the malware. Possible values are: active, actionFailed, manualStepsRequired, fullScanRequired, rebootRequired, remediatedWithNonCriticalFailures, quarantined, removed, cleaned, allowed, noStatusCleared. defaults to noStatusCleared”
- Parameters:
threatState- new value ofthreatStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thethreatStatefield changed
-
withUnmappedField
public MalwareStateForWindowsDevice withUnmappedField(String name, Object 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 MalwareStateForWindowsDevice patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MalwareStateForWindowsDevice put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-