Package com.twitter.clientlib.model
Class TweetCreateResponseData
- java.lang.Object
-
- com.twitter.clientlib.model.TweetCreateResponseData
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetCreateResponseData extends Object
TweetCreateResponseData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetCreateResponseData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_TEXT
-
Constructor Summary
Constructors Constructor Description TweetCreateResponseData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TweetCreateResponseDatafromJson(String jsonString)Create an instance of TweetCreateResponseData given an JSON stringStringgetId()Unique identifier of this Tweet.StringgetText()The content of the Tweet.inthashCode()TweetCreateResponseDataid(String id)voidsetId(String id)voidsetText(String text)TweetCreateResponseDatatext(String text)StringtoJson()Convert an instance of TweetCreateResponseData 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_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TEXT
public static final String SERIALIZED_NAME_TEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public TweetCreateResponseData id(String id)
-
getId
@Nonnull public String getId()
Unique identifier of this Tweet. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.- Returns:
- id
-
setId
public void setId(String id)
-
text
public TweetCreateResponseData text(String text)
-
setText
public void setText(String text)
-
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 TweetCreateResponseData
-
fromJson
public static TweetCreateResponseData fromJson(String jsonString) throws IOException
Create an instance of TweetCreateResponseData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetCreateResponseData
- Throws:
IOException- if the JSON string is invalid with respect to TweetCreateResponseData
-
toJson
public String toJson()
Convert an instance of TweetCreateResponseData to an JSON string- Returns:
- JSON string
-
-