Package com.twitter.clientlib.model
Class ReportUsersRequest
- java.lang.Object
-
- com.twitter.clientlib.model.ReportUsersRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ReportUsersRequest extends Object
ReportUsersRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReportUsersRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_USER_IDS
-
Constructor Summary
Constructors Constructor Description ReportUsersRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportUsersRequestaddUserIdsItem(String userIdsItem)ReportUsersRequestdescription(String description)booleanequals(Object o)static ReportUsersRequestfromJson(String jsonString)Create an instance of ReportUsersRequest given an JSON stringStringgetDescription()Get descriptionList<String>getUserIds()Get userIdsinthashCode()voidsetDescription(String description)voidsetUserIds(List<String> userIds)StringtoJson()Convert an instance of ReportUsersRequest to an JSON stringStringtoString()ReportUsersRequestuserIds(List<String> userIds)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_USER_IDS
public static final String SERIALIZED_NAME_USER_IDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public ReportUsersRequest description(String description)
-
setDescription
public void setDescription(String description)
-
userIds
public ReportUsersRequest userIds(List<String> userIds)
-
addUserIdsItem
public ReportUsersRequest addUserIdsItem(String userIdsItem)
-
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 ReportUsersRequest
-
fromJson
public static ReportUsersRequest fromJson(String jsonString) throws IOException
Create an instance of ReportUsersRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ReportUsersRequest
- Throws:
IOException- if the JSON string is invalid with respect to ReportUsersRequest
-
toJson
public String toJson()
Convert an instance of ReportUsersRequest to an JSON string- Returns:
- JSON string
-
-