All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.allGraphQLCases.client.pojo.__Directive Maven / Gradle / Ivy

The newest version!
 /** Generated by the default template from graphql-java-generator */
package org.allGraphQLCases.client.pojo;

import java.util.HashMap;
import java.util.Map;


import com.graphql_java_generator.annotation.GraphQLInputParameters;
import com.graphql_java_generator.annotation.GraphQLNonScalar;
import com.graphql_java_generator.annotation.GraphQLObjectType;
import com.graphql_java_generator.annotation.GraphQLScalar;
import java.util.List;

import com.graphql_java_generator.annotation.GraphQLDirective;

/**
 *
 * @author generated by graphql-java-generator
 * @see https://github.com/graphql-java-generator/graphql-java-generator
 */
@GraphQLObjectType("__Directive")
@SuppressWarnings("unused")
public class __Directive
{
 

	/**
	 * This map contains the deserialized values for the alias, as parsed from the json response from the GraphQL
	 * server. The key is the alias name, the value is the deserialiazed value (taking into account custom scalars,
	 * lists, ...)
	 */
	@com.graphql_java_generator.annotation.GraphQLIgnore
	Map aliasValues = new HashMap<>();

	public __Directive(){
		// No action
	}

	@GraphQLScalar( fieldName = "name", graphQLTypeSimpleName = "String", javaClass = java.lang.String.class, listDepth = 0)
	java.lang.String name;


	@GraphQLScalar( fieldName = "description", graphQLTypeSimpleName = "String", javaClass = java.lang.String.class, listDepth = 0)
	java.lang.String description;


	@GraphQLScalar( fieldName = "locations", graphQLTypeSimpleName = "__DirectiveLocation", javaClass = org.allGraphQLCases.client.pojo.__DirectiveLocation.class, listDepth = 1)
	List locations;


	@GraphQLInputParameters(names = {"includeDeprecated"}, types = {"Boolean"}, mandatories = {false}, listDepths = {0}, itemsMandatory = {false})
	@GraphQLNonScalar( fieldName = "args", graphQLTypeSimpleName = "__InputValue", javaClass = org.allGraphQLCases.client.pojo.__InputValue.class, listDepth = 1)
	List args;


	@GraphQLScalar( fieldName = "isRepeatable", graphQLTypeSimpleName = "Boolean", javaClass = java.lang.Boolean.class, listDepth = 0)
	java.lang.Boolean isRepeatable;


	@GraphQLScalar( fieldName = "__typename", graphQLTypeSimpleName = "String", javaClass = java.lang.String.class, listDepth = 0)
	java.lang.String __typename;



	public void setName(java.lang.String name) {
		this.name = name;
	}

	public java.lang.String getName() {
		return name;
	}
		

	public void setDescription(java.lang.String description) {
		this.description = description;
	}

	public java.lang.String getDescription() {
		return description;
	}
		

	public void setLocations(List locations) {
		this.locations = locations;
	}

	public List getLocations() {
		return locations;
	}
		

	public void setArgs(List args) {
		this.args = args;
	}

	public List getArgs() {
		return args;
	}
		

	public void setIsRepeatable(java.lang.Boolean isRepeatable) {
		this.isRepeatable = isRepeatable;
	}

	public java.lang.Boolean getIsRepeatable() {
		return isRepeatable;
	}
		

	public void set__typename(java.lang.String __typename) {
		this.__typename = __typename;
	}

	public java.lang.String get__typename() {
		return __typename;
	}
		

 
	/**
	 * This method is called during the json deserialization process, by the {@link GraphQLObjectMapper}, each time an
	 * alias value is read from the json.
	 * 
	 * @param aliasName
	 * @param aliasDeserializedValue
	 */
	public void setAliasValue(String aliasName, Object aliasDeserializedValue) {
		aliasValues.put(aliasName, aliasDeserializedValue);
	}

	/**
	 * 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. * * @param alias * @return */ public Object getAliasValue(String alias) { return aliasValues.get(alias); } public String toString() { return "__Directive {" + "name: " + name + ", " + "description: " + description + ", " + "locations: " + locations + ", " + "args: " + args + ", " + "isRepeatable: " + isRepeatable + ", " + "__typename: " + __typename + "}"; } public static Builder builder() { return new Builder(); } /** * The Builder that helps building instance of this POJO. You can get an instance of this class, by calling the * {@link #builder()} */ public static class Builder { private java.lang.String name; private java.lang.String description; private List locations; private List args; private java.lang.Boolean isRepeatable; public Builder withName(java.lang.String name) { this.name = name; return this; } public Builder withDescription(java.lang.String description) { this.description = description; return this; } public Builder withLocations(List locations) { this.locations = locations; return this; } public Builder withArgs(List args) { this.args = args; return this; } public Builder withIsRepeatable(java.lang.Boolean isRepeatable) { this.isRepeatable = isRepeatable; return this; } public __Directive build() { __Directive _object = new __Directive(); _object.setName(name); _object.setDescription(description); _object.setLocations(locations); _object.setArgs(args); _object.setIsRepeatable(isRepeatable); _object.set__typename("__Directive"); return _object; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy