Package com.microsoft.graph.models
Class ServicePrincipalRiskDetection
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ServicePrincipalRiskDetection
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class ServicePrincipalRiskDetection
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newServicePrincipalRiskDetection
and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue
(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.getAppId()
Gets the appId 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 keyIds 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 servicePrincipalDisplayName property value.Gets the servicePrincipalId property value.Gets the source property value.Gets the tokenIssuerType 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
Sets the appId 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 keyIds 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 servicePrincipalDisplayName property value.void
setServicePrincipalId
(String value) Sets the servicePrincipalId property value.void
Sets the source property value.void
Sets the tokenIssuerType property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
ServicePrincipalRiskDetection
public ServicePrincipalRiskDetection()Instantiates a newServicePrincipalRiskDetection
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static ServicePrincipalRiskDetection 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
ServicePrincipalRiskDetection
-
getActivity
Gets the activity property value. Indicates the activity type the detected risk is linked to. The possible values are: signin, servicePrincipal. Use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: servicePrincipal.- Returns:
- a
ActivityType
-
getActivityDateTime
Gets the activityDateTime property value. Date and time when 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 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getAdditionalInfo
Gets the additionalInfo property value. Additional information associated with the risk detection. This string value is represented as a JSON object with the quotations escaped.- Returns:
- a
String
-
getAppId
Gets the appId property value. The unique identifier for the associated application.- Returns:
- a
String
-
getCorrelationId
Gets the correlationId property value. Correlation ID of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity.- Returns:
- a
String
-
getDetectedDateTime
Gets the detectedDateTime property value. Date and time when 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 is 2014-01-01T00:00:00Z.- Returns:
- a
OffsetDateTime
-
getDetectionTimingType
Gets the detectionTimingType property value. Timing of the detected risk , whether real-time or offline. The 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
-
getKeyIds
Gets the keyIds property value. The unique identifier for the key credential associated with the risk detection. -
getLastUpdatedDateTime
Gets the lastUpdatedDateTime property value. Date and time when the risk detection was last updated.- Returns:
- a
OffsetDateTime
-
getLocation
Gets the location property value. Location from where the sign-in was initiated.- Returns:
- a
SignInLocation
-
getRequestId
Gets the requestId property value. Request identifier of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity. Supports $filter (eq).- Returns:
- a
String
-
getRiskDetail
Gets the riskDetail property value. Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: none, hidden, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal. Use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal.- Returns:
- a
RiskDetail
-
getRiskEventType
Gets the riskEventType property value. The type of risk event detected. The possible values are: investigationsThreatIntelligence, generic, adminConfirmedServicePrincipalCompromised, suspiciousSignins, leakedCredentials, anomalousServicePrincipalActivity, maliciousApplication, suspiciousApplication.- Returns:
- a
String
-
getRiskLevel
Gets the riskLevel property value. Level of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: low, medium, high, hidden, none.- Returns:
- a
RiskLevel
-
getRiskState
Gets the riskState property value. The state of a detected risky service principal or sign-in activity. The possible values are: none, dismissed, atRisk, confirmedCompromised.- Returns:
- a
RiskState
-
getServicePrincipalDisplayName
Gets the servicePrincipalDisplayName property value. The display name for the service principal.- Returns:
- a
String
-
getServicePrincipalId
Gets the servicePrincipalId property value. The unique identifier for the service principal. Supports $filter (eq).- Returns:
- a
String
-
getSource
Gets the source property value. Source of the risk detection. For example, identityProtection.- Returns:
- a
String
-
getTokenIssuerType
Gets the tokenIssuerType property value. Indicates the type of token issuer for the detected sign-in risk. The possible values are: AzureAD.- Returns:
- a
TokenIssuerType
-
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. The possible values are: signin, servicePrincipal. Use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: servicePrincipal.- Parameters:
value
- Value to set for the activity property.
-
setActivityDateTime
Sets the activityDateTime property value. Date and time when 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 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. This string value is represented as a JSON object with the quotations escaped.- Parameters:
value
- Value to set for the additionalInfo property.
-
setAppId
Sets the appId property value. The unique identifier for the associated application.- Parameters:
value
- Value to set for the appId property.
-
setCorrelationId
Sets the correlationId property value. Correlation ID of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity.- Parameters:
value
- Value to set for the correlationId property.
-
setDetectedDateTime
Sets the detectedDateTime property value. Date and time when 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 is 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 , whether real-time or offline. The 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.
-
setKeyIds
Sets the keyIds property value. The unique identifier for the key credential associated with the risk detection.- Parameters:
value
- Value to set for the keyIds property.
-
setLastUpdatedDateTime
Sets the lastUpdatedDateTime property value. Date and time when the risk detection was last updated.- Parameters:
value
- Value to set for the lastUpdatedDateTime property.
-
setLocation
Sets the location property value. Location from where the sign-in was initiated.- Parameters:
value
- Value to set for the location property.
-
setRequestId
Sets the requestId property value. Request identifier of the sign-in activity associated with the risk detection. This property is null if the risk detection is not associated with a sign-in activity. Supports $filter (eq).- Parameters:
value
- Value to set for the requestId property.
-
setRiskDetail
Sets the riskDetail property value. Details of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: none, hidden, adminConfirmedServicePrincipalCompromised, adminDismissedAllRiskForServicePrincipal. Use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: adminConfirmedServicePrincipalCompromised , adminDismissedAllRiskForServicePrincipal.- 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: investigationsThreatIntelligence, generic, adminConfirmedServicePrincipalCompromised, suspiciousSignins, leakedCredentials, anomalousServicePrincipalActivity, maliciousApplication, suspiciousApplication.- Parameters:
value
- Value to set for the riskEventType property.
-
setRiskLevel
Sets the riskLevel property value. Level of the detected risk. Note: Details for this property are only available for Workload Identities Premium customers. Events in tenants without this license will be returned hidden. The possible values are: low, medium, high, hidden, none.- Parameters:
value
- Value to set for the riskLevel property.
-
setRiskState
Sets the riskState property value. The state of a detected risky service principal or sign-in activity. The possible values are: none, dismissed, atRisk, confirmedCompromised.- Parameters:
value
- Value to set for the riskState property.
-
setServicePrincipalDisplayName
Sets the servicePrincipalDisplayName property value. The display name for the service principal.- Parameters:
value
- Value to set for the servicePrincipalDisplayName property.
-
setServicePrincipalId
Sets the servicePrincipalId property value. The unique identifier for the service principal. Supports $filter (eq).- Parameters:
value
- Value to set for the servicePrincipalId property.
-
setSource
Sets the source property value. Source of the risk detection. For example, identityProtection.- 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. The possible values are: AzureAD.- Parameters:
value
- Value to set for the tokenIssuerType property.
-