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 class
SearchCount.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_END
static String
SERIALIZED_NAME_START
static String
SERIALIZED_NAME_TWEET_COUNT
-
Constructor Summary
Constructors Constructor Description SearchCount()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchCount
end(OffsetDateTime end)
boolean
equals(Object o)
static SearchCount
fromJson(String jsonString)
Create an instance of SearchCount given an JSON stringOffsetDateTime
getEnd()
The end time of the bucket.OffsetDateTime
getStart()
The start time of the bucket.Integer
getTweetCount()
The count for the bucket.int
hashCode()
void
setEnd(OffsetDateTime end)
void
setStart(OffsetDateTime start)
void
setTweetCount(Integer tweetCount)
SearchCount
start(OffsetDateTime start)
String
toJson()
Convert an instance of SearchCount to an JSON stringString
toString()
SearchCount
tweetCount(Integer tweetCount)
static void
validateJsonObject(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 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 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
-
-