Package model
Class UpdateUserRequest
- java.lang.Object
-
- model.UpdateUserRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UpdateUserRequest extends Object
UpdateUserRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUpdateUserRequest.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 UpdateUserRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateUserRequestenabled(Boolean enabled)booleanequals(Object o)static UpdateUserRequestfromJson(String jsonString)Create an instance of UpdateUserRequest 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()UpdateUserRequestputTagsItem(String key, String tagsItem)voidsetEnabled(Boolean enabled)voidsetTags(Map<String,String> tags)UpdateUserRequesttags(Map<String,String> tags)StringtoJson()Convert an instance of UpdateUserRequest 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 UpdateUserRequest 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 UpdateUserRequest tags(Map<String,String> tags)
-
putTagsItem
public UpdateUserRequest 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 UpdateUserRequest
-
fromJson
public static UpdateUserRequest fromJson(String jsonString) throws IOException
Create an instance of UpdateUserRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateUserRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateUserRequest
-
toJson
public String toJson()
Convert an instance of UpdateUserRequest to an JSON string- Returns:
- JSON string
-
-