Package com.twitter.clientlib.model
Class TweetCreateResponse
- java.lang.Object
-
- com.twitter.clientlib.model.TweetCreateResponse
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetCreateResponse extends Object
TweetCreateResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetCreateResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DATAstatic StringSERIALIZED_NAME_ERRORS
-
Constructor Summary
Constructors Constructor Description TweetCreateResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TweetCreateResponseaddErrorsItem(Problem errorsItem)TweetCreateResponsedata(TweetCreateResponseData data)booleanequals(Object o)TweetCreateResponseerrors(List<Problem> errors)static TweetCreateResponsefromJson(String jsonString)Create an instance of TweetCreateResponse given an JSON stringTweetCreateResponseDatagetData()Get dataList<Problem>getErrors()Get errorsinthashCode()voidsetData(TweetCreateResponseData data)voidsetErrors(List<Problem> errors)StringtoJson()Convert an instance of TweetCreateResponse 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_DATA
public static final String SERIALIZED_NAME_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERRORS
public static final String SERIALIZED_NAME_ERRORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
data
public TweetCreateResponse data(TweetCreateResponseData data)
-
getData
@Nullable public TweetCreateResponseData getData()
Get data- Returns:
- data
-
setData
public void setData(TweetCreateResponseData data)
-
errors
public TweetCreateResponse errors(List<Problem> errors)
-
addErrorsItem
public TweetCreateResponse addErrorsItem(Problem errorsItem)
-
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 TweetCreateResponse
-
fromJson
public static TweetCreateResponse fromJson(String jsonString) throws IOException
Create an instance of TweetCreateResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetCreateResponse
- Throws:
IOException- if the JSON string is invalid with respect to TweetCreateResponse
-
toJson
public String toJson()
Convert an instance of TweetCreateResponse to an JSON string- Returns:
- JSON string
-
-