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
  • Constructor Details

    • Vulnerability

      public Vulnerability()
      Instantiates a new Vulnerability 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

      @Nullable public Boolean getActiveExploitsObserved()
      Gets the activeExploitsObserved property value. Indicates whether this vulnerability has any known exploits associated to known bad actors.
      Returns:
      a Boolean
    • getArticles

      @Nullable public List<Article> getArticles()
      Gets the articles property value. Articles related to this vulnerability.
      Returns:
      a List<Article>
    • getCommonWeaknessEnumerationIds

      @Nullable public List<String> getCommonWeaknessEnumerationIds()
      Gets the commonWeaknessEnumerationIds property value. Community-defined common weakness enumerations (CWE).
      Returns:
      a List<String>
    • getComponents

      @Nullable public List<VulnerabilityComponent> getComponents()
      Gets the components property value. Components related to this vulnerability article.
      Returns:
      a List<VulnerabilityComponent>
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The date and time when this vulnerability article was first created.
      Returns:
      a OffsetDateTime
    • getCvss2Summary

      @Nullable public CvssSummary getCvss2Summary()
      Gets the cvss2Summary property value. The cvss2Summary property
      Returns:
      a CvssSummary
    • getCvss3Summary

      @Nullable public CvssSummary getCvss3Summary()
      Gets the cvss3Summary property value. The cvss3Summary property
      Returns:
      a CvssSummary
    • getDescription

      @Nullable public FormattedContent getDescription()
      Gets the description property value. The description property
      Returns:
      a FormattedContent
    • getExploits

      @Nullable public List<Hyperlink> getExploits()
      Gets the exploits property value. Known exploits for this vulnerability.
      Returns:
      a List<Hyperlink>
    • getExploitsAvailable

      @Nullable public Boolean 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getHasChatter

      @Nullable public Boolean getHasChatter()
      Gets the hasChatter property value. Indicates whether chatter about this vulnerability has been discovered online.
      Returns:
      a Boolean
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. The date and time when this vulnerability article was most recently updated.
      Returns:
      a OffsetDateTime
    • getPriorityScore

      @Nullable public Integer 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

      @Nullable public OffsetDateTime getPublishedDateTime()
      Gets the publishedDateTime property value. The date and time when this vulnerability article was published.
      Returns:
      a OffsetDateTime
    • getReferences

      @Nullable public List<Hyperlink> getReferences()
      Gets the references property value. Reference links where further information can be learned about this vulnerability.
      Returns:
      a List<Hyperlink>
    • getRemediation

      @Nullable public FormattedContent getRemediation()
      Gets the remediation property value. Any known remediation steps.
      Returns:
      a FormattedContent
    • getSeverity

      @Nullable public VulnerabilitySeverity 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setActiveExploitsObserved

      public void setActiveExploitsObserved(@Nullable Boolean value)
      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

      public void setArticles(@Nullable List<Article> value)
      Sets the articles property value. Articles related to this vulnerability.
      Parameters:
      value - Value to set for the articles property.
    • setCommonWeaknessEnumerationIds

      public void setCommonWeaknessEnumerationIds(@Nullable List<String> value)
      Sets the commonWeaknessEnumerationIds property value. Community-defined common weakness enumerations (CWE).
      Parameters:
      value - Value to set for the commonWeaknessEnumerationIds property.
    • setComponents

      public void setComponents(@Nullable List<VulnerabilityComponent> value)
      Sets the components property value. Components related to this vulnerability article.
      Parameters:
      value - Value to set for the components property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setCvss2Summary(@Nullable CvssSummary value)
      Sets the cvss2Summary property value. The cvss2Summary property
      Parameters:
      value - Value to set for the cvss2Summary property.
    • setCvss3Summary

      public void setCvss3Summary(@Nullable CvssSummary value)
      Sets the cvss3Summary property value. The cvss3Summary property
      Parameters:
      value - Value to set for the cvss3Summary property.
    • setDescription

      public void setDescription(@Nullable FormattedContent value)
      Sets the description property value. The description property
      Parameters:
      value - Value to set for the description property.
    • setExploits

      public void setExploits(@Nullable List<Hyperlink> value)
      Sets the exploits property value. Known exploits for this vulnerability.
      Parameters:
      value - Value to set for the exploits property.
    • setExploitsAvailable

      public void setExploitsAvailable(@Nullable Boolean value)
      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

      public void setHasChatter(@Nullable Boolean value)
      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

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      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

      public void setPriorityScore(@Nullable Integer value)
      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

      public void setPublishedDateTime(@Nullable OffsetDateTime value)
      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

      public void setReferences(@Nullable List<Hyperlink> value)
      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

      public void setRemediation(@Nullable FormattedContent value)
      Sets the remediation property value. Any known remediation steps.
      Parameters:
      value - Value to set for the remediation property.
    • setSeverity

      public void setSeverity(@Nullable VulnerabilitySeverity value)
      Sets the severity property value. The severity property
      Parameters:
      value - Value to set for the severity property.