Package com.microsoft.graph.models
Class RiskDetection
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.RiskDetection
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class RiskDetection
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 RiskDetection
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the activity property value.Gets the activityDateTime property value.Gets the additionalInfo property value.Gets the correlationId property value.Gets the detectedDateTime property value.Gets the detectionTimingType property value.The deserialization information for the current modelGets the ipAddress property value.Gets the lastUpdatedDateTime property value.Gets the location property value.Gets the requestId property value.Gets the riskDetail property value.Gets the riskEventType property value.Gets the riskLevel property value.Gets the riskState property value.Gets the source property value.Gets the tokenIssuerType property value.Gets the userDisplayName property value.Gets the userId property value.Gets the userPrincipalName property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setActivity
(ActivityType value) Sets the activity property value.void
Sets the activityDateTime property value.void
setAdditionalInfo
(String value) Sets the additionalInfo property value.void
setCorrelationId
(String value) Sets the correlationId property value.void
Sets the detectedDateTime property value.void
Sets the detectionTimingType property value.void
setIpAddress
(String value) Sets the ipAddress property value.void
Sets the lastUpdatedDateTime property value.void
setLocation
(SignInLocation value) Sets the location property value.void
setRequestId
(String value) Sets the requestId property value.void
setRiskDetail
(RiskDetail value) Sets the riskDetail property value.void
setRiskEventType
(String value) Sets the riskEventType property value.void
setRiskLevel
(RiskLevel value) Sets the riskLevel property value.void
setRiskState
(RiskState value) Sets the riskState property value.void
Sets the source property value.void
Sets the tokenIssuerType property value.void
setUserDisplayName
(String value) Sets the userDisplayName property value.void
Sets the userId property value.void
setUserPrincipalName
(String value) Sets the userPrincipalName property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
RiskDetection
public RiskDetection()Instantiates a newRiskDetection
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static RiskDetection 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
RiskDetection
-
getActivity
Gets the activity property value. Indicates the activity type the detected risk is linked to. Possible values are: signin, user, unknownFutureValue.- Returns:
- a
ActivityType
-
getActivityDateTime
Gets the activityDateTime property value. Date and time that the risky activity occurred. The DateTimeOffset 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 look like this: 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getAdditionalInfo
Gets the additionalInfo property value. Additional information associated with the risk detection in JSON format. For example, '[{/'Key/':/'userAgent/',/'Value/':/'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36/'}]'. Possible keys in the additionalInfo JSON string are: userAgent, alertUrl, relatedEventTimeInUtc, relatedUserAgent, deviceInformation, relatedLocation, requestId, correlationId, lastActivityTimeInUtc, malwareName, clientLocation, clientIp, riskReasons. For more information about riskReasons and possible values, see riskReasons values.- Returns:
- a
String
-
getCorrelationId
Gets the correlationId property value. Correlation ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.- Returns:
- a
String
-
getDetectedDateTime
Gets the detectedDateTime property value. Date and time that the risk was detected. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 looks like this: 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getDetectionTimingType
Gets the detectionTimingType property value. Timing of the detected risk (real-time/offline). Possible values are: notDefined, realtime, nearRealtime, offline, unknownFutureValue.- Returns:
- a
RiskDetectionTimingType
-
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>>
-
getIpAddress
Gets the ipAddress property value. Provides the IP address of the client from where the risk occurred.- Returns:
- a
String
-
getLastUpdatedDateTime
Gets the lastUpdatedDateTime property value. Date and time that the risk detection was last updated. The DateTimeOffset 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 look like this: 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getLocation
Gets the location property value. Location of the sign-in.- Returns:
- a
SignInLocation
-
getRequestId
Gets the requestId property value. Request ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.- Returns:
- a
String
-
getRiskDetail
Gets the riskDetail property value. Details of the detected risk. The possible values are: none, adminGeneratedTemporaryPassword, userChangedPasswordOnPremises, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, m365DAdminDismissedDetection. Use the Prefer: include - unknown -enum-members request header to get the following value(s) in this evolvable enum: m365DAdminDismissedDetection.- Returns:
- a
RiskDetail
-
getRiskEventType
Gets the riskEventType property value. The type of risk event detected. The possible values are adminConfirmedUserCompromised, anomalousToken, anomalousUserActivity, anonymizedIPAddress, generic, impossibleTravel, investigationsThreatIntelligence, suspiciousSendingPatterns, leakedCredentials, maliciousIPAddress,malwareInfectedIPAddress, mcasSuspiciousInboxManipulationRules, newCountry, passwordSpray,riskyIPAddress, suspiciousAPITraffic, suspiciousBrowser,suspiciousInboxForwarding, suspiciousIPAddress, tokenIssuerAnomaly, unfamiliarFeatures, unlikelyTravel. If the risk detection is a premium detection, will show generic. For more information about each value, see Risk types and detection.- Returns:
- a
String
-
getRiskLevel
Gets the riskLevel property value. Level of the detected risk. Possible values are: low, medium, high, hidden, none, unknownFutureValue.- Returns:
- a
RiskLevel
-
getRiskState
Gets the riskState property value. The state of a detected risky user or sign-in. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.- Returns:
- a
RiskState
-
getSource
Gets the source property value. Source of the risk detection. For example, activeDirectory.- Returns:
- a
String
-
getTokenIssuerType
Gets the tokenIssuerType property value. Indicates the type of token issuer for the detected sign-in risk. Possible values are: AzureAD, ADFederationServices, UnknownFutureValue.- Returns:
- a
TokenIssuerType
-
getUserDisplayName
Gets the userDisplayName property value. The user principal name (UPN) of the user.- Returns:
- a
String
-
getUserId
Gets the userId property value. Unique ID of the user.- Returns:
- a
String
-
getUserPrincipalName
Gets the userPrincipalName property value. The user principal name (UPN) of the user.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setActivity
Sets the activity property value. Indicates the activity type the detected risk is linked to. Possible values are: signin, user, unknownFutureValue.- Parameters:
value
- Value to set for the activity property.
-
setActivityDateTime
Sets the activityDateTime property value. Date and time that the risky activity occurred. The DateTimeOffset 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 look like this: 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the activityDateTime property.
-
setAdditionalInfo
Sets the additionalInfo property value. Additional information associated with the risk detection in JSON format. For example, '[{/'Key/':/'userAgent/',/'Value/':/'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36/'}]'. Possible keys in the additionalInfo JSON string are: userAgent, alertUrl, relatedEventTimeInUtc, relatedUserAgent, deviceInformation, relatedLocation, requestId, correlationId, lastActivityTimeInUtc, malwareName, clientLocation, clientIp, riskReasons. For more information about riskReasons and possible values, see riskReasons values.- Parameters:
value
- Value to set for the additionalInfo property.
-
setCorrelationId
Sets the correlationId property value. Correlation ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.- Parameters:
value
- Value to set for the correlationId property.
-
setDetectedDateTime
Sets the detectedDateTime property value. Date and time that the risk was detected. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 looks like this: 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the detectedDateTime property.
-
setDetectionTimingType
Sets the detectionTimingType property value. Timing of the detected risk (real-time/offline). Possible values are: notDefined, realtime, nearRealtime, offline, unknownFutureValue.- Parameters:
value
- Value to set for the detectionTimingType property.
-
setIpAddress
Sets the ipAddress property value. Provides the IP address of the client from where the risk occurred.- Parameters:
value
- Value to set for the ipAddress property.
-
setLastUpdatedDateTime
Sets the lastUpdatedDateTime property value. Date and time that the risk detection was last updated. The DateTimeOffset 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 look like this: 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the lastUpdatedDateTime property.
-
setLocation
Sets the location property value. Location of the sign-in.- Parameters:
value
- Value to set for the location property.
-
setRequestId
Sets the requestId property value. Request ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.- Parameters:
value
- Value to set for the requestId property.
-
setRiskDetail
Sets the riskDetail property value. Details of the detected risk. The possible values are: none, adminGeneratedTemporaryPassword, userChangedPasswordOnPremises, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, m365DAdminDismissedDetection. Use the Prefer: include - unknown -enum-members request header to get the following value(s) in this evolvable enum: m365DAdminDismissedDetection.- Parameters:
value
- Value to set for the riskDetail property.
-
setRiskEventType
Sets the riskEventType property value. The type of risk event detected. The possible values are adminConfirmedUserCompromised, anomalousToken, anomalousUserActivity, anonymizedIPAddress, generic, impossibleTravel, investigationsThreatIntelligence, suspiciousSendingPatterns, leakedCredentials, maliciousIPAddress,malwareInfectedIPAddress, mcasSuspiciousInboxManipulationRules, newCountry, passwordSpray,riskyIPAddress, suspiciousAPITraffic, suspiciousBrowser,suspiciousInboxForwarding, suspiciousIPAddress, tokenIssuerAnomaly, unfamiliarFeatures, unlikelyTravel. If the risk detection is a premium detection, will show generic. For more information about each value, see Risk types and detection.- Parameters:
value
- Value to set for the riskEventType property.
-
setRiskLevel
Sets the riskLevel property value. Level of the detected risk. Possible values are: low, medium, high, hidden, none, unknownFutureValue.- Parameters:
value
- Value to set for the riskLevel property.
-
setRiskState
Sets the riskState property value. The state of a detected risky user or sign-in. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.- Parameters:
value
- Value to set for the riskState property.
-
setSource
Sets the source property value. Source of the risk detection. For example, activeDirectory.- Parameters:
value
- Value to set for the source property.
-
setTokenIssuerType
Sets the tokenIssuerType property value. Indicates the type of token issuer for the detected sign-in risk. Possible values are: AzureAD, ADFederationServices, UnknownFutureValue.- Parameters:
value
- Value to set for the tokenIssuerType property.
-
setUserDisplayName
Sets the userDisplayName property value. The user principal name (UPN) of the user.- Parameters:
value
- Value to set for the userDisplayName property.
-
setUserId
Sets the userId property value. Unique ID of the user.- Parameters:
value
- Value to set for the userId property.
-
setUserPrincipalName
Sets the userPrincipalName property value. The user principal name (UPN) of the user.- Parameters:
value
- Value to set for the userPrincipalName property.
-