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 class
TweetReferencedTweets.CustomTypeAdapterFactory
static class
TweetReferencedTweets.TypeEnum
Gets or Sets type
-
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_TYPE
-
Constructor Summary
Constructors Constructor Description TweetReferencedTweets()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static TweetReferencedTweets
fromJson(String jsonString)
Create an instance of TweetReferencedTweets given an JSON stringString
getId()
Unique identifier of this Tweet.TweetReferencedTweets.TypeEnum
getType()
Get typeint
hashCode()
TweetReferencedTweets
id(String id)
void
setId(String id)
void
setType(TweetReferencedTweets.TypeEnum type)
String
toJson()
Convert an instance of TweetReferencedTweets to an JSON stringString
toString()
TweetReferencedTweets
type(TweetReferencedTweets.TypeEnum type)
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_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
type
public TweetReferencedTweets type(TweetReferencedTweets.TypeEnum type)
-
getType
@Nonnull public TweetReferencedTweets.TypeEnum getType()
Get type- Returns:
- type
-
setType
public void setType(TweetReferencedTweets.TypeEnum type)
-
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 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
-
-