Package com.twitter.clientlib.model
Class UsersFollowingCreateResponseData
- java.lang.Object
-
- com.twitter.clientlib.model.UsersFollowingCreateResponseData
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UsersFollowingCreateResponseData extends Object
UsersFollowingCreateResponseData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UsersFollowingCreateResponseData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_FOLLOWING
static String
SERIALIZED_NAME_PENDING_FOLLOW
-
Constructor Summary
Constructors Constructor Description UsersFollowingCreateResponseData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
UsersFollowingCreateResponseData
following(Boolean following)
static UsersFollowingCreateResponseData
fromJson(String jsonString)
Create an instance of UsersFollowingCreateResponseData given an JSON stringBoolean
getFollowing()
Get followingBoolean
getPendingFollow()
Get pendingFollowint
hashCode()
UsersFollowingCreateResponseData
pendingFollow(Boolean pendingFollow)
void
setFollowing(Boolean following)
void
setPendingFollow(Boolean pendingFollow)
String
toJson()
Convert an instance of UsersFollowingCreateResponseData to an JSON stringString
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_FOLLOWING
public static final String SERIALIZED_NAME_FOLLOWING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PENDING_FOLLOW
public static final String SERIALIZED_NAME_PENDING_FOLLOW
- See Also:
- Constant Field Values
-
-
Method Detail
-
following
public UsersFollowingCreateResponseData following(Boolean following)
-
setFollowing
public void setFollowing(Boolean following)
-
pendingFollow
public UsersFollowingCreateResponseData pendingFollow(Boolean pendingFollow)
-
getPendingFollow
@Nullable public Boolean getPendingFollow()
Get pendingFollow- Returns:
- pendingFollow
-
setPendingFollow
public void setPendingFollow(Boolean pendingFollow)
-
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 UsersFollowingCreateResponseData
-
fromJson
public static UsersFollowingCreateResponseData fromJson(String jsonString) throws IOException
Create an instance of UsersFollowingCreateResponseData given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of UsersFollowingCreateResponseData
- Throws:
IOException
- if the JSON string is invalid with respect to UsersFollowingCreateResponseData
-
toJson
public String toJson()
Convert an instance of UsersFollowingCreateResponseData to an JSON string- Returns:
- JSON string
-
-