Class Vulnerability
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.security.Vulnerability
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Vulnerability
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Vulnerability
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the activeExploitsObserved property value.Gets the articles property value.Gets the commonWeaknessEnumerationIds property value.Gets the components property value.Gets the createdDateTime property value.Gets the cvss2Summary property value.Gets the cvss3Summary property value.Gets the description property value.Gets the exploits property value.Gets the exploitsAvailable property value.The deserialization information for the current modelGets the hasChatter property value.Gets the lastModifiedDateTime property value.Gets the priorityScore property value.Gets the publishedDateTime property value.Gets the references property value.Gets the remediation property value.Gets the severity property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setActiveExploitsObserved
(Boolean value) Sets the activeExploitsObserved property value.void
setArticles
(List<Article> value) Sets the articles property value.void
Sets the commonWeaknessEnumerationIds property value.void
setComponents
(List<VulnerabilityComponent> value) Sets the components property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setCvss2Summary
(CvssSummary value) Sets the cvss2Summary property value.void
setCvss3Summary
(CvssSummary value) Sets the cvss3Summary property value.void
setDescription
(FormattedContent value) Sets the description property value.void
setExploits
(List<Hyperlink> value) Sets the exploits property value.void
setExploitsAvailable
(Boolean value) Sets the exploitsAvailable property value.void
setHasChatter
(Boolean value) Sets the hasChatter property value.void
Sets the lastModifiedDateTime property value.void
setPriorityScore
(Integer value) Sets the priorityScore property value.void
Sets the publishedDateTime property value.void
setReferences
(List<Hyperlink> value) Sets the references property value.void
setRemediation
(FormattedContent value) Sets the remediation property value.void
setSeverity
(VulnerabilitySeverity value) Sets the severity property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Vulnerability
public Vulnerability()Instantiates a newVulnerability
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Vulnerability createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
Vulnerability
-
getActiveExploitsObserved
Gets the activeExploitsObserved property value. Indicates whether this vulnerability has any known exploits associated to known bad actors.- Returns:
- a
Boolean
-
getArticles
Gets the articles property value. Articles related to this vulnerability. -
getCommonWeaknessEnumerationIds
Gets the commonWeaknessEnumerationIds property value. Community-defined common weakness enumerations (CWE). -
getComponents
Gets the components property value. Components related to this vulnerability article.- Returns:
- a
List<VulnerabilityComponent>
-
getCreatedDateTime
Gets the createdDateTime property value. The date and time when this vulnerability article was first created.- Returns:
- a
OffsetDateTime
-
getCvss2Summary
Gets the cvss2Summary property value. The cvss2Summary property- Returns:
- a
CvssSummary
-
getCvss3Summary
Gets the cvss3Summary property value. The cvss3Summary property- Returns:
- a
CvssSummary
-
getDescription
Gets the description property value. The description property- Returns:
- a
FormattedContent
-
getExploits
Gets the exploits property value. Known exploits for this vulnerability. -
getExploitsAvailable
Gets the exploitsAvailable property value. Indicates whether this vulnerability has exploits in public sources (such as Packetstorm or Exploit-DB) online.- Returns:
- a
Boolean
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getHasChatter
Gets the hasChatter property value. Indicates whether chatter about this vulnerability has been discovered online.- Returns:
- a
Boolean
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. The date and time when this vulnerability article was most recently updated.- Returns:
- a
OffsetDateTime
-
getPriorityScore
Gets the priorityScore property value. A unique algorithm that reflects the priority of a vulnerability based on the CVSS score, exploits, chatter, and linkage to malware. This property also evaluates the recency of these components so users can understand which vulnerability should be remediated first.- Returns:
- a
Integer
-
getPublishedDateTime
Gets the publishedDateTime property value. The date and time when this vulnerability article was published.- Returns:
- a
OffsetDateTime
-
getReferences
Gets the references property value. Reference links where further information can be learned about this vulnerability. -
getRemediation
Gets the remediation property value. Any known remediation steps.- Returns:
- a
FormattedContent
-
getSeverity
Gets the severity property value. The severity property- Returns:
- a
VulnerabilitySeverity
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setActiveExploitsObserved
Sets the activeExploitsObserved property value. Indicates whether this vulnerability has any known exploits associated to known bad actors.- Parameters:
value
- Value to set for the activeExploitsObserved property.
-
setArticles
Sets the articles property value. Articles related to this vulnerability.- Parameters:
value
- Value to set for the articles property.
-
setCommonWeaknessEnumerationIds
Sets the commonWeaknessEnumerationIds property value. Community-defined common weakness enumerations (CWE).- Parameters:
value
- Value to set for the commonWeaknessEnumerationIds property.
-
setComponents
Sets the components property value. Components related to this vulnerability article.- Parameters:
value
- Value to set for the components property.
-
setCreatedDateTime
Sets the createdDateTime property value. The date and time when this vulnerability article was first created.- Parameters:
value
- Value to set for the createdDateTime property.
-
setCvss2Summary
Sets the cvss2Summary property value. The cvss2Summary property- Parameters:
value
- Value to set for the cvss2Summary property.
-
setCvss3Summary
Sets the cvss3Summary property value. The cvss3Summary property- Parameters:
value
- Value to set for the cvss3Summary property.
-
setDescription
Sets the description property value. The description property- Parameters:
value
- Value to set for the description property.
-
setExploits
Sets the exploits property value. Known exploits for this vulnerability.- Parameters:
value
- Value to set for the exploits property.
-
setExploitsAvailable
Sets the exploitsAvailable property value. Indicates whether this vulnerability has exploits in public sources (such as Packetstorm or Exploit-DB) online.- Parameters:
value
- Value to set for the exploitsAvailable property.
-
setHasChatter
Sets the hasChatter property value. Indicates whether chatter about this vulnerability has been discovered online.- Parameters:
value
- Value to set for the hasChatter property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. The date and time when this vulnerability article was most recently updated.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setPriorityScore
Sets the priorityScore property value. A unique algorithm that reflects the priority of a vulnerability based on the CVSS score, exploits, chatter, and linkage to malware. This property also evaluates the recency of these components so users can understand which vulnerability should be remediated first.- Parameters:
value
- Value to set for the priorityScore property.
-
setPublishedDateTime
Sets the publishedDateTime property value. The date and time when this vulnerability article was published.- Parameters:
value
- Value to set for the publishedDateTime property.
-
setReferences
Sets the references property value. Reference links where further information can be learned about this vulnerability.- Parameters:
value
- Value to set for the references property.
-
setRemediation
Sets the remediation property value. Any known remediation steps.- Parameters:
value
- Value to set for the remediation property.
-
setSeverity
Sets the severity property value. The severity property- Parameters:
value
- Value to set for the severity property.
-