Interface GraphQLRequest
- All Known Subinterfaces:
GraphQLRequest<T>
public interface GraphQLRequest
GraphQLRequest
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLRequest graphQLRequest = GraphQLRequest.builder()
.query("{query}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic GraphQLRequestBuilder
builder()
builder factory method for GraphQLRequeststatic GraphQLRequestBuilder
builder
(GraphQLRequest template) create builder for GraphQLRequest instancestatic GraphQLRequest
deepCopy
(GraphQLRequest template) factory method to create a deep copy of GraphQLRequest@NotNull String
getQuery()
@Valid GraphQLVariablesMap
static GraphQLRequest
of()
factory methodstatic GraphQLRequest
of
(GraphQLRequest template) factory method to create a shallow copy GraphQLRequestvoid
setOperationName
(String operationName) set operationNamevoid
set queryvoid
setVariables
(GraphQLVariablesMap variables) set variablesstatic com.fasterxml.jackson.core.type.TypeReference<GraphQLRequest>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGraphQLRequest
(Function<GraphQLRequest, T> helper) accessor map function
-
Method Details
-
getQuery
- Returns:
- query
-
getOperationName
String getOperationName()- Returns:
- operationName
-
getVariables
- Returns:
- variables
-
setQuery
set query- Parameters:
query
- value to be set
-
setOperationName
set operationName- Parameters:
operationName
- value to be set
-
setVariables
set variables- Parameters:
variables
- value to be set
-
of
factory method- Returns:
- instance of GraphQLRequest
-
of
factory method to create a shallow copy GraphQLRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of GraphQLRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLRequest- Returns:
- builder
-
builder
create builder for GraphQLRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLRequest
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-