Package com.twitter.clientlib.model
Class ListUpdateResponse
- java.lang.Object
-
- com.twitter.clientlib.model.ListUpdateResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ListUpdateResponse extends Object
ListUpdateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListUpdateResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_ERRORS
-
Constructor Summary
Constructors Constructor Description ListUpdateResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListUpdateResponseaddErrorsItem(Problem errorsItem)ListUpdateResponsedata(ListUpdateResponseData data)booleanequals(Object o)ListUpdateResponseerrors(List<Problem> errors)static ListUpdateResponsefromJson(String jsonString)Create an instance of ListUpdateResponse given an JSON stringListUpdateResponseDatagetData()Get dataList<Problem>getErrors()Get errorsinthashCode()voidsetData(ListUpdateResponseData data)voidsetErrors(List<Problem> errors)StringtoJson()Convert an instance of ListUpdateResponse 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_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 ListUpdateResponse data(ListUpdateResponseData data)
-
getData
@Nullable public ListUpdateResponseData getData()
Get data- Returns:
- data
-
setData
public void setData(ListUpdateResponseData data)
-
errors
public ListUpdateResponse errors(List<Problem> errors)
-
addErrorsItem
public ListUpdateResponse addErrorsItem(Problem errorsItem)
-
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 ListUpdateResponse
-
fromJson
public static ListUpdateResponse fromJson(String jsonString) throws IOException
Create an instance of ListUpdateResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListUpdateResponse
- Throws:
IOException- if the JSON string is invalid with respect to ListUpdateResponse
-
toJson
public String toJson()
Convert an instance of ListUpdateResponse to an JSON string- Returns:
- JSON string
-
-