Class UserSecurityState

java.lang.Object
com.microsoft.graph.models.UserSecurityState
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class UserSecurityState extends Object implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
  • Field Details

    • backingStore

      @Nonnull protected com.microsoft.kiota.store.BackingStore backingStore
      Stores model information.
  • Constructor Details

    • UserSecurityState

      public UserSecurityState()
      Instantiates a new UserSecurityState and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static UserSecurityState 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 UserSecurityState
    • getAadUserId

      @Nullable public String getAadUserId()
      Gets the aadUserId property value. AAD User object identifier (GUID) - represents the physical/multi-account user entity.
      Returns:
      a String
    • getAccountName

      @Nullable public String getAccountName()
      Gets the accountName property value. Account name of user account (without Active Directory domain or DNS domain) - (also called mailNickName).
      Returns:
      a String
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getBackingStore

      @Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()
      Gets the backingStore property value. Stores model information.
      Specified by:
      getBackingStore in interface com.microsoft.kiota.store.BackedModel
      Returns:
      a BackingStore
    • getDomainName

      @Nullable public String getDomainName()
      Gets the domainName property value. NetBIOS/Active Directory domain of user account (that is, domain/account format).
      Returns:
      a String
    • getEmailRole

      @Nullable public EmailRole getEmailRole()
      Gets the emailRole property value. For email-related alerts - user account's email 'role'. Possible values are: unknown, sender, recipient.
      Returns:
      a EmailRole
    • 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
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsVpn

      @Nullable public Boolean getIsVpn()
      Gets the isVpn property value. Indicates whether the user logged on through a VPN.
      Returns:
      a Boolean
    • getLogonDateTime

      @Nullable public OffsetDateTime getLogonDateTime()
      Gets the logonDateTime property value. Time at which the sign-in occurred. 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
    • getLogonId

      @Nullable public String getLogonId()
      Gets the logonId property value. User sign-in ID.
      Returns:
      a String
    • getLogonIp

      @Nullable public String getLogonIp()
      Gets the logonIp property value. IP Address the sign-in request originated from.
      Returns:
      a String
    • getLogonLocation

      @Nullable public String getLogonLocation()
      Gets the logonLocation property value. Location (by IP address mapping) associated with a user sign-in event by this user.
      Returns:
      a String
    • getLogonType

      @Nullable public LogonType getLogonType()
      Gets the logonType property value. Method of user sign in. Possible values are: unknown, interactive, remoteInteractive, network, batch, service.
      Returns:
      a LogonType
    • getOdataType

      @Nullable public String getOdataType()
      Gets the @odata.type property value. The OdataType property
      Returns:
      a String
    • getOnPremisesSecurityIdentifier

      @Nullable public String getOnPremisesSecurityIdentifier()
      Gets the onPremisesSecurityIdentifier property value. Active Directory (on-premises) Security Identifier (SID) of the user.
      Returns:
      a String
    • getRiskScore

      @Nullable public String getRiskScore()
      Gets the riskScore property value. Provider-generated/calculated risk score of the user account. Recommended value range of 0-1, which equates to a percentage.
      Returns:
      a String
    • getUserAccountType

      @Nullable public UserAccountSecurityType getUserAccountType()
      Gets the userAccountType property value. User account type (group membership), per Windows definition. Possible values are: unknown, standard, power, administrator.
      Returns:
      a UserAccountSecurityType
    • getUserPrincipalName

      @Nullable public String getUserPrincipalName()
      Gets the userPrincipalName property value. User sign-in name - internet format: (user account name)@(user account DNS domain name).
      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
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAadUserId

      public void setAadUserId(@Nullable String value)
      Sets the aadUserId property value. AAD User object identifier (GUID) - represents the physical/multi-account user entity.
      Parameters:
      value - Value to set for the aadUserId property.
    • setAccountName

      public void setAccountName(@Nullable String value)
      Sets the accountName property value. Account name of user account (without Active Directory domain or DNS domain) - (also called mailNickName).
      Parameters:
      value - Value to set for the accountName property.
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Parameters:
      value - Value to set for the AdditionalData property.
    • setBackingStore

      public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value)
      Sets the backingStore property value. Stores model information.
      Parameters:
      value - Value to set for the backingStore property.
    • setDomainName

      public void setDomainName(@Nullable String value)
      Sets the domainName property value. NetBIOS/Active Directory domain of user account (that is, domain/account format).
      Parameters:
      value - Value to set for the domainName property.
    • setEmailRole

      public void setEmailRole(@Nullable EmailRole value)
      Sets the emailRole property value. For email-related alerts - user account's email 'role'. Possible values are: unknown, sender, recipient.
      Parameters:
      value - Value to set for the emailRole property.
    • setIsVpn

      public void setIsVpn(@Nullable Boolean value)
      Sets the isVpn property value. Indicates whether the user logged on through a VPN.
      Parameters:
      value - Value to set for the isVpn property.
    • setLogonDateTime

      public void setLogonDateTime(@Nullable OffsetDateTime value)
      Sets the logonDateTime property value. Time at which the sign-in occurred. 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 logonDateTime property.
    • setLogonId

      public void setLogonId(@Nullable String value)
      Sets the logonId property value. User sign-in ID.
      Parameters:
      value - Value to set for the logonId property.
    • setLogonIp

      public void setLogonIp(@Nullable String value)
      Sets the logonIp property value. IP Address the sign-in request originated from.
      Parameters:
      value - Value to set for the logonIp property.
    • setLogonLocation

      public void setLogonLocation(@Nullable String value)
      Sets the logonLocation property value. Location (by IP address mapping) associated with a user sign-in event by this user.
      Parameters:
      value - Value to set for the logonLocation property.
    • setLogonType

      public void setLogonType(@Nullable LogonType value)
      Sets the logonType property value. Method of user sign in. Possible values are: unknown, interactive, remoteInteractive, network, batch, service.
      Parameters:
      value - Value to set for the logonType property.
    • setOdataType

      public void setOdataType(@Nullable String value)
      Sets the @odata.type property value. The OdataType property
      Parameters:
      value - Value to set for the @odata.type property.
    • setOnPremisesSecurityIdentifier

      public void setOnPremisesSecurityIdentifier(@Nullable String value)
      Sets the onPremisesSecurityIdentifier property value. Active Directory (on-premises) Security Identifier (SID) of the user.
      Parameters:
      value - Value to set for the onPremisesSecurityIdentifier property.
    • setRiskScore

      public void setRiskScore(@Nullable String value)
      Sets the riskScore property value. Provider-generated/calculated risk score of the user account. Recommended value range of 0-1, which equates to a percentage.
      Parameters:
      value - Value to set for the riskScore property.
    • setUserAccountType

      public void setUserAccountType(@Nullable UserAccountSecurityType value)
      Sets the userAccountType property value. User account type (group membership), per Windows definition. Possible values are: unknown, standard, power, administrator.
      Parameters:
      value - Value to set for the userAccountType property.
    • setUserPrincipalName

      public void setUserPrincipalName(@Nullable String value)
      Sets the userPrincipalName property value. User sign-in name - internet format: (user account name)@(user account DNS domain name).
      Parameters:
      value - Value to set for the userPrincipalName property.