Package com.twitter.clientlib.model
Class TweetNonPublicMetrics
- java.lang.Object
-
- com.twitter.clientlib.model.TweetNonPublicMetrics
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class TweetNonPublicMetrics extends Object
Nonpublic engagement metrics for the Tweet at the time of the request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTweetNonPublicMetrics.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_IMPRESSION_COUNT
-
Constructor Summary
Constructors Constructor Description TweetNonPublicMetrics()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TweetNonPublicMetricsfromJson(String jsonString)Create an instance of TweetNonPublicMetrics given an JSON stringIntegergetImpressionCount()Number of times this Tweet has been viewed.inthashCode()TweetNonPublicMetricsimpressionCount(Integer impressionCount)voidsetImpressionCount(Integer impressionCount)StringtoJson()Convert an instance of TweetNonPublicMetrics to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
impressionCount
public TweetNonPublicMetrics impressionCount(Integer impressionCount)
-
getImpressionCount
@Nullable public Integer getImpressionCount()
Number of times this Tweet has been viewed.- Returns:
- impressionCount
-
setImpressionCount
public void setImpressionCount(Integer impressionCount)
-
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 TweetNonPublicMetrics
-
fromJson
public static TweetNonPublicMetrics fromJson(String jsonString) throws IOException
Create an instance of TweetNonPublicMetrics given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TweetNonPublicMetrics
- Throws:
IOException- if the JSON string is invalid with respect to TweetNonPublicMetrics
-
toJson
public String toJson()
Convert an instance of TweetNonPublicMetrics to an JSON string- Returns:
- JSON string
-
-