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 class
ReportUsersRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DESCRIPTION
static String
SERIALIZED_NAME_USER_IDS
-
Constructor Summary
Constructors Constructor Description ReportUsersRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportUsersRequest
addUserIdsItem(String userIdsItem)
ReportUsersRequest
description(String description)
boolean
equals(Object o)
static ReportUsersRequest
fromJson(String jsonString)
Create an instance of ReportUsersRequest given an JSON stringString
getDescription()
Get descriptionList<String>
getUserIds()
Get userIdsint
hashCode()
void
setDescription(String description)
void
setUserIds(List<String> userIds)
String
toJson()
Convert an instance of ReportUsersRequest to an JSON stringString
toString()
ReportUsersRequest
userIds(List<String> userIds)
static void
validateJsonObject(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 IOException
Validates 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
-
-