Package com.adyen.model.management
Class User
- java.lang.Object
-
- com.adyen.model.management.User
-
public class User extends Object
User
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_GROUPSstatic StringJSON_PROPERTY_ACTIVEstatic StringJSON_PROPERTY_APPSstatic StringJSON_PROPERTY_EMAILstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_LINKSstatic StringJSON_PROPERTY_NAMEstatic StringJSON_PROPERTY_ROLESstatic StringJSON_PROPERTY_TIME_ZONE_CODEstatic StringJSON_PROPERTY_USERNAME
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UseraccountGroups(List<String> accountGroups)The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.Useractive(Boolean active)Indicates whether this user is active.UseraddAccountGroupsItem(String accountGroupsItem)UseraddAppsItem(String appsItem)UseraddRolesItem(String rolesItem)Userapps(List<String> apps)Set of apps available to this userUseremail(String email)The email address of the user.booleanequals(Object o)Return true if this User object is equal to o.static UserfromJson(String jsonString)Create an instance of User given an JSON stringList<String>getAccountGroups()The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.BooleangetActive()Indicates whether this user is active.List<String>getApps()Set of apps available to this userStringgetEmail()The email address of the user.StringgetId()The unique identifier of the user.LinksgetLinks()linksNamegetName()nameList<String>getRoles()The list of [roles](https://docs.adyen.com/account/user-roles) for this user.StringgetTimeZoneCode()The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user.StringgetUsername()The username for this user.inthashCode()Userid(String id)The unique identifier of the user.Userlinks(Links links)linksUsername(Name name)nameUserroles(List<String> roles)The list of [roles](https://docs.adyen.com/account/user-roles) for this user.voidsetAccountGroups(List<String> accountGroups)The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.voidsetActive(Boolean active)Indicates whether this user is active.voidsetApps(List<String> apps)Set of apps available to this uservoidsetEmail(String email)The email address of the user.voidsetId(String id)The unique identifier of the user.voidsetLinks(Links links)linksvoidsetName(Name name)namevoidsetRoles(List<String> roles)The list of [roles](https://docs.adyen.com/account/user-roles) for this user.voidsetTimeZoneCode(String timeZoneCode)The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user.voidsetUsername(String username)The username for this user.UsertimeZoneCode(String timeZoneCode)The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user.StringtoJson()Convert an instance of User to an JSON stringStringtoString()Userusername(String username)The username for this user.
-
-
-
Field Detail
-
JSON_PROPERTY_LINKS
public static final String JSON_PROPERTY_LINKS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACCOUNT_GROUPS
public static final String JSON_PROPERTY_ACCOUNT_GROUPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACTIVE
public static final String JSON_PROPERTY_ACTIVE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_APPS
public static final String JSON_PROPERTY_APPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EMAIL
public static final String JSON_PROPERTY_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ROLES
public static final String JSON_PROPERTY_ROLES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIME_ZONE_CODE
public static final String JSON_PROPERTY_TIME_ZONE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USERNAME
public static final String JSON_PROPERTY_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public User links(Links links)
links- Parameters:
links-- Returns:
- the current
Userinstance, allowing for method chaining
-
getLinks
public Links getLinks()
links- Returns:
- links
-
setLinks
public void setLinks(Links links)
links- Parameters:
links-
-
accountGroups
public User accountGroups(List<String> accountGroups)
The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.- Parameters:
accountGroups-- Returns:
- the current
Userinstance, allowing for method chaining
-
getAccountGroups
public List<String> getAccountGroups()
The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.- Returns:
- accountGroups
-
setAccountGroups
public void setAccountGroups(List<String> accountGroups)
The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.- Parameters:
accountGroups-
-
active
public User active(Boolean active)
Indicates whether this user is active.- Parameters:
active-- Returns:
- the current
Userinstance, allowing for method chaining
-
getActive
public Boolean getActive()
Indicates whether this user is active.- Returns:
- active
-
setActive
public void setActive(Boolean active)
Indicates whether this user is active.- Parameters:
active-
-
apps
public User apps(List<String> apps)
Set of apps available to this user- Parameters:
apps-- Returns:
- the current
Userinstance, allowing for method chaining
-
setApps
public void setApps(List<String> apps)
Set of apps available to this user- Parameters:
apps-
-
email
public User email(String email)
The email address of the user.- Parameters:
email-- Returns:
- the current
Userinstance, allowing for method chaining
-
getEmail
public String getEmail()
The email address of the user.- Returns:
-
setEmail
public void setEmail(String email)
The email address of the user.- Parameters:
email-
-
id
public User id(String id)
The unique identifier of the user.- Parameters:
id-- Returns:
- the current
Userinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the user.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the user.- Parameters:
id-
-
name
public User name(Name name)
name- Parameters:
name-- Returns:
- the current
Userinstance, allowing for method chaining
-
getName
public Name getName()
name- Returns:
- name
-
setName
public void setName(Name name)
name- Parameters:
name-
-
roles
public User roles(List<String> roles)
The list of [roles](https://docs.adyen.com/account/user-roles) for this user.- Parameters:
roles-- Returns:
- the current
Userinstance, allowing for method chaining
-
getRoles
public List<String> getRoles()
The list of [roles](https://docs.adyen.com/account/user-roles) for this user.- Returns:
- roles
-
setRoles
public void setRoles(List<String> roles)
The list of [roles](https://docs.adyen.com/account/user-roles) for this user.- Parameters:
roles-
-
timeZoneCode
public User timeZoneCode(String timeZoneCode)
The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.- Parameters:
timeZoneCode-- Returns:
- the current
Userinstance, allowing for method chaining
-
getTimeZoneCode
public String getTimeZoneCode()
The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.- Returns:
- timeZoneCode
-
setTimeZoneCode
public void setTimeZoneCode(String timeZoneCode)
The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**.- Parameters:
timeZoneCode-
-
username
public User username(String username)
The username for this user.- Parameters:
username-- Returns:
- the current
Userinstance, allowing for method chaining
-
getUsername
public String getUsername()
The username for this user.- Returns:
- username
-
setUsername
public void setUsername(String username)
The username for this user.- Parameters:
username-
-
equals
public boolean equals(Object o)
Return true if this User object is equal to o.
-
fromJson
public static User fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of User given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of User
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to User
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of User to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-