Class Human
java.lang.Object
com.graphql_java_generator.domain.client.allGraphQLCases.Human
- All Implemented Interfaces:
AnyCharacter,Character,Commented,WithID
- Author:
- generated by graphql-java-generator
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Builder that helps building instance of this POJO. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Human.Builderbuilder()getAliasValue(String alias) Retrieves the value for the given alias, as it has been received for this object in the GraphQL response.getId()getName()voidset__typename(String __typename) voidsetAliasValue(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.voidsetAppearsIn(List<Episode> appearsIn) voidsetBestFriend(Character bestFriend) voidsetComments(List<String> comments) voidsetFriends(List<Character> friends) voidsetHomePlanet(String homePlanet) voidvoidvoidsetNbComments(Integer nbComments) toString()
-
Constructor Details
-
Human
public Human()
-
-
Method Details
-
setId
-
getId
-
setName
-
getName
-
setBestFriend
-
getBestFriend
-
setFriends
- Specified by:
setFriendsin interfaceCharacter
-
getFriends
- Specified by:
getFriendsin interfaceCharacter
-
getFriendsCharacter
-
setNbComments
- Specified by:
setNbCommentsin interfaceCommented
-
getNbComments
- Specified by:
getNbCommentsin interfaceCommented
-
setComments
- Specified by:
setCommentsin interfaceCommented
-
getComments
- Specified by:
getCommentsin interfaceCommented
-
getCommentsString
-
setAppearsIn
- Specified by:
setAppearsInin interfaceCharacter
-
getAppearsIn
- Specified by:
getAppearsInin interfaceCharacter
-
getAppearsInEpisode
-
setHomePlanet
-
getHomePlanet
-
set__typename
- Specified by:
set__typenamein interfaceCharacter- Specified by:
set__typenamein interfaceCommented- Specified by:
set__typenamein interfaceWithID
-
get__typename
- Specified by:
get__typenamein interfaceCharacter- Specified by:
get__typenamein interfaceCommented- Specified by:
get__typenamein 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:
setAliasValuein interfaceCharacter- Specified by:
setAliasValuein interfaceCommented- Specified by:
setAliasValuein 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:
getAliasValuein interfaceCharacter- Specified by:
getAliasValuein interfaceCommented- Specified by:
getAliasValuein interfaceWithID- Parameters:
alias-- Returns:
-
toString
-
builder
-