
com.microsoft.graph.models.extensions.UserSecurityState Maven / Gradle / Ivy
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.models.extensions;
import com.microsoft.graph.serializer.ISerializer;
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.Arrays;
import java.util.EnumSet;
import com.microsoft.graph.models.generated.EmailRole;
import com.microsoft.graph.models.generated.LogonType;
import com.microsoft.graph.models.generated.UserAccountSecurityType;
import com.google.gson.JsonObject;
import com.google.gson.JsonElement;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
import java.util.Map;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the User Security State.
*/
public class UserSecurityState implements IJsonBackedObject {
@SerializedName("@odata.type")
@Expose
public String oDataType;
private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
@Override
public final AdditionalDataManager additionalDataManager() {
return additionalDataManager;
}
/**
* The Aad User Id.
* AAD User object identifier (GUID) - represents the physical/multi-account user entity.
*/
@SerializedName("aadUserId")
@Expose
public String aadUserId;
/**
* The Account Name.
* Account name of user account (without Active Directory domain or DNS domain) - (also called mailNickName).
*/
@SerializedName("accountName")
@Expose
public String accountName;
/**
* The Domain Name.
* NetBIOS/Active Directory domain of user account (that is, domain/account format).
*/
@SerializedName("domainName")
@Expose
public String domainName;
/**
* The Email Role.
* For email-related alerts - user account's email 'role'. Possible values are: unknown, sender, recipient.
*/
@SerializedName("emailRole")
@Expose
public EmailRole emailRole;
/**
* The Is Vpn.
* Indicates whether the user logged on through a VPN.
*/
@SerializedName("isVpn")
@Expose
public Boolean isVpn;
/**
* The Logon Date Time.
* 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 would look like this: '2014-01-01T00:00:00Z'.
*/
@SerializedName("logonDateTime")
@Expose
public java.util.Calendar logonDateTime;
/**
* The Logon Id.
* User sign-in ID.
*/
@SerializedName("logonId")
@Expose
public String logonId;
/**
* The Logon Ip.
* IP Address the sign-in request originated from.
*/
@SerializedName("logonIp")
@Expose
public String logonIp;
/**
* The Logon Location.
* Location (by IP address mapping) associated with a user sign-in event by this user.
*/
@SerializedName("logonLocation")
@Expose
public String logonLocation;
/**
* The Logon Type.
* Method of user sign in. Possible values are: unknown, interactive, remoteInteractive, network, batch, service.
*/
@SerializedName("logonType")
@Expose
public LogonType logonType;
/**
* The On Premises Security Identifier.
* Active Directory (on-premises) Security Identifier (SID) of the user.
*/
@SerializedName("onPremisesSecurityIdentifier")
@Expose
public String onPremisesSecurityIdentifier;
/**
* The Risk Score.
* Provider-generated/calculated risk score of the user account. Recommended value range of 0-1, which equates to a percentage.
*/
@SerializedName("riskScore")
@Expose
public String riskScore;
/**
* The User Account Type.
* User account type (group membership), per Windows definition. Possible values are: unknown, standard, power, administrator.
*/
@SerializedName("userAccountType")
@Expose
public UserAccountSecurityType userAccountType;
/**
* The User Principal Name.
* User sign-in name - internet format: (user account name)@(user account DNS domain name).
*/
@SerializedName("userPrincipalName")
@Expose
public String userPrincipalName;
/**
* The raw representation of this class
*/
private JsonObject rawObject;
/**
* The serializer
*/
private ISerializer serializer;
/**
* Gets the raw representation of this class
*
* @return the raw representation of this class
*/
public JsonObject getRawObject() {
return rawObject;
}
/**
* Gets serializer
*
* @return the serializer
*/
protected ISerializer getSerializer() {
return serializer;
}
/**
* Sets the raw JSON object
*
* @param serializer the serializer
* @param json the JSON object to set this object to
*/
public void setRawObject(final ISerializer serializer, final JsonObject json) {
this.serializer = serializer;
rawObject = json;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy