Package com.adyen.model.management
Class CreateUserResponse
- java.lang.Object
-
- com.adyen.model.management.CreateUserResponse
-
public class CreateUserResponse extends Object
CreateUserResponse
-
-
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 CreateUserResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateUserResponseaccountGroups(List<String> accountGroups)The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user.CreateUserResponseactive(Boolean active)Indicates whether this user is active.CreateUserResponseaddAccountGroupsItem(String accountGroupsItem)CreateUserResponseaddAppsItem(String appsItem)CreateUserResponseaddRolesItem(String rolesItem)CreateUserResponseapps(List<String> apps)Set of apps available to this userCreateUserResponseemail(String email)The email address of the user.booleanequals(Object o)Return true if this CreateUserResponse object is equal to o.static CreateUserResponsefromJson(String jsonString)Create an instance of CreateUserResponse 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()CreateUserResponseid(String id)The unique identifier of the user.CreateUserResponselinks(Links links)linksCreateUserResponsename(Name name)nameCreateUserResponseroles(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.CreateUserResponsetimeZoneCode(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 CreateUserResponse to an JSON stringStringtoString()CreateUserResponseusername(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 CreateUserResponse links(Links links)
links- Parameters:
links-- Returns:
- the current
CreateUserResponseinstance, allowing for method chaining
-
getLinks
public Links getLinks()
links- Returns:
- links
-
setLinks
public void setLinks(Links links)
links- Parameters:
links-
-
accountGroups
public CreateUserResponse 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
CreateUserResponseinstance, allowing for method chaining
-
addAccountGroupsItem
public CreateUserResponse addAccountGroupsItem(String accountGroupsItem)
-
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 CreateUserResponse active(Boolean active)
Indicates whether this user is active.- Parameters:
active-- Returns:
- the current
CreateUserResponseinstance, 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 CreateUserResponse apps(List<String> apps)
Set of apps available to this user- Parameters:
apps-- Returns:
- the current
CreateUserResponseinstance, allowing for method chaining
-
addAppsItem
public CreateUserResponse addAppsItem(String appsItem)
-
setApps
public void setApps(List<String> apps)
Set of apps available to this user- Parameters:
apps-
-
email
public CreateUserResponse email(String email)
The email address of the user.- Parameters:
email-- Returns:
- the current
CreateUserResponseinstance, 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 CreateUserResponse id(String id)
The unique identifier of the user.- Parameters:
id-- Returns:
- the current
CreateUserResponseinstance, 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 CreateUserResponse name(Name name)
name- Parameters:
name-- Returns:
- the current
CreateUserResponseinstance, allowing for method chaining
-
getName
public Name getName()
name- Returns:
- name
-
setName
public void setName(Name name)
name- Parameters:
name-
-
roles
public CreateUserResponse roles(List<String> roles)
The list of [roles](https://docs.adyen.com/account/user-roles) for this user.- Parameters:
roles-- Returns:
- the current
CreateUserResponseinstance, allowing for method chaining
-
addRolesItem
public CreateUserResponse addRolesItem(String rolesItem)
-
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 CreateUserResponse 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
CreateUserResponseinstance, 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 CreateUserResponse username(String username)
The username for this user.- Parameters:
username-- Returns:
- the current
CreateUserResponseinstance, 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 CreateUserResponse object is equal to o.
-
fromJson
public static CreateUserResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateUserResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateUserResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateUserResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateUserResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-