Package com.twitter.clientlib.model
Class TweetReferencedTweets
- java.lang.Object
-
- com.twitter.clientlib.model.TweetReferencedTweets
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetReferencedTweets extends Object
TweetReferencedTweets
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetReferencedTweets.CustomTypeAdapterFactorystatic classTweetReferencedTweets.TypeEnumGets or Sets type
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description TweetReferencedTweets()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TweetReferencedTweetsfromJson(String jsonString)Create an instance of TweetReferencedTweets given an JSON stringStringgetId()Unique identifier of this Tweet.TweetReferencedTweets.TypeEnumgetType()Get typeinthashCode()TweetReferencedTweetsid(String id)voidsetId(String id)voidsetType(TweetReferencedTweets.TypeEnum type)StringtoJson()Convert an instance of TweetReferencedTweets to an JSON stringStringtoString()TweetReferencedTweetstype(TweetReferencedTweets.TypeEnum type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public TweetReferencedTweets type(TweetReferencedTweets.TypeEnum type)
-
getType
@Nonnull public TweetReferencedTweets.TypeEnum getType()
Get type- Returns:
- type
-
setType
public void setType(TweetReferencedTweets.TypeEnum type)
-
id
public TweetReferencedTweets 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)
-
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 TweetReferencedTweets
-
fromJson
public static TweetReferencedTweets fromJson(String jsonString) throws IOException
Create an instance of TweetReferencedTweets given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetReferencedTweets
- Throws:
IOException- if the JSON string is invalid with respect to TweetReferencedTweets
-
toJson
public String toJson()
Convert an instance of TweetReferencedTweets to an JSON string- Returns:
- JSON string
-
-