Package com.twitter.clientlib.model
Class SingleListLookupResponse
- java.lang.Object
-
- com.twitter.clientlib.model.SingleListLookupResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SingleListLookupResponse extends Object
SingleListLookupResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSingleListLookupResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_ERRORSstatic StringSERIALIZED_NAME_INCLUDES
-
Constructor Summary
Constructors Constructor Description SingleListLookupResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleListLookupResponseaddErrorsItem(Problem errorsItem)SingleListLookupResponsedata(ModelList data)booleanequals(Object o)SingleListLookupResponseerrors(List<Problem> errors)static SingleListLookupResponsefromJson(String jsonString)Create an instance of SingleListLookupResponse given an JSON stringModelListgetData()Get dataList<Problem>getErrors()Get errorsSingleListLookupResponseIncludesgetIncludes()Get includesinthashCode()SingleListLookupResponseincludes(SingleListLookupResponseIncludes includes)voidsetData(ModelList data)voidsetErrors(List<Problem> errors)voidsetIncludes(SingleListLookupResponseIncludes includes)StringtoJson()Convert an instance of SingleListLookupResponse 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_INCLUDES
public static final String SERIALIZED_NAME_INCLUDES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public SingleListLookupResponse data(ModelList data)
-
setData
public void setData(ModelList data)
-
includes
public SingleListLookupResponse includes(SingleListLookupResponseIncludes includes)
-
getIncludes
@Nullable public SingleListLookupResponseIncludes getIncludes()
Get includes- Returns:
- includes
-
setIncludes
public void setIncludes(SingleListLookupResponseIncludes includes)
-
errors
public SingleListLookupResponse errors(List<Problem> errors)
-
addErrorsItem
public SingleListLookupResponse 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 SingleListLookupResponse
-
fromJson
public static SingleListLookupResponse fromJson(String jsonString) throws IOException
Create an instance of SingleListLookupResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SingleListLookupResponse
- Throws:
IOException- if the JSON string is invalid with respect to SingleListLookupResponse
-
toJson
public String toJson()
Convert an instance of SingleListLookupResponse to an JSON string- Returns:
- JSON string
-
-