Package com.twitter.clientlib.model
Class ListCreateRequest
- java.lang.Object
-
- com.twitter.clientlib.model.ListCreateRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ListCreateRequest extends ObjectListCreateRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListCreateRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PRIVATE
-
Constructor Summary
Constructors Constructor Description ListCreateRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListCreateRequest_private(Boolean _private)ListCreateRequestdescription(String description)booleanequals(Object o)static ListCreateRequestfromJson(String jsonString)Create an instance of ListCreateRequest given an JSON stringStringgetDescription()Get descriptionStringgetName()Get nameBooleangetPrivate()Get _privateinthashCode()ListCreateRequestname(String name)voidsetDescription(String description)voidsetName(String name)voidsetPrivate(Boolean _private)StringtoJson()Convert an instance of ListCreateRequest 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_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIVATE
public static final String SERIALIZED_NAME_PRIVATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public ListCreateRequest name(String name)
-
getName
@Nonnull public String getName()
Get name- Returns:
- name
-
setName
public void setName(String name)
-
description
public ListCreateRequest description(String description)
-
getDescription
@Nullable public String getDescription()
Get description- Returns:
- description
-
setDescription
public void setDescription(String description)
-
_private
public ListCreateRequest _private(Boolean _private)
-
getPrivate
@Nullable public Boolean getPrivate()
Get _private- Returns:
- _private
-
setPrivate
public void setPrivate(Boolean _private)
-
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 ListCreateRequest
-
fromJson
public static ListCreateRequest fromJson(String jsonString) throws IOException
Create an instance of ListCreateRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListCreateRequest
- Throws:
IOException- if the JSON string is invalid with respect to ListCreateRequest
-
toJson
public String toJson()
Convert an instance of ListCreateRequest to an JSON string- Returns:
- JSON string
-
-