// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.noderepository;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author mpolden
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class NodeOwner {

    @JsonProperty
    public String tenant;
    @JsonProperty
    public String application;
    @JsonProperty
    public String instance;

    public NodeOwner() {}

    public String getTenant() {
        return tenant;
    }

    public String getApplication() {
        return application;
    }

    public String getInstance() {
        return instance;
    }
}

@@ -304,16 +304,43 @@
 perty;%0A%0A
+import java.util.Objects;%0A%0A
 /**%0A * @
@@ -793,11 +793,516 @@
 e;%0A    %7D
+%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A        NodeOwner nodeOwner = (NodeOwner) o;%0A        return Objects.equals(tenant, nodeOwner.tenant) &&%0A               Objects.equals(application, nodeOwner.application) &&%0A               Objects.equals(instance, nodeOwner.instance);%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return Objects.hash(tenant, application, instance);%0A    %7D
 %0A%7D%0A

Add hashCode and equals