Package com.microsoft.graph.models
Class RiskyServicePrincipal
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.RiskyServicePrincipal
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
RiskyServicePrincipalHistoryItem
@Generated("com.microsoft.kiota")
public class RiskyServicePrincipal
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 RiskyServicePrincipal
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valuegetAppId()
Gets the appId property value.Gets the displayName property value.The deserialization information for the current modelGets the history property value.Gets the isEnabled property value.Gets the isProcessing property value.Gets the riskDetail property value.Gets the riskLastUpdatedDateTime property value.Gets the riskLevel property value.Gets the riskState property value.Gets the servicePrincipalType property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the appId property value.void
setDisplayName
(String value) Sets the displayName property value.void
Sets the history property value.void
setIsEnabled
(Boolean value) Sets the isEnabled property value.void
setIsProcessing
(Boolean value) Sets the isProcessing property value.void
setRiskDetail
(RiskDetail value) Sets the riskDetail property value.void
Sets the riskLastUpdatedDateTime property value.void
setRiskLevel
(RiskLevel value) Sets the riskLevel property value.void
setRiskState
(RiskState value) Sets the riskState property value.void
setServicePrincipalType
(String value) Sets the servicePrincipalType property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
RiskyServicePrincipal
public RiskyServicePrincipal()Instantiates a newRiskyServicePrincipal
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static RiskyServicePrincipal 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
RiskyServicePrincipal
-
getAppId
Gets the appId property value. The globally unique identifier for the associated application (its appId property), if any.- Returns:
- a
String
-
getDisplayName
Gets the displayName property value. The display name for the service principal.- Returns:
- a
String
-
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>>
-
getHistory
Gets the history property value. Represents the risk history of Microsoft Entra service principals.- Returns:
- a
List<RiskyServicePrincipalHistoryItem>
-
getIsEnabled
Gets the isEnabled property value. true if the service principal account is enabled; otherwise, false.- Returns:
- a
Boolean
-
getIsProcessing
Gets the isProcessing property value. Indicates whether Microsoft Entra ID is currently processing the service principal's risky state.- Returns:
- a
Boolean
-
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, unknownFutureValue, 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
-
getRiskLastUpdatedDateTime
Gets the riskLastUpdatedDateTime property value. The date and time that the risk state 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, 2021 is 2021-01-01T00:00:00Z. Supports $filter (eq).- Returns:
- a
OffsetDateTime
-
getRiskLevel
Gets the riskLevel property value. Level of the detected risky workload identity. The possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq).- Returns:
- a
RiskLevel
-
getRiskState
Gets the riskState property value. State of the service principal's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.- Returns:
- a
RiskState
-
getServicePrincipalType
Gets the servicePrincipalType property value. Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal.- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAppId
Sets the appId property value. The globally unique identifier for the associated application (its appId property), if any.- Parameters:
value
- Value to set for the appId property.
-
setDisplayName
Sets the displayName property value. The display name for the service principal.- Parameters:
value
- Value to set for the displayName property.
-
setHistory
Sets the history property value. Represents the risk history of Microsoft Entra service principals.- Parameters:
value
- Value to set for the history property.
-
setIsEnabled
Sets the isEnabled property value. true if the service principal account is enabled; otherwise, false.- Parameters:
value
- Value to set for the isEnabled property.
-
setIsProcessing
Sets the isProcessing property value. Indicates whether Microsoft Entra ID is currently processing the service principal's risky state.- Parameters:
value
- Value to set for the isProcessing 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, unknownFutureValue, 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.
-
setRiskLastUpdatedDateTime
Sets the riskLastUpdatedDateTime property value. The date and time that the risk state 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, 2021 is 2021-01-01T00:00:00Z. Supports $filter (eq).- Parameters:
value
- Value to set for the riskLastUpdatedDateTime property.
-
setRiskLevel
Sets the riskLevel property value. Level of the detected risky workload identity. The possible values are: low, medium, high, hidden, none, unknownFutureValue. Supports $filter (eq).- Parameters:
value
- Value to set for the riskLevel property.
-
setRiskState
Sets the riskState property value. State of the service principal's risk. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.- Parameters:
value
- Value to set for the riskState property.
-
setServicePrincipalType
Sets the servicePrincipalType property value. Identifies whether the service principal represents an Application, a ManagedIdentity, or a legacy application (socialIdp). This is set by Microsoft Entra ID internally and is inherited from servicePrincipal.- Parameters:
value
- Value to set for the servicePrincipalType property.
-