Package io.voucherify.client.model
Class ManagementProjectsCreateRequestBodyUsersItem
java.lang.Object
io.voucherify.client.model.ManagementProjectsCreateRequestBodyUsersItem
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsCreateRequestBodyUsersItem
extends Object
Contains details about the users who will be assigned to the project. Only the `id` and `role` or `login` and `role` should be provided in the request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ManagementProjectsCreateRequestBodyUsersItem given an JSON stringgetId()The unique identifier of the user who will be assigned to the project.getLogin()The login data of the user who will be assigned to the project.getRole()The role of the user to be added.inthashCode()voidvoidvoidtoJson()Convert an instance of ManagementProjectsCreateRequestBodyUsersItem to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_LOGIN
- See Also:
-
SERIALIZED_NAME_ROLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsCreateRequestBodyUsersItem
public ManagementProjectsCreateRequestBodyUsersItem()
-
-
Method Details
-
id
-
getId
The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. **Required** with the `role` string. Do **not** use with the `login` string.- Returns:
- id
-
setId
-
login
-
getLogin
The login data of the user who will be assigned to the project. **Required** with the `role` string. Do **not** use with the `id` string.- Returns:
- login
-
setLogin
-
role
-
getRole
The role of the user to be added. It can be one of the following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT` or an ID of a custom role.- Returns:
- role
-
setRole
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ManagementProjectsCreateRequestBodyUsersItem fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsCreateRequestBodyUsersItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsCreateRequestBodyUsersItem
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsCreateRequestBodyUsersItem
-
toJson
Convert an instance of ManagementProjectsCreateRequestBodyUsersItem to an JSON string- Returns:
- JSON string
-