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 classTweetCreateRequestReply.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_EXCLUDE_REPLY_USER_IDSstatic StringSERIALIZED_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 TweetCreateRequestReplyaddExcludeReplyUserIdsItem(String excludeReplyUserIdsItem)booleanequals(Object o)TweetCreateRequestReplyexcludeReplyUserIds(List<String> excludeReplyUserIds)static TweetCreateRequestReplyfromJson(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.StringgetInReplyToTweetId()Unique identifier of this Tweet.inthashCode()TweetCreateRequestReplyinReplyToTweetId(String inReplyToTweetId)voidsetExcludeReplyUserIds(List<String> excludeReplyUserIds)voidsetInReplyToTweetId(String inReplyToTweetId)StringtoJson()Convert an instance of TweetCreateRequestReply 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_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 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 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
-
-