Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.graphrbac.implementation; import com.microsoft.azure.management.graphrbac.UserType; import java.util.List; import com.microsoft.azure.management.graphrbac.SignInName; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName;
Active Directory user information.
/** * Active Directory user information. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "objectType") @JsonTypeName("User") public class UserInner extends DirectoryObjectInner {
This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object.
/** * This must be specified if you are using a federated domain for the * user's userPrincipalName (UPN) property when creating a new user * account. It is used to associate an on-premises Active Directory user * account with their Azure AD user object. */
@JsonProperty(value = "immutableId") private String immutableId;
A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB".
/** * A two letter country code (ISO standard 3166). Required for users that * will be assigned licenses due to legal requirement to check for * availability of services in countries. Examples include: "US", "JP", and * "GB". */
@JsonProperty(value = "usageLocation") private String usageLocation;
The given name for the user.
/** * The given name for the user. */
@JsonProperty(value = "givenName") private String givenName;
The user's surname (family name or last name).
/** * The user's surname (family name or last name). */
@JsonProperty(value = "surname") private String surname;
A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Possible values include: 'Member', 'Guest'.
/** * A string value that can be used to classify user types in your * directory, such as 'Member' and 'Guest'. Possible values include: * 'Member', 'Guest'. */
@JsonProperty(value = "userType") private UserType userType;
Whether the account is enabled.
/** * Whether the account is enabled. */
@JsonProperty(value = "accountEnabled") private Boolean accountEnabled;
The display name of the user.
/** * The display name of the user. */
@JsonProperty(value = "displayName") private String displayName;
The principal name of the user.
/** * The principal name of the user. */
@JsonProperty(value = "userPrincipalName") private String userPrincipalName;
The mail alias for the user.
/** * The mail alias for the user. */
@JsonProperty(value = "mailNickname") private String mailNickname;
The primary email address of the user.
/** * The primary email address of the user. */
@JsonProperty(value = "mail") private String mail;
The sign-in names of the user.
/** * The sign-in names of the user. */
@JsonProperty(value = "signInNames") private List<SignInName> signInNames;
Get the immutableId value.
Returns:the immutableId value
/** * Get the immutableId value. * * @return the immutableId value */
public String immutableId() { return this.immutableId; }
Set the immutableId value.
Params:
  • immutableId – the immutableId value to set
Returns:the UserInner object itself.
/** * Set the immutableId value. * * @param immutableId the immutableId value to set * @return the UserInner object itself. */
public UserInner withImmutableId(String immutableId) { this.immutableId = immutableId; return this; }
Get the usageLocation value.
Returns:the usageLocation value
/** * Get the usageLocation value. * * @return the usageLocation value */
public String usageLocation() { return this.usageLocation; }
Set the usageLocation value.
Params:
  • usageLocation – the usageLocation value to set
Returns:the UserInner object itself.
/** * Set the usageLocation value. * * @param usageLocation the usageLocation value to set * @return the UserInner object itself. */
public UserInner withUsageLocation(String usageLocation) { this.usageLocation = usageLocation; return this; }
Get the givenName value.
Returns:the givenName value
/** * Get the givenName value. * * @return the givenName value */
public String givenName() { return this.givenName; }
Set the givenName value.
Params:
  • givenName – the givenName value to set
Returns:the UserInner object itself.
/** * Set the givenName value. * * @param givenName the givenName value to set * @return the UserInner object itself. */
public UserInner withGivenName(String givenName) { this.givenName = givenName; return this; }
Get the surname value.
Returns:the surname value
/** * Get the surname value. * * @return the surname value */
public String surname() { return this.surname; }
Set the surname value.
Params:
  • surname – the surname value to set
Returns:the UserInner object itself.
/** * Set the surname value. * * @param surname the surname value to set * @return the UserInner object itself. */
public UserInner withSurname(String surname) { this.surname = surname; return this; }
Get the userType value.
Returns:the userType value
/** * Get the userType value. * * @return the userType value */
public UserType userType() { return this.userType; }
Set the userType value.
Params:
  • userType – the userType value to set
Returns:the UserInner object itself.
/** * Set the userType value. * * @param userType the userType value to set * @return the UserInner object itself. */
public UserInner withUserType(UserType userType) { this.userType = userType; return this; }
Get the accountEnabled value.
Returns:the accountEnabled value
/** * Get the accountEnabled value. * * @return the accountEnabled value */
public Boolean accountEnabled() { return this.accountEnabled; }
Set the accountEnabled value.
Params:
  • accountEnabled – the accountEnabled value to set
Returns:the UserInner object itself.
/** * Set the accountEnabled value. * * @param accountEnabled the accountEnabled value to set * @return the UserInner object itself. */
public UserInner withAccountEnabled(Boolean accountEnabled) { this.accountEnabled = accountEnabled; return this; }
Get the displayName value.
Returns:the displayName value
/** * Get the displayName value. * * @return the displayName value */
public String displayName() { return this.displayName; }
Set the displayName value.
Params:
  • displayName – the displayName value to set
Returns:the UserInner object itself.
/** * Set the displayName value. * * @param displayName the displayName value to set * @return the UserInner object itself. */
public UserInner withDisplayName(String displayName) { this.displayName = displayName; return this; }
Get the userPrincipalName value.
Returns:the userPrincipalName value
/** * Get the userPrincipalName value. * * @return the userPrincipalName value */
public String userPrincipalName() { return this.userPrincipalName; }
Set the userPrincipalName value.
Params:
  • userPrincipalName – the userPrincipalName value to set
Returns:the UserInner object itself.
/** * Set the userPrincipalName value. * * @param userPrincipalName the userPrincipalName value to set * @return the UserInner object itself. */
public UserInner withUserPrincipalName(String userPrincipalName) { this.userPrincipalName = userPrincipalName; return this; }
Get the mailNickname value.
Returns:the mailNickname value
/** * Get the mailNickname value. * * @return the mailNickname value */
public String mailNickname() { return this.mailNickname; }
Set the mailNickname value.
Params:
  • mailNickname – the mailNickname value to set
Returns:the UserInner object itself.
/** * Set the mailNickname value. * * @param mailNickname the mailNickname value to set * @return the UserInner object itself. */
public UserInner withMailNickname(String mailNickname) { this.mailNickname = mailNickname; return this; }
Get the mail value.
Returns:the mail value
/** * Get the mail value. * * @return the mail value */
public String mail() { return this.mail; }
Set the mail value.
Params:
  • mail – the mail value to set
Returns:the UserInner object itself.
/** * Set the mail value. * * @param mail the mail value to set * @return the UserInner object itself. */
public UserInner withMail(String mail) { this.mail = mail; return this; }
Get the signInNames value.
Returns:the signInNames value
/** * Get the signInNames value. * * @return the signInNames value */
public List<SignInName> signInNames() { return this.signInNames; }
Set the signInNames value.
Params:
  • signInNames – the signInNames value to set
Returns:the UserInner object itself.
/** * Set the signInNames value. * * @param signInNames the signInNames value to set * @return the UserInner object itself. */
public UserInner withSignInNames(List<SignInName> signInNames) { this.signInNames = signInNames; return this; } }