diff options
Diffstat (limited to 'orchestrator-restapi/src/main/java')
-rw-r--r-- | orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/SlobrokEntryResponse.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/SlobrokEntryResponse.java b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/SlobrokEntryResponse.java new file mode 100644 index 00000000000..5efdd2581a9 --- /dev/null +++ b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/SlobrokEntryResponse.java @@ -0,0 +1,41 @@ +// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.vespa.orchestrator.restapi.wire; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Objects; + +public class SlobrokEntryResponse { + @JsonProperty("name") + public final String name; + + @JsonProperty("spec") + public final String spec; + + public SlobrokEntryResponse(String name, String spec) { + this.name = name; + this.spec = spec; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + SlobrokEntryResponse that = (SlobrokEntryResponse) o; + return Objects.equals(name, that.name) && + Objects.equals(spec, that.spec); + } + + @Override + public int hashCode() { + return Objects.hash(name, spec); + } + + @Override + public String toString() { + return "SlobrokEntryResponse{" + + "name='" + name + '\'' + + ", spec='" + spec + '\'' + + '}'; + } +} |