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 classUsersFollowingCreateResponseData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_FOLLOWINGstatic StringSERIALIZED_NAME_PENDING_FOLLOW
-
Constructor Summary
Constructors Constructor Description UsersFollowingCreateResponseData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)UsersFollowingCreateResponseDatafollowing(Boolean following)static UsersFollowingCreateResponseDatafromJson(String jsonString)Create an instance of UsersFollowingCreateResponseData given an JSON stringBooleangetFollowing()Get followingBooleangetPendingFollow()Get pendingFollowinthashCode()UsersFollowingCreateResponseDatapendingFollow(Boolean pendingFollow)voidsetFollowing(Boolean following)voidsetPendingFollow(Boolean pendingFollow)StringtoJson()Convert an instance of UsersFollowingCreateResponseData 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_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 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 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
-
-