Class GraphqlDirectivesContainerTypeBuilder<B extends GraphqlDirectivesContainerTypeBuilder<B,​BASE>,​BASE extends GraphqlTypeBuilder<BASE>>

    • Constructor Detail

      • GraphqlDirectivesContainerTypeBuilder

        public GraphqlDirectivesContainerTypeBuilder()
    • Method Detail

      • withAppliedDirectives

        public B withAppliedDirectives​(GraphQLAppliedDirective... directives)
        Parameters:
        directives - the variable args of directives
        Returns:
        this builder
      • withAppliedDirective

        public B withAppliedDirective​(GraphQLAppliedDirective directive)
        Parameters:
        directive - the directive to add
        Returns:
        this builder
      • withAppliedDirective

        public B withAppliedDirective​(GraphQLAppliedDirective.Builder builder)
        Parameters:
        builder - the directive builder
        Returns:
        this builder
      • replaceDirectives

        @Deprecated(since="2022-02-24")
        public B replaceDirectives​(java.util.List<GraphQLDirective> directives)
        Deprecated.
        - use the GraphQLAppliedDirective methods instead
        Parameters:
        directives - the list of directives
        Returns:
        this builder
      • withDirectives

        @Deprecated(since="2022-02-24")
        public B withDirectives​(GraphQLDirective... directives)
        Deprecated.
        - use the GraphQLAppliedDirective methods instead
        Parameters:
        directives - the variable args of directives
        Returns:
        this builder
      • withDirective

        @Deprecated(since="2022-02-24")
        public B withDirective​(GraphQLDirective directive)
        Deprecated.
        - use the GraphQLAppliedDirective methods instead
        Parameters:
        directive - the directive to add
        Returns:
        this builder
      • clearDirectives

        public B clearDirectives()
        This is used to clear all the directives in the builder so far.
        Returns:
        the builder