com.generated.graphql.Human Maven / Gradle / Ivy
package com.generated.graphql;
import java.util.List;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.graphql_java_generator.annotation.GraphQLNonScalar;
import com.graphql_java_generator.annotation.GraphQLScalar;
/**
* @author generated by graphql-java-generator
* @see https://github.com/graphql-java-generator/graphql-java-generator
*/
public class Human implements Character {
@GraphQLScalar(graphqlType = String.class)
String id;
@GraphQLScalar(graphqlType = String.class)
String name;
@GraphQLNonScalar(graphqlType = Character.class)
@JsonDeserialize(contentAs = CharacterImpl.class)
List friends;
@GraphQLScalar(graphqlType = Episode.class)
@JsonDeserialize(contentAs = Episode.class)
List appearsIn;
@GraphQLScalar(graphqlType = String.class)
String homePlanet;
public void setId(String id) {
this.id = id;
}
public String getId() {
return id;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setFriends(List friends) {
this.friends = friends;
}
public List getFriends() {
return friends;
}
public void setAppearsIn(List appearsIn) {
this.appearsIn = appearsIn;
}
public List getAppearsIn() {
return appearsIn;
}
public void setHomePlanet(String homePlanet) {
this.homePlanet = homePlanet;
}
public String getHomePlanet() {
return homePlanet;
}
public String toString() {
return "Human {"
+ "id: " + id
+ ", "
+ "name: " + name
+ ", "
+ "friends: " + friends
+ ", "
+ "appearsIn: " + appearsIn
+ ", "
+ "homePlanet: " + homePlanet
+ "}";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy