Package com.twitter.clientlib.model
Class ListPinnedResponseData
- java.lang.Object
-
- com.twitter.clientlib.model.ListPinnedResponseData
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ListPinnedResponseData extends Object
ListPinnedResponseData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListPinnedResponseData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PINNED
-
Constructor Summary
Constructors Constructor Description ListPinnedResponseData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ListPinnedResponseDatafromJson(String jsonString)Create an instance of ListPinnedResponseData given an JSON stringBooleangetPinned()Get pinnedinthashCode()ListPinnedResponseDatapinned(Boolean pinned)voidsetPinned(Boolean pinned)StringtoJson()Convert an instance of ListPinnedResponseData to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
pinned
public ListPinnedResponseData pinned(Boolean pinned)
-
setPinned
public void setPinned(Boolean pinned)
-
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 ListPinnedResponseData
-
fromJson
public static ListPinnedResponseData fromJson(String jsonString) throws IOException
Create an instance of ListPinnedResponseData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListPinnedResponseData
- Throws:
IOException- if the JSON string is invalid with respect to ListPinnedResponseData
-
toJson
public String toJson()
Convert an instance of ListPinnedResponseData to an JSON string- Returns:
- JSON string
-
-