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

com.saucelabs.visual.graphql.FinishBuildMutation Maven / Gradle / Ivy

The newest version!
package com.saucelabs.visual.graphql;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.saucelabs.visual.graphql.type.BuildStatus;
import java.util.Collections;
import java.util.Map;

public class FinishBuildMutation implements GraphQLOperation {

  /**
   * The minimized GraphQL document being sent to the server to save a few bytes. The un-minimized
   * version is:
   *
   * 

mutation FinishBuild($input: FinishBuildIn!) { result: finishBuild(input: $input) { id name * status url } } */ public static final String OPERATION_DOCUMENT = "mutation FinishBuild($input: FinishBuildIn!) { result: finishBuild(input: $input) { id name status url } }"; public static class FinishBuildIn { public final String uuid; public FinishBuildIn(String uuid) { this.uuid = uuid; } } public static class Data { public final Result result; @JsonCreator public Data(@JsonProperty("result") Result result) { this.result = result; } @Override public String toString() { return "FinishBuildMutation.Data{" + "result=" + result + '}'; } } public static class Result { public String id; public String name; public BuildStatus status; public String url; public Result( @JsonProperty("id") String id, @JsonProperty("name") String name, @JsonProperty("status") BuildStatus status, @JsonProperty("url") String url) { this.id = id; this.name = name; this.status = status; this.url = url; } @Override public String toString() { return "FinishBuildMutation.Result{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", status=" + status + ", url='" + url + '\'' + '}'; } } private final FinishBuildIn input; public FinishBuildMutation(FinishBuildIn input) { this.input = input; } @Override public String getQuery() { return OPERATION_DOCUMENT; } @Override public Map getVariables() { return Collections.singletonMap("input", input); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy