io.smallrye.graphql.client.core.InputObjectField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smallrye-graphql-client-api Show documentation
Show all versions of smallrye-graphql-client-api Show documentation
SmallRye specific Client API, extending the MicroProfile client api, allowing us to play with the api first before we move it to the spec
The newest version!
package io.smallrye.graphql.client.core;
import static io.smallrye.graphql.client.core.utils.ServiceUtils.getNewInstanceFromFactory;
import io.smallrye.graphql.client.core.factory.InputObjectFieldFactory;
public interface InputObjectField extends Buildable {
/*
* Static factory methods
*/
// (name, value)
static InputObjectField prop(String name, Object value) {
InputObjectField inputObjectField = getNewInstanceFromFactory(InputObjectFieldFactory.class);
inputObjectField.setName(name);
inputObjectField.setValue(value);
return inputObjectField;
}
// (name, variable)
static InputObjectField prop(String name, Variable var) {
InputObjectField inputObjectField = getNewInstanceFromFactory(InputObjectFieldFactory.class);
inputObjectField.setName(name);
inputObjectField.setValue(var);
return inputObjectField;
}
/*
* Getter/Setter
*/
String getName();
void setName(String name);
Object getValue();
void setValue(Object value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy