Package model
Class CreateUserRequest
- java.lang.Object
-
- model.CreateUserRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateUserRequest extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateUserRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ENABLEDstatic StringSERIALIZED_NAME_TAGS
-
Constructor Summary
Constructors Constructor Description CreateUserRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateUserRequestenabled(Boolean enabled)booleanequals(Object o)static CreateUserRequestfromJson(String jsonString)Create an instance of CreateUserRequest given an JSON stringBooleangetEnabled()Details if the `user` is enabled and active.Map<String,String>getTags()Key value pair for annotating custom meta data (e.g.inthashCode()CreateUserRequestputTagsItem(String key, String tagsItem)voidsetEnabled(Boolean enabled)voidsetTags(Map<String,String> tags)CreateUserRequesttags(Map<String,String> tags)StringtoJson()Convert an instance of CreateUserRequest to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
enabled
public CreateUserRequest enabled(Boolean enabled)
-
getEnabled
@Nullable public Boolean getEnabled()
Details if the `user` is enabled and active. Set to **false** to disable the `user`.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
tags
public CreateUserRequest tags(Map<String,String> tags)
-
putTagsItem
public CreateUserRequest putTagsItem(String key, String tagsItem)
-
getTags
@Nullable public Map<String,String> getTags()
Key value pair for annotating custom meta data (e.g. order numbers).- Returns:
- tags
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CreateUserRequest
-
fromJson
public static CreateUserRequest fromJson(String jsonString) throws IOException
Create an instance of CreateUserRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateUserRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateUserRequest
-
toJson
public String toJson()
Convert an instance of CreateUserRequest to an JSON string- Returns:
- JSON string
-
-