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

org.allGraphQLCases.client.pojo.ReservedJavaKeywordAllFieldCases 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.GraphQLNonScalar;
import com.graphql_java_generator.annotation.GraphQLObjectType;
import com.graphql_java_generator.annotation.GraphQLScalar;

import com.graphql_java_generator.annotation.GraphQLDirective;

/**
 * 
 * #############################
 * test for issue #166:
 * This class contains fields that are Java reserved words. A query allows to check that mapping properly occurs on both client and server side.
 *
 * @author generated by graphql-java-generator
 * @see https://github.com/graphql-java-generator/graphql-java-generator
 */
@GraphQLObjectType("ReservedJavaKeywordAllFieldCases")
@SuppressWarnings("unused")
public class ReservedJavaKeywordAllFieldCases
{
 

	/**
	 * 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 ReservedJavaKeywordAllFieldCases(){
		// No action
	}

	/**
	 *  A field with a java reserved name which is an enum 
	 */
	@GraphQLScalar( fieldName = "if", graphQLTypeSimpleName = "Unit", javaClass = org.allGraphQLCases.client.pojo.Unit.class, listDepth = 0)
	org.allGraphQLCases.client.pojo.Unit _if;


	/**
	 *  A field with a _non_ java reserved name which is an interface (to check standard behavior) 
	 */
	@GraphQLNonScalar( fieldName = "nonJavaKeywordField", graphQLTypeSimpleName = "WithID", javaClass = org.allGraphQLCases.client.pojo.WithID.class, listDepth = 0)
	org.allGraphQLCases.client.pojo.WithID nonJavaKeywordField;


	/**
	 *  A field with a java reserved name which is an interface 
	 */
	@GraphQLNonScalar( fieldName = "implements", graphQLTypeSimpleName = "WithID", javaClass = org.allGraphQLCases.client.pojo.WithID.class, listDepth = 0)
	org.allGraphQLCases.client.pojo.WithID _implements;


	/**
	 *  A field with a java reserved name which is a scalar (standard) 
	 */
	@GraphQLScalar( fieldName = "import", graphQLTypeSimpleName = "String", javaClass = java.lang.String.class, listDepth = 0)
	java.lang.String _import;


	/**
	 *  A field with a java reserved name which is a scalar (custom) 
	 */
	@GraphQLScalar( fieldName = "instanceof", graphQLTypeSimpleName = "Date", javaClass = java.util.Date.class, listDepth = 0)
	java.util.Date _instanceof;


	/**
	 *  A field with a java reserved name which is an object type 
	 */
	@GraphQLNonScalar( fieldName = "int", graphQLTypeSimpleName = "Human", javaClass = org.allGraphQLCases.client.pojo.Human.class, listDepth = 0)
	org.allGraphQLCases.client.pojo.Human _int;


	/**
	 *  A field with a java reserved name which is a union 
	 */
	@GraphQLNonScalar( fieldName = "interface", graphQLTypeSimpleName = "AnyCharacter", javaClass = org.allGraphQLCases.client.pojo.AnyCharacter.class, listDepth = 0)
	org.allGraphQLCases.client.pojo.AnyCharacter _interface;


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



	/**
	  *  A field with a java reserved name which is an enum 
 	 */
	public void setIf(org.allGraphQLCases.client.pojo.Unit _if) {
		this._if = _if;
	}

	/**
	 *  A field with a java reserved name which is an enum 
	 */
	public org.allGraphQLCases.client.pojo.Unit getIf() {
		return _if;
	}
		

	/**
	  *  A field with a _non_ java reserved name which is an interface (to check standard behavior) 
 	 */
	public void setNonJavaKeywordField(org.allGraphQLCases.client.pojo.WithID nonJavaKeywordField) {
		this.nonJavaKeywordField = nonJavaKeywordField;
	}

	/**
	 *  A field with a _non_ java reserved name which is an interface (to check standard behavior) 
	 */
	public org.allGraphQLCases.client.pojo.WithID getNonJavaKeywordField() {
		return nonJavaKeywordField;
	}
		

