Package odata.msgraph.client.beta.entity
Class MalwareStateForWindowsDevice
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.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.beta.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()“Number of times the malware is detected”Optional<String>getDeviceName()“Device name”Optional<WindowsMalwareExecutionState>getExecutionState()“Execution status of the malware like blocked/executing etc”Optional<OffsetDateTime>getInitialDetectionDateTime()“Initial detection datetime of the malware”Optional<OffsetDateTime>getLastStateChangeDateTime()“The last time this particular threat was changed”Optional<WindowsMalwareThreatState>getThreatState()“Threat status of the malware like cleaned/quarantined/allowed etc”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, String 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()
“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.“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
-
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.“Device name”
- Parameters:
deviceName- new value ofdeviceNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceNamefield changed
-
getExecutionState
public Optional<WindowsMalwareExecutionState> getExecutionState()
“Execution status of the malware like blocked/executing etc”- 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.“Execution status of the malware like blocked/executing etc”
- 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()
“Threat status of the malware like cleaned/quarantined/allowed etc”- 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.“Threat status of the malware like cleaned/quarantined/allowed etc”
- Parameters:
threatState- new value ofthreatStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thethreatStatefield changed
-
withUnmappedField
public MalwareStateForWindowsDevice 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 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).
-
-