Class UserContractProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.UserEntityBaseParameters
-
- com.azure.resourcemanager.apimanagement.fluent.models.UserContractProperties
-
public final class UserContractProperties extends UserEntityBaseParameters
User profile.
-
-
Constructor Summary
Constructors Constructor Description UserContractProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
email()
Get the email property: Email address.String
firstName()
Get the firstName property: First name.List<GroupContractProperties>
groups()
Get the groups property: Collection of groups user is part of.String
lastName()
Get the lastName property: Last name.OffsetDateTime
registrationDate()
Get the registrationDate property: Date of user registration.void
validate()
Validates the instance.UserContractProperties
withEmail(String email)
Set the email property: Email address.UserContractProperties
withFirstName(String firstName)
Set the firstName property: First name.UserContractProperties
withIdentities(List<UserIdentityContractInner> identities)
Set the identities property: Collection of user identities.UserContractProperties
withLastName(String lastName)
Set the lastName property: Last name.UserContractProperties
withNote(String note)
Set the note property: Optional note about a user set by the administrator.UserContractProperties
withRegistrationDate(OffsetDateTime registrationDate)
Set the registrationDate property: Date of user registration.UserContractProperties
withState(UserState state)
Set the state property: Account state.-
Methods inherited from class com.azure.resourcemanager.apimanagement.models.UserEntityBaseParameters
identities, note, state
-
-
-
-
Method Detail
-
firstName
public String firstName()
Get the firstName property: First name.- Returns:
- the firstName value.
-
withFirstName
public UserContractProperties withFirstName(String firstName)
Set the firstName property: First name.- Parameters:
firstName
- the firstName value to set.- Returns:
- the UserContractProperties object itself.
-
lastName
public String lastName()
Get the lastName property: Last name.- Returns:
- the lastName value.
-
withLastName
public UserContractProperties withLastName(String lastName)
Set the lastName property: Last name.- Parameters:
lastName
- the lastName value to set.- Returns:
- the UserContractProperties object itself.
-
email
public String email()
Get the email property: Email address.- Returns:
- the email value.
-
withEmail
public UserContractProperties withEmail(String email)
Set the email property: Email address.- Parameters:
email
- the email value to set.- Returns:
- the UserContractProperties object itself.
-
registrationDate
public OffsetDateTime 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
public UserContractProperties withRegistrationDate(OffsetDateTime registrationDate)
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 UserContractProperties object itself.
-
groups
public List<GroupContractProperties> groups()
Get the groups property: Collection of groups user is part of.- Returns:
- the groups value.
-
withState
public UserContractProperties withState(UserState state)
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.- Overrides:
withState
in classUserEntityBaseParameters
- Parameters:
state
- the state value to set.- Returns:
- the UserEntityBaseParameters object itself.
-
withNote
public UserContractProperties withNote(String note)
Set the note property: Optional note about a user set by the administrator.- Overrides:
withNote
in classUserEntityBaseParameters
- Parameters:
note
- the note value to set.- Returns:
- the UserEntityBaseParameters object itself.
-
withIdentities
public UserContractProperties withIdentities(List<UserIdentityContractInner> identities)
Set the identities property: Collection of user identities.- Overrides:
withIdentities
in classUserEntityBaseParameters
- Parameters:
identities
- the identities value to set.- Returns:
- the UserEntityBaseParameters object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classUserEntityBaseParameters
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-