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

io.smallrye.graphql.client.core.DirectiveArgument Maven / Gradle / Ivy

Go to download

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 static java.util.Arrays.asList;

import java.util.List;

import io.smallrye.graphql.client.core.factory.DirectiveArgumentFactory;

public interface DirectiveArgument extends Buildable {
    static List directiveArgs(DirectiveArgument... directiveArgs) {
        return asList(directiveArgs);
    }

    static DirectiveArgument directiveArg(String name, Object value) {
        DirectiveArgument directiveArgument = getNewInstanceFromFactory(DirectiveArgumentFactory.class);

        directiveArgument.setName(name);
        directiveArgument.setValue(value);

        return directiveArgument;
    }

    String getName();

    void setName(String name1);

    Object getValue();

    void setValue(Object value);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy