Package com.twitter.clientlib.model
Class ListCreateResponse
- java.lang.Object
-
- com.twitter.clientlib.model.ListCreateResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ListCreateResponse extends Object
ListCreateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListCreateResponse.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 ListCreateResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListCreateResponse
addErrorsItem(Problem errorsItem)
ListCreateResponse
data(ListCreateResponseData data)
boolean
equals(Object o)
ListCreateResponse
errors(List<Problem> errors)
static ListCreateResponse
fromJson(String jsonString)
Create an instance of ListCreateResponse given an JSON stringListCreateResponseData
getData()
Get dataList<Problem>
getErrors()
Get errorsint
hashCode()
void
setData(ListCreateResponseData data)
void
setErrors(List<Problem> errors)
String
toJson()
Convert an instance of ListCreateResponse 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 ListCreateResponse data(ListCreateResponseData data)
-
getData
@Nullable public ListCreateResponseData getData()
Get data- Returns:
- data
-
setData
public void setData(ListCreateResponseData data)
-
errors
public ListCreateResponse errors(List<Problem> errors)
-
addErrorsItem
public ListCreateResponse 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 ListCreateResponse
-
fromJson
public static ListCreateResponse fromJson(String jsonString) throws IOException
Create an instance of ListCreateResponse given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of ListCreateResponse
- Throws:
IOException
- if the JSON string is invalid with respect to ListCreateResponse
-
toJson
public String toJson()
Convert an instance of ListCreateResponse to an JSON string- Returns:
- JSON string
-
-