Package odata.msgraph.client.entity
Class WindowsDeviceMalwareState
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.WindowsDeviceMalwareState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class WindowsDeviceMalwareState extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Malware detection entity.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsDeviceMalwareState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringadditionalInformationUrlprotected WindowsMalwareCategorycategoryprotected IntegerdetectionCountprotected StringdisplayNameprotected WindowsMalwareExecutionStateexecutionStateprotected OffsetDateTimeinitialDetectionDateTimeprotected OffsetDateTimelastStateChangeDateTimeprotected WindowsMalwareSeverityseverityprotected WindowsMalwareStatestateprotected WindowsMalwareThreatStatethreatState-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsDeviceMalwareState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsDeviceMalwareState.BuilderbuilderWindowsDeviceMalwareState()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getAdditionalInformationUrl()“Information URL to learn more about the malware”Optional<WindowsMalwareCategory>getCategory()“Category of the malware”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Integer>getDetectionCount()“Number of times the malware is detected”Optional<String>getDisplayName()“Malware 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<WindowsMalwareSeverity>getSeverity()“Severity of the malware”Optional<WindowsMalwareState>getState()“Current status of the malware like cleaned/quarantined/allowed etc”Optional<WindowsMalwareThreatState>getThreatState()“Current status of the malware like cleaned/quarantined/allowed etc”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()WindowsDeviceMalwareStatepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsDeviceMalwareStateput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()WindowsDeviceMalwareStatewithAdditionalInformationUrl(String additionalInformationUrl)Returns an immutable copy ofthiswith just theadditionalInformationUrlfield changed.WindowsDeviceMalwareStatewithCategory(WindowsMalwareCategory category)Returns an immutable copy ofthiswith just thecategoryfield changed.WindowsDeviceMalwareStatewithDetectionCount(Integer detectionCount)Returns an immutable copy ofthiswith just thedetectionCountfield changed.WindowsDeviceMalwareStatewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.WindowsDeviceMalwareStatewithExecutionState(WindowsMalwareExecutionState executionState)Returns an immutable copy ofthiswith just theexecutionStatefield changed.WindowsDeviceMalwareStatewithInitialDetectionDateTime(OffsetDateTime initialDetectionDateTime)Returns an immutable copy ofthiswith just theinitialDetectionDateTimefield changed.WindowsDeviceMalwareStatewithLastStateChangeDateTime(OffsetDateTime lastStateChangeDateTime)Returns an immutable copy ofthiswith just thelastStateChangeDateTimefield changed.WindowsDeviceMalwareStatewithSeverity(WindowsMalwareSeverity severity)Returns an immutable copy ofthiswith just theseverityfield changed.WindowsDeviceMalwareStatewithState(WindowsMalwareState state)Returns an immutable copy ofthiswith just thestatefield changed.WindowsDeviceMalwareStatewithThreatState(WindowsMalwareThreatState threatState)Returns an immutable copy ofthiswith just thethreatStatefield changed.WindowsDeviceMalwareStatewithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
additionalInformationUrl
protected String additionalInformationUrl
-
category
protected WindowsMalwareCategory category
-
detectionCount
protected Integer detectionCount
-
displayName
protected String displayName
-
executionState
protected WindowsMalwareExecutionState executionState
-
initialDetectionDateTime
protected OffsetDateTime initialDetectionDateTime
-
lastStateChangeDateTime
protected OffsetDateTime lastStateChangeDateTime
-
severity
protected WindowsMalwareSeverity severity
-
state
protected WindowsMalwareState state
-
threatState
protected WindowsMalwareThreatState threatState
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderWindowsDeviceMalwareState
public static WindowsDeviceMalwareState.Builder builderWindowsDeviceMalwareState()
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
-
getAdditionalInformationUrl
public Optional<String> getAdditionalInformationUrl()
“Information URL to learn more about the malware”- Returns:
- property additionalInformationUrl
-
withAdditionalInformationUrl
public WindowsDeviceMalwareState withAdditionalInformationUrl(String additionalInformationUrl)
Returns an immutable copy ofthiswith just theadditionalInformationUrlfield 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.“Information URL to learn more about the malware”
- Parameters:
additionalInformationUrl- new value ofadditionalInformationUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theadditionalInformationUrlfield changed
-
getCategory
public Optional<WindowsMalwareCategory> getCategory()
“Category of the malware”- Returns:
- property category
-
withCategory
public WindowsDeviceMalwareState withCategory(WindowsMalwareCategory category)
Returns an immutable copy ofthiswith just thecategoryfield 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.“Category of the malware”
- Parameters:
category- new value ofcategoryfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecategoryfield changed
-
getDetectionCount
public Optional<Integer> getDetectionCount()
“Number of times the malware is detected”- Returns:
- property detectionCount
-
withDetectionCount
public WindowsDeviceMalwareState 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
-
getDisplayName
public Optional<String> getDisplayName()
“Malware name”- Returns:
- property displayName
-
withDisplayName
public WindowsDeviceMalwareState withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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 name”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getExecutionState
public Optional<WindowsMalwareExecutionState> getExecutionState()
“Execution status of the malware like blocked/executing etc”- Returns:
- property executionState
-
withExecutionState
public WindowsDeviceMalwareState 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 WindowsDeviceMalwareState 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 WindowsDeviceMalwareState 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
-
getSeverity
public Optional<WindowsMalwareSeverity> getSeverity()
“Severity of the malware”- Returns:
- property severity
-
withSeverity
public WindowsDeviceMalwareState withSeverity(WindowsMalwareSeverity severity)
Returns an immutable copy ofthiswith just theseverityfield 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.“Severity of the malware”
- Parameters:
severity- new value ofseverityfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theseverityfield changed
-
getState
public Optional<WindowsMalwareState> getState()
“Current status of the malware like cleaned/quarantined/allowed etc”- Returns:
- property state
-
withState
public WindowsDeviceMalwareState withState(WindowsMalwareState 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.“Current status of the malware like cleaned/quarantined/allowed etc”
- Parameters:
state- new value ofstatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatefield changed
-
getThreatState
public Optional<WindowsMalwareThreatState> getThreatState()
“Current status of the malware like cleaned/quarantined/allowed etc”- Returns:
- property threatState
-
withThreatState
public WindowsDeviceMalwareState 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.“Current 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 WindowsDeviceMalwareState 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 WindowsDeviceMalwareState patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public WindowsDeviceMalwareState put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-