Class UserDetails
java.lang.Object
com.azure.resourcemanager.weightsandbiases.models.UserDetails
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserDetails>
public final class UserDetails
extends Object
implements com.azure.json.JsonSerializable<UserDetails>
User details for an organization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the emailAddress property: Email address of the user.Get the firstName property: First name of the user.static UserDetailsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserDetails from the JsonReader.lastName()Get the lastName property: Last name of the user.Get the phoneNumber property: User's phone number.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) upn()Get the upn property: User's principal name.voidvalidate()Validates the instance.withEmailAddress(String emailAddress) Set the emailAddress property: Email address of the user.withFirstName(String firstName) Set the firstName property: First name of the user.withLastName(String lastName) Set the lastName property: Last name of the user.withPhoneNumber(String phoneNumber) Set the phoneNumber property: User's phone number.Set the upn property: User's principal name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
UserDetails
public UserDetails()Creates an instance of UserDetails class.
-
-
Method Details
-
firstName
Get the firstName property: First name of the user.- Returns:
- the firstName value.
-
withFirstName
Set the firstName property: First name of the user.- Parameters:
firstName- the firstName value to set.- Returns:
- the UserDetails object itself.
-
lastName
Get the lastName property: Last name of the user.- Returns:
- the lastName value.
-
withLastName
Set the lastName property: Last name of the user.- Parameters:
lastName- the lastName value to set.- Returns:
- the UserDetails object itself.
-
emailAddress
Get the emailAddress property: Email address of the user.- Returns:
- the emailAddress value.
-
withEmailAddress
Set the emailAddress property: Email address of the user.- Parameters:
emailAddress- the emailAddress value to set.- Returns:
- the UserDetails object itself.
-
upn
Get the upn property: User's principal name.- Returns:
- the upn value.
-
withUpn
Set the upn property: User's principal name.- Parameters:
upn- the upn value to set.- Returns:
- the UserDetails object itself.
-
phoneNumber
Get the phoneNumber property: User's phone number.- Returns:
- the phoneNumber value.
-
withPhoneNumber
Set the phoneNumber property: User's phone number.- Parameters:
phoneNumber- the phoneNumber value to set.- Returns:
- the UserDetails object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UserDetails>- Throws:
IOException
-
fromJson
Reads an instance of UserDetails from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserDetails if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the UserDetails.
-