Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreatAssessmentRequest
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the category property value.Gets the contentType property value.Gets the createdBy property value.Gets the createdDateTime property value.Gets the expectedAssessment property value.The deserialization information for the current modelGets the requestSource property value.Gets the results property value.Gets the status property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setCategory
(ThreatCategory value) Sets the category property value.void
Sets the contentType property value.void
setCreatedBy
(IdentitySet value) Sets the createdBy property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
Sets the expectedAssessment property value.void
Sets the requestSource property value.void
setResults
(List<ThreatAssessmentResult> value) Sets the results property value.void
setStatus
(ThreatAssessmentStatus value) Sets the status property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ThreatAssessmentRequest
public ThreatAssessmentRequest()Instantiates a newThreatAssessmentRequest
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
Gets the category property value. The category property- Returns:
- a
ThreatCategory
-
getContentType
Gets the contentType property value. The content type of threat assessment. Possible values are: mail, url, file.- Returns:
- a
ThreatAssessmentContentType
-
getCreatedBy
Gets the createdBy property value. The threat assessment request creator.- Returns:
- a
IdentitySet
-
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
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getRequestSource
Gets the requestSource property value. The source of the threat assessment request. Possible values are: administrator.- Returns:
- a
ThreatAssessmentRequestSource
-
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
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 -
setCategory
Sets the category property value. The category property- Parameters:
value
- Value to set for the category property.
-
setContentType
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
Sets the createdBy property value. The threat assessment request creator.- Parameters:
value
- Value to set for the createdBy property.
-
setCreatedDateTime
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
Sets the expectedAssessment property value. The expectedAssessment property- Parameters:
value
- Value to set for the expectedAssessment property.
-
setRequestSource
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
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
Sets the status property value. The assessment process status. Possible values are: pending, completed.- Parameters:
value
- Value to set for the status property.
-