Package com.twitter.clientlib.model
Class TweetCreateRequestReply
- java.lang.Object
-
- com.twitter.clientlib.model.TweetCreateRequestReply
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetCreateRequestReply extends Object
Tweet information of the Tweet being replied to.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TweetCreateRequestReply.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_EXCLUDE_REPLY_USER_IDS
static String
SERIALIZED_NAME_IN_REPLY_TO_TWEET_ID
-
Constructor Summary
Constructors Constructor Description TweetCreateRequestReply()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TweetCreateRequestReply
addExcludeReplyUserIdsItem(String excludeReplyUserIdsItem)
boolean
equals(Object o)
TweetCreateRequestReply
excludeReplyUserIds(List<String> excludeReplyUserIds)
static TweetCreateRequestReply
fromJson(String jsonString)
Create an instance of TweetCreateRequestReply given an JSON stringList<String>
getExcludeReplyUserIds()
A list of User Ids to be excluded from the reply Tweet.String
getInReplyToTweetId()
Unique identifier of this Tweet.int
hashCode()
TweetCreateRequestReply
inReplyToTweetId(String inReplyToTweetId)
void
setExcludeReplyUserIds(List<String> excludeReplyUserIds)
void
setInReplyToTweetId(String inReplyToTweetId)
String
toJson()
Convert an instance of TweetCreateRequestReply 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_EXCLUDE_REPLY_USER_IDS
public static final String SERIALIZED_NAME_EXCLUDE_REPLY_USER_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IN_REPLY_TO_TWEET_ID
public static final String SERIALIZED_NAME_IN_REPLY_TO_TWEET_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
excludeReplyUserIds
public TweetCreateRequestReply excludeReplyUserIds(List<String> excludeReplyUserIds)
-
addExcludeReplyUserIdsItem
public TweetCreateRequestReply addExcludeReplyUserIdsItem(String excludeReplyUserIdsItem)
-
getExcludeReplyUserIds
@Nullable public List<String> getExcludeReplyUserIds()
A list of User Ids to be excluded from the reply Tweet.- Returns:
- excludeReplyUserIds
-
inReplyToTweetId
public TweetCreateRequestReply inReplyToTweetId(String inReplyToTweetId)
-
getInReplyToTweetId
@Nonnull public String getInReplyToTweetId()
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:
- inReplyToTweetId
-
setInReplyToTweetId
public void setInReplyToTweetId(String inReplyToTweetId)
-
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 TweetCreateRequestReply
-
fromJson
public static TweetCreateRequestReply fromJson(String jsonString) throws IOException
Create an instance of TweetCreateRequestReply given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of TweetCreateRequestReply
- Throws:
IOException
- if the JSON string is invalid with respect to TweetCreateRequestReply
-
toJson
public String toJson()
Convert an instance of TweetCreateRequestReply to an JSON string- Returns:
- JSON string
-
-