Package org.allGraphQLCases.client2
Class Human
java.lang.Object
org.allGraphQLCases.client2.Human
- All Implemented Interfaces:
AnyCharacter
,Character
,Commented
,Node
,WithID
- Author:
- generated by graphql-java-generator
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The Builder that helps building instance of this POJO. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Human.Builder
builder()
getAliasValue
(String alias) Retrieves the value for the given alias, as it has been received for this object in the GraphQL response.getId()
getName()
void
set__typename
(String __typename) void
setAliasValue
(String aliasName, Object aliasDeserializedValue) This method is called during the json deserialization process, by theGraphQLObjectMapper
, each time an alias value is read from the json.void
setAppearsIn
(List<Episode> appearsIn) void
setBestFriend
(Character bestFriend) void
setComments
(List<String> comments) void
setFriends
(List<Character> friends) void
setHomePlanet
(String homePlanet) void
void
void
setNbComments
(Integer nbComments) toString()
-
Constructor Details
-
Human
public Human()
-
-
Method Details
-
setId
-
getId
-
setName
-
getName
-
setBestFriend
-
getBestFriend
-
setFriends
- Specified by:
setFriends
in interfaceCharacter
-
getFriends
- Specified by:
getFriends
in interfaceCharacter
-
getFriendsCharacter
-
setNbComments
- Specified by:
setNbComments
in interfaceCommented
-
getNbComments
- Specified by:
getNbComments
in interfaceCommented
-
setComments
- Specified by:
setComments
in interfaceCommented
-
getComments
- Specified by:
getComments
in interfaceCommented
-
getCommentsString
-
setAppearsIn
- Specified by:
setAppearsIn
in interfaceCharacter
-
getAppearsIn
- Specified by:
getAppearsIn
in interfaceCharacter
-
getAppearsInEpisode
-
setHomePlanet
-
getHomePlanet
-
set__typename
- Specified by:
set__typename
in interfaceCharacter
- Specified by:
set__typename
in interfaceCommented
- Specified by:
set__typename
in interfaceNode
- Specified by:
set__typename
in interfaceWithID
-
get__typename
- Specified by:
get__typename
in interfaceCharacter
- Specified by:
get__typename
in interfaceCommented
- Specified by:
get__typename
in interfaceNode
- Specified by:
get__typename
in interfaceWithID
-
setAliasValue
This method is called during the json deserialization process, by theGraphQLObjectMapper
, each time an alias value is read from the json.- Specified by:
setAliasValue
in interfaceCharacter
- Specified by:
setAliasValue
in interfaceCommented
- Specified by:
setAliasValue
in interfaceNode
- Specified by:
setAliasValue
in interfaceWithID
- Parameters:
aliasName
-aliasDeserializedValue
-
-
getAliasValue
Retrieves the value for the given alias, as it has been received for this object in the GraphQL response.
This method should not be used for Custom Scalars, as the parser doesn't know if this alias is a custom scalar, and which custom scalar to use at deserialization time. In most case, a value will then be provided by this method with a basis json deserialization, but this value won't be the proper custom scalar value.- Specified by:
getAliasValue
in interfaceCharacter
- Specified by:
getAliasValue
in interfaceCommented
- Specified by:
getAliasValue
in interfaceNode
- Specified by:
getAliasValue
in interfaceWithID
- Parameters:
alias
-- Returns:
-
toString
-
builder
-