Package com.twitter.clientlib.model
Class SearchCount
- java.lang.Object
-
- com.twitter.clientlib.model.SearchCount
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SearchCount extends Object
Represent a Search Count Result
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchCount.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ENDstatic StringSERIALIZED_NAME_STARTstatic StringSERIALIZED_NAME_TWEET_COUNT
-
Constructor Summary
Constructors Constructor Description SearchCount()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchCountend(OffsetDateTime end)booleanequals(Object o)static SearchCountfromJson(String jsonString)Create an instance of SearchCount given an JSON stringOffsetDateTimegetEnd()The end time of the bucketOffsetDateTimegetStart()The start time of the bucketIntegergetTweetCount()The count for the bucketinthashCode()voidsetEnd(OffsetDateTime end)voidsetStart(OffsetDateTime start)voidsetTweetCount(Integer tweetCount)SearchCountstart(OffsetDateTime start)StringtoJson()Convert an instance of SearchCount to an JSON stringStringtoString()SearchCounttweetCount(Integer tweetCount)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_END
public static final String SERIALIZED_NAME_END
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_START
public static final String SERIALIZED_NAME_START
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TWEET_COUNT
public static final String SERIALIZED_NAME_TWEET_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
end
public SearchCount end(OffsetDateTime end)
-
getEnd
@Nonnull public OffsetDateTime getEnd()
The end time of the bucket- Returns:
- end
-
setEnd
public void setEnd(OffsetDateTime end)
-
start
public SearchCount start(OffsetDateTime start)
-
getStart
@Nonnull public OffsetDateTime getStart()
The start time of the bucket- Returns:
- start
-
setStart
public void setStart(OffsetDateTime start)
-
tweetCount
public SearchCount tweetCount(Integer tweetCount)
-
setTweetCount
public void setTweetCount(Integer tweetCount)
-
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 SearchCount
-
fromJson
public static SearchCount fromJson(String jsonString) throws IOException
Create an instance of SearchCount given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SearchCount
- Throws:
IOException- if the JSON string is invalid with respect to SearchCount
-
toJson
public String toJson()
Convert an instance of SearchCount to an JSON string- Returns:
- JSON string
-
-