Class UserContractInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.apimanagement.fluent.models.UserContractInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class UserContractInner
extends com.azure.core.management.ProxyResource
User details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionemail()Get the email property: Email address.Get the firstName property: First name.static UserContractInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserContractInner from the JsonReader.groups()Get the groups property: Collection of groups user is part of.id()Get the id property: Fully qualified resource Id for the resource.Get the identities property: Collection of user identities.lastName()Get the lastName property: Last name.name()Get the name property: The name of the resource.note()Get the note property: Optional note about a user set by the administrator.Get the registrationDate property: Date of user registration.state()Get the state property: Account state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.Set the email property: Email address.withFirstName(String firstName) Set the firstName property: First name.withIdentities(List<UserIdentityContractInner> identities) Set the identities property: Collection of user identities.withLastName(String lastName) Set the lastName property: Last name.Set the note property: Optional note about a user set by the administrator.withRegistrationDate(OffsetDateTime registrationDate) Set the registrationDate property: Date of user registration.Set the state property: Account state.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
-
UserContractInner
public UserContractInner()Creates an instance of UserContractInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
firstName
Get the firstName property: First name.- Returns:
- the firstName value.
-
withFirstName
Set the firstName property: First name.- Parameters:
firstName- the firstName value to set.- Returns:
- the UserContractInner object itself.
-
lastName
Get the lastName property: Last name.- Returns:
- the lastName value.
-
withLastName
Set the lastName property: Last name.- Parameters:
lastName- the lastName value to set.- Returns:
- the UserContractInner object itself.
-
email
Get the email property: Email address.- Returns:
- the email value.
-
withEmail
Set the email property: Email address.- Parameters:
email- the email value to set.- Returns:
- the UserContractInner object itself.
-
registrationDate
Get the registrationDate property: Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Returns:
- the registrationDate value.
-
withRegistrationDate
Set the registrationDate property: Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Parameters:
registrationDate- the registrationDate value to set.- Returns:
- the UserContractInner object itself.
-
groups
Get the groups property: Collection of groups user is part of.- Returns:
- the groups value.
-
state
Get the state property: Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.- Returns:
- the state value.
-
withState
Set the state property: Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.- Parameters:
state- the state value to set.- Returns:
- the UserContractInner object itself.
-
note
Get the note property: Optional note about a user set by the administrator.- Returns:
- the note value.
-
withNote
Set the note property: Optional note about a user set by the administrator.- Parameters:
note- the note value to set.- Returns:
- the UserContractInner object itself.
-
identities
Get the identities property: Collection of user identities.- Returns:
- the identities value.
-
withIdentities
Set the identities property: Collection of user identities.- Parameters:
identities- the identities value to set.- Returns:
- the UserContractInner 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<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
Reads an instance of UserContractInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserContractInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the UserContractInner.
-