Class Human

java.lang.Object
com.generated.graphql.Human
All Implemented Interfaces:
Character

public class Human extends Object implements Character
Author:
generated by graphql-java-generator
See Also:
  • Constructor Details

    • Human

      public Human()
  • Method Details

    • setId

      public void setId(String id)
      Specified by:
      setId in interface Character
    • getId

      public String getId()
      Specified by:
      getId in interface Character
    • setName

      public void setName(String name)
      Specified by:
      setName in interface Character
    • getName

      public String getName()
      Specified by:
      getName in interface Character
    • setFriends

      public void setFriends(List<Character> friends)
      Specified by:
      setFriends in interface Character
    • getFriends

      public List<Character> getFriends()
      Specified by:
      getFriends in interface Character
    • getFriendsCharacter

      public List<Character> getFriendsCharacter()
    • setAppearsIn

      public void setAppearsIn(List<Episode> appearsIn)
      Specified by:
      setAppearsIn in interface Character
    • getAppearsIn

      public List<Episode> getAppearsIn()
      Specified by:
      getAppearsIn in interface Character
    • getAppearsInEpisode

      public List<Episode> getAppearsInEpisode()
    • setHomePlanet

      public void setHomePlanet(String homePlanet)
    • getHomePlanet

      public String getHomePlanet()
    • set__typename

      public void set__typename(String __typename)
      Specified by:
      set__typename in interface Character
    • get__typename

      public String get__typename()
      Specified by:
      get__typename in interface Character
    • setAliasValue

      public void setAliasValue(String aliasName, Object aliasDeserializedValue)
      This method is called during the json deserialization process, by the GraphQLObjectMapper, each time an alias value is read from the json.
      Specified by:
      setAliasValue in interface Character
      Parameters:
      aliasName -
      aliasDeserializedValue -
    • getAliasValue

      public Object getAliasValue(String alias)
      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 interface Character
      Parameters:
      alias -
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Human.Builder builder()