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 class
TweetCreateResponseData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_ID
static String
SERIALIZED_NAME_TEXT
-
Constructor Summary
Constructors Constructor Description TweetCreateResponseData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static TweetCreateResponseData
fromJson(String jsonString)
Create an instance of TweetCreateResponseData given an JSON stringString
getId()
Unique identifier of this Tweet.String
getText()
The content of the Tweet.int
hashCode()
TweetCreateResponseData
id(String id)
void
setId(String id)
void
setText(String text)
TweetCreateResponseData
text(String text)
String
toJson()
Convert an instance of TweetCreateResponseData 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_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 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 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
-
-