Class ThreatAssessmentRequest

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ThreatAssessmentRequest
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel
Direct Known Subclasses:
EmailFileAssessmentRequest, FileAssessmentRequest, MailAssessmentRequest, UrlAssessmentRequest

@Generated("com.microsoft.kiota") public class ThreatAssessmentRequest extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • ThreatAssessmentRequest

      public ThreatAssessmentRequest()
      Instantiates a new ThreatAssessmentRequest and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static ThreatAssessmentRequest 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 ThreatAssessmentRequest
    • getCategory

      @Nullable public ThreatCategory getCategory()
      Gets the category property value. The category property
      Returns:
      a ThreatCategory
    • getContentType

      @Nullable public ThreatAssessmentContentType getContentType()
      Gets the contentType property value. The content type of threat assessment. Possible values are: mail, url, file.
      Returns:
      a ThreatAssessmentContentType
    • getCreatedBy

      @Nullable public IdentitySet getCreatedBy()
      Gets the createdBy property value. The threat assessment request creator.
      Returns:
      a IdentitySet
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Returns:
      a OffsetDateTime
    • getExpectedAssessment

      @Nullable public ThreatExpectedAssessment getExpectedAssessment()
      Gets the expectedAssessment property value. The expectedAssessment property
      Returns:
      a ThreatExpectedAssessment
    • 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>>
    • getRequestSource

      @Nullable public ThreatAssessmentRequestSource getRequestSource()
      Gets the requestSource property value. The source of the threat assessment request. Possible values are: administrator.
      Returns:
      a ThreatAssessmentRequestSource
    • getResults

      @Nullable public List<ThreatAssessmentResult> getResults()
      Gets the results property value. A collection of threat assessment results. Read-only. By default, a GET /threatAssessmentRequests/{id} does not return this property unless you apply $expand on it.
      Returns:
      a List<ThreatAssessmentResult>
    • getStatus

      @Nullable public ThreatAssessmentStatus getStatus()
      Gets the status property value. The assessment process status. Possible values are: pending, completed.
      Returns:
      a ThreatAssessmentStatus
    • 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
    • setCategory

      public void setCategory(@Nullable ThreatCategory value)
      Sets the category property value. The category property
      Parameters:
      value - Value to set for the category property.
    • setContentType

      public void setContentType(@Nullable ThreatAssessmentContentType value)
      Sets the contentType property value. The content type of threat assessment. Possible values are: mail, url, file.
      Parameters:
      value - Value to set for the contentType property.
    • setCreatedBy

      public void setCreatedBy(@Nullable IdentitySet value)
      Sets the createdBy property value. The threat assessment request creator.
      Parameters:
      value - Value to set for the createdBy property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setExpectedAssessment

      public void setExpectedAssessment(@Nullable ThreatExpectedAssessment value)
      Sets the expectedAssessment property value. The expectedAssessment property
      Parameters:
      value - Value to set for the expectedAssessment property.
    • setRequestSource

      public void setRequestSource(@Nullable ThreatAssessmentRequestSource value)
      Sets the requestSource property value. The source of the threat assessment request. Possible values are: administrator.
      Parameters:
      value - Value to set for the requestSource property.
    • setResults

      public void setResults(@Nullable List<ThreatAssessmentResult> value)
      Sets the results property value. A collection of threat assessment results. Read-only. By default, a GET /threatAssessmentRequests/{id} does not return this property unless you apply $expand on it.
      Parameters:
      value - Value to set for the results property.
    • setStatus

      public void setStatus(@Nullable ThreatAssessmentStatus value)
      Sets the status property value. The assessment process status. Possible values are: pending, completed.
      Parameters:
      value - Value to set for the status property.