package com.github.graphql; import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLOperation; import com.kobylynskyi.graphql.codegen.model.graphql.GraphQLOperationRequest; import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; @javax.annotation.Generated( value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen", date = "2020-12-31T23:59:59-0500" ) public class ProductsByCategoryIdAndStatusQueryRequest implements GraphQLOperationRequest { private static final GraphQLOperation OPERATION_TYPE = GraphQLOperation.QUERY; private static final String OPERATION_NAME = "products"; private Map input = new LinkedHashMap<>(); public ProductsByCategoryIdAndStatusQueryRequest() { } public void setCategoryId(String categoryId) { this.input.put("categoryId", categoryId); } public void setStatus(String status) { this.input.put("status", status); } @Override public GraphQLOperation getOperationType() { return OPERATION_TYPE; } @Override public String getOperationName() { return OPERATION_NAME; } @Override public Map getInput() { return input; } @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } final ProductsByCategoryIdAndStatusQueryRequest that = (ProductsByCategoryIdAndStatusQueryRequest) obj; return Objects.equals(getOperationType(), that.getOperationType()) && Objects.equals(getOperationName(), that.getOperationName()) && Objects.equals(input, that.input); } @Override public int hashCode() { return Objects.hash(getOperationType(), getOperationName(), input); } @Override public String toString() { return Objects.toString(input); } public static class Builder { private String categoryId; private String status; public Builder() { } public Builder setCategoryId(String categoryId) { this.categoryId = categoryId; return this; } public Builder setStatus(String status) { this.status = status; return this; } public ProductsByCategoryIdAndStatusQueryRequest build() { ProductsByCategoryIdAndStatusQueryRequest obj = new ProductsByCategoryIdAndStatusQueryRequest(); obj.setCategoryId(categoryId); obj.setStatus(status); return obj; } } }