Class GraphQLRequestBody


  • public class GraphQLRequestBody
    extends java.lang.Object
    Represents the request body input data to execute a GraphQL query.
    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getOperationName()
      Returns the operation name.
      java.lang.String getQuery()
      Returns the query.
      java.util.Map<java.lang.String,​java.lang.Object> getVariables()
      Returns the variables.
      void setOperationName​(java.lang.String operationName)
      Sets the operation name.
      void setQuery​(java.lang.String query)
      Sets the query.
      void setVariables​(java.util.Map<java.lang.String,​java.lang.Object> variables)
      Sets the variables.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphQLRequestBody

        public GraphQLRequestBody()
    • Method Detail

      • getQuery

        public java.lang.String getQuery()
        Returns the query.
        Returns:
        the query
      • setQuery

        public void setQuery​(java.lang.String query)
        Sets the query.
        Parameters:
        query - the query
      • getOperationName

        public java.lang.String getOperationName()
        Returns the operation name.
        Returns:
        the operation name
      • setOperationName

        public void setOperationName​(java.lang.String operationName)
        Sets the operation name.
        Parameters:
        operationName - the operation name
      • getVariables

        public java.util.Map<java.lang.String,​java.lang.Object> getVariables()
        Returns the variables.
        Returns:
        the variables
      • setVariables

        public void setVariables​(java.util.Map<java.lang.String,​java.lang.Object> variables)
        Sets the variables.
        Parameters:
        variables - the variables