Package com.twitter.clientlib.model
Class TweetCreateRequest
- java.lang.Object
-
- com.twitter.clientlib.model.TweetCreateRequest
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetCreateRequest extends Object
TweetCreateRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TweetCreateRequest.CustomTypeAdapterFactory
static class
TweetCreateRequest.ReplySettingsEnum
Settings to indicate who can reply to the Tweet.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_DIRECT_MESSAGE_DEEP_LINK
static String
SERIALIZED_NAME_FOR_SUPER_FOLLOWERS_ONLY
static String
SERIALIZED_NAME_GEO
static String
SERIALIZED_NAME_MEDIA
static String
SERIALIZED_NAME_POLL
static String
SERIALIZED_NAME_QUOTE_TWEET_ID
static String
SERIALIZED_NAME_REPLY
static String
SERIALIZED_NAME_REPLY_SETTINGS
static String
SERIALIZED_NAME_TEXT
-
Constructor Summary
Constructors Constructor Description TweetCreateRequest()
-
Method Summary
-
-
-
Field Detail
-
SERIALIZED_NAME_DIRECT_MESSAGE_DEEP_LINK
public static final String SERIALIZED_NAME_DIRECT_MESSAGE_DEEP_LINK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FOR_SUPER_FOLLOWERS_ONLY
public static final String SERIALIZED_NAME_FOR_SUPER_FOLLOWERS_ONLY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GEO
public static final String SERIALIZED_NAME_GEO
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MEDIA
public static final String SERIALIZED_NAME_MEDIA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_POLL
public static final String SERIALIZED_NAME_POLL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_QUOTE_TWEET_ID
public static final String SERIALIZED_NAME_QUOTE_TWEET_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REPLY
public static final String SERIALIZED_NAME_REPLY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REPLY_SETTINGS
public static final String SERIALIZED_NAME_REPLY_SETTINGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TEXT
public static final String SERIALIZED_NAME_TEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
directMessageDeepLink
public TweetCreateRequest directMessageDeepLink(String directMessageDeepLink)
-
getDirectMessageDeepLink
@Nullable public String getDirectMessageDeepLink()
Link to take the conversation from the public timeline to a private Direct Message.- Returns:
- directMessageDeepLink
-
setDirectMessageDeepLink
public void setDirectMessageDeepLink(String directMessageDeepLink)
-
forSuperFollowersOnly
public TweetCreateRequest forSuperFollowersOnly(Boolean forSuperFollowersOnly)
-
getForSuperFollowersOnly
@Nullable public Boolean getForSuperFollowersOnly()
Exclusive Tweet for super followers.- Returns:
- forSuperFollowersOnly
-
setForSuperFollowersOnly
public void setForSuperFollowersOnly(Boolean forSuperFollowersOnly)
-
geo
public TweetCreateRequest geo(TweetCreateRequestGeo geo)
-
getGeo
@Nullable public TweetCreateRequestGeo getGeo()
Get geo- Returns:
- geo
-
setGeo
public void setGeo(TweetCreateRequestGeo geo)
-
media
public TweetCreateRequest media(TweetCreateRequestMedia media)
-
getMedia
@Nullable public TweetCreateRequestMedia getMedia()
Get media- Returns:
- media
-
setMedia
public void setMedia(TweetCreateRequestMedia media)
-
poll
public TweetCreateRequest poll(TweetCreateRequestPoll poll)
-
getPoll
@Nullable public TweetCreateRequestPoll getPoll()
Get poll- Returns:
- poll
-
setPoll
public void setPoll(TweetCreateRequestPoll poll)
-
quoteTweetId
public TweetCreateRequest quoteTweetId(String quoteTweetId)
-
getQuoteTweetId
@Nullable public String getQuoteTweetId()
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:
- quoteTweetId
-
setQuoteTweetId
public void setQuoteTweetId(String quoteTweetId)
-
reply
public TweetCreateRequest reply(TweetCreateRequestReply reply)
-
getReply
@Nullable public TweetCreateRequestReply getReply()
Get reply- Returns:
- reply
-
setReply
public void setReply(TweetCreateRequestReply reply)
-
replySettings
public TweetCreateRequest replySettings(TweetCreateRequest.ReplySettingsEnum replySettings)
-
getReplySettings
@Nullable public TweetCreateRequest.ReplySettingsEnum getReplySettings()
Settings to indicate who can reply to the Tweet.- Returns:
- replySettings
-
setReplySettings
public void setReplySettings(TweetCreateRequest.ReplySettingsEnum replySettings)
-
text
public TweetCreateRequest 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 TweetCreateRequest
-
fromJson
public static TweetCreateRequest fromJson(String jsonString) throws IOException
Create an instance of TweetCreateRequest given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of TweetCreateRequest
- Throws:
IOException
- if the JSON string is invalid with respect to TweetCreateRequest
-
toJson
public String toJson()
Convert an instance of TweetCreateRequest to an JSON string- Returns:
- JSON string
-
-