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
  • Constructor Details

    • RiskyServicePrincipal

      public RiskyServicePrincipal()
      Instantiates a new RiskyServicePrincipal 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

      @Nullable public String getAppId()
      Gets the appId property value. The globally unique identifier for the associated application (its appId property), if any.
      Returns:
      a String
    • getDisplayName

      @Nullable public 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getHistory

      @Nullable public List<RiskyServicePrincipalHistoryItem> getHistory()
      Gets the history property value. Represents the risk history of Microsoft Entra service principals.
      Returns:
      a List<RiskyServicePrincipalHistoryItem>
    • getIsEnabled

      @Nullable public Boolean getIsEnabled()
      Gets the isEnabled property value. true if the service principal account is enabled; otherwise, false.
      Returns:
      a Boolean
    • getIsProcessing

      @Nullable public 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

      @Nullable public RiskDetail 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

      @Nullable public OffsetDateTime 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

      @Nullable public RiskLevel 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

      @Nullable public RiskState 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

      @Nullable public String 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
      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
    • setAppId

      public void setAppId(@Nullable String value)
      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

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The display name for the service principal.
      Parameters:
      value - Value to set for the displayName property.
    • setHistory

      public void setHistory(@Nullable List<RiskyServicePrincipalHistoryItem> value)
      Sets the history property value. Represents the risk history of Microsoft Entra service principals.
      Parameters:
      value - Value to set for the history property.
    • setIsEnabled

      public void setIsEnabled(@Nullable Boolean value)
      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

      public void setIsProcessing(@Nullable Boolean value)
      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

      public void setRiskDetail(@Nullable RiskDetail value)
      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

      public void setRiskLastUpdatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setRiskLevel(@Nullable RiskLevel value)
      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

      public void setRiskState(@Nullable RiskState value)
      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

      public void setServicePrincipalType(@Nullable String value)
      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.