	/**
	  *  A field with a java reserved name which is an interface 
 	 */
	public void setImplements(org.allGraphQLCases.client.pojo.WithID _implements) {
		this._implements = _implements;
	}

	/**
	 *  A field with a java reserved name which is an interface 
	 */
	public org.allGraphQLCases.client.pojo.WithID getImplements() {
		return _implements;
	}
		

	/**
	  *  A field with a java reserved name which is a scalar (standard) 
 	 */
	public void setImport(java.lang.String _import) {
		this._import = _import;
	}

	/**
	 *  A field with a java reserved name which is a scalar (standard) 
	 */
	public java.lang.String getImport() {
		return _import;
	}
		

	/**
	  *  A field with a java reserved name which is a scalar (custom) 
 	 */
	public void setInstanceof(java.util.Date _instanceof) {
		this._instanceof = _instanceof;
	}

	/**
	 *  A field with a java reserved name which is a scalar (custom) 
	 */
	public java.util.Date getInstanceof() {
		return _instanceof;
	}
		

	/**
	  *  A field with a java reserved name which is an object type 
 	 */
	public void setInt(org.allGraphQLCases.client.pojo.Human _int) {
		this._int = _int;
	}

	/**
	 *  A field with a java reserved name which is an object type 
	 */
	public org.allGraphQLCases.client.pojo.Human getInt() {
		return _int;
	}
		

	/**
	  *  A field with a java reserved name which is a union 
 	 */
	public void setInterface(org.allGraphQLCases.client.pojo.AnyCharacter _interface) {
		this._interface = _interface;
	}

	/**
	 *  A field with a java reserved name which is a union 
	 */
	public org.allGraphQLCases.client.pojo.AnyCharacter getInterface() {
		return _interface;
	}
		

	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 "ReservedJavaKeywordAllFieldCases {" + "_if: " + _if + ", " + "nonJavaKeywordField: " + nonJavaKeywordField + ", " + "_implements: " + _implements + ", " + "_import: " + _import + ", " + "_instanceof: " + _instanceof + ", " + "_int: " + _int + ", " + "_interface: " + _interface + ", " + "__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 org.allGraphQLCases.client.pojo.Unit _if; private org.allGraphQLCases.client.pojo.WithID nonJavaKeywordField; private org.allGraphQLCases.client.pojo.WithID _implements; private java.lang.String _import; private java.util.Date _instanceof; private org.allGraphQLCases.client.pojo.Human _int; private org.allGraphQLCases.client.pojo.AnyCharacter _interface; /** * A field with a java reserved name which is an enum */ public Builder withIf(org.allGraphQLCases.client.pojo.Unit _if) { this._if = _if; return this; } /** * A field with a _non_ java reserved name which is an interface (to check standard behavior) */ public Builder withNonJavaKeywordField(org.allGraphQLCases.client.pojo.WithID nonJavaKeywordField) { this.nonJavaKeywordField = nonJavaKeywordField; return this; } /** * A field with a java reserved name which is an interface */ public Builder withImplements(org.allGraphQLCases.client.pojo.WithID _implements) { this._implements = _implements; return this; } /** * A field with a java reserved name which is a scalar (standard) */ public Builder withImport(java.lang.String _import) { this._import = _import; return this; } /** * A field with a java reserved name which is a scalar (custom) */ public Builder withInstanceof(java.util.Date _instanceof) { this._instanceof = _instanceof; return this; } /** * A field with a java reserved name which is an object type */ public Builder withInt(org.allGraphQLCases.client.pojo.Human _int) { this._int = _int; return this; } /** * A field with a java reserved name which is a union */ public Builder withInterface(org.allGraphQLCases.client.pojo.AnyCharacter _interface) { this._interface = _interface; return this; } public ReservedJavaKeywordAllFieldCases build() { ReservedJavaKeywordAllFieldCases _object = new ReservedJavaKeywordAllFieldCases(); _object.setIf(_if); _object.setNonJavaKeywordField(nonJavaKeywordField); _object.setImplements(_implements); _object.setImport(_import); _object.setInstanceof(_instanceof); _object.setInt(_int); _object.setInterface(_interface); _object.set__typename("ReservedJavaKeywordAllFieldCases"); return _object; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy