Package com.twitter.clientlib.model
Class BlockUserMutationResponse
- java.lang.Object
-
- com.twitter.clientlib.model.BlockUserMutationResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class BlockUserMutationResponse extends Object
BlockUserMutationResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockUserMutationResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DATA
static String
SERIALIZED_NAME_ERRORS
-
Constructor Summary
Constructors Constructor Description BlockUserMutationResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockUserMutationResponse
addErrorsItem(Problem errorsItem)
BlockUserMutationResponse
data(BlockUserMutationResponseData data)
boolean
equals(Object o)
BlockUserMutationResponse
errors(List<Problem> errors)
static BlockUserMutationResponse
fromJson(String jsonString)
Create an instance of BlockUserMutationResponse given an JSON stringBlockUserMutationResponseData
getData()
Get dataList<Problem>
getErrors()
Get errorsint
hashCode()
void
setData(BlockUserMutationResponseData data)
void
setErrors(List<Problem> errors)
String
toJson()
Convert an instance of BlockUserMutationResponse to an JSON stringString
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public BlockUserMutationResponse data(BlockUserMutationResponseData data)
-
getData
@Nullable public BlockUserMutationResponseData getData()
Get data- Returns:
- data
-
setData
public void setData(BlockUserMutationResponseData data)
-
errors
public BlockUserMutationResponse errors(List<Problem> errors)
-
addErrorsItem
public BlockUserMutationResponse addErrorsItem(Problem errorsItem)
-
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 BlockUserMutationResponse
-
fromJson
public static BlockUserMutationResponse fromJson(String jsonString) throws IOException
Create an instance of BlockUserMutationResponse given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of BlockUserMutationResponse
- Throws:
IOException
- if the JSON string is invalid with respect to BlockUserMutationResponse
-
toJson
public String toJson()
Convert an instance of BlockUserMutationResponse to an JSON string- Returns:
- JSON string
-
-