Package odata.msgraph.client.beta.entity
Class WindowsMalwareInformation
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.WindowsMalwareInformation
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class WindowsMalwareInformation extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Malware information entity.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsMalwareInformation.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringadditionalInformationUrlprotected WindowsMalwareCategorycategoryprotected StringdisplayNameprotected OffsetDateTimelastDetectionDateTimeprotected WindowsMalwareSeverityseverity-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsMalwareInformation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsMalwareInformation.BuilderbuilderWindowsMalwareInformation()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()MalwareStateForWindowsDeviceCollectionRequestgetDeviceMalwareStates()“List of devices affected by current malware with the malware state on each device”Optional<String>getDisplayName()“Malware name”Optional<OffsetDateTime>getLastDetectionDateTime()“The last time the malware is detected”Optional<WindowsMalwareSeverity>getSeverity()“Severity of the malware”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()WindowsMalwareInformationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsMalwareInformationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()WindowsMalwareInformationwithAdditionalInformationUrl(String additionalInformationUrl)Returns an immutable copy ofthiswith just theadditionalInformationUrlfield changed.WindowsMalwareInformationwithCategory(WindowsMalwareCategory category)Returns an immutable copy ofthiswith just thecategoryfield changed.WindowsMalwareInformationwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.WindowsMalwareInformationwithLastDetectionDateTime(OffsetDateTime lastDetectionDateTime)Returns an immutable copy ofthiswith just thelastDetectionDateTimefield changed.WindowsMalwareInformationwithSeverity(WindowsMalwareSeverity severity)Returns an immutable copy ofthiswith just theseverityfield changed.WindowsMalwareInformationwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
additionalInformationUrl
protected String additionalInformationUrl
-
category
protected WindowsMalwareCategory category
-
displayName
protected String displayName
-
lastDetectionDateTime
protected OffsetDateTime lastDetectionDateTime
-
severity
protected WindowsMalwareSeverity severity
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderWindowsMalwareInformation
public static WindowsMalwareInformation.Builder builderWindowsMalwareInformation()
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 WindowsMalwareInformation 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 WindowsMalwareInformation 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
-
getDisplayName
public Optional<String> getDisplayName()
“Malware name”- Returns:
- property displayName
-
withDisplayName
public WindowsMalwareInformation 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
-
getLastDetectionDateTime
public Optional<OffsetDateTime> getLastDetectionDateTime()
“The last time the malware is detected”- Returns:
- property lastDetectionDateTime
-
withLastDetectionDateTime
public WindowsMalwareInformation withLastDetectionDateTime(OffsetDateTime lastDetectionDateTime)
Returns an immutable copy ofthiswith just thelastDetectionDateTimefield 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 the malware is detected”
- Parameters:
lastDetectionDateTime- new value oflastDetectionDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastDetectionDateTimefield changed
-
getSeverity
public Optional<WindowsMalwareSeverity> getSeverity()
“Severity of the malware”- Returns:
- property severity
-
withSeverity
public WindowsMalwareInformation 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
-
withUnmappedField
public WindowsMalwareInformation withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getDeviceMalwareStates
public MalwareStateForWindowsDeviceCollectionRequest getDeviceMalwareStates()
“List of devices affected by current malware with the malware state on each device”- Returns:
- navigational property deviceMalwareStates
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public WindowsMalwareInformation patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public WindowsMalwareInformation put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-