com.chutneytesting.engine.api.execution.TargetExecutionDto Maven / Gradle / Ivy
The newest version!
/*
* SPDX-FileCopyrightText: 2017-2024 Enedis
*
* SPDX-License-Identifier: Apache-2.0
*
*/
package com.chutneytesting.engine.api.execution;
import com.chutneytesting.engine.domain.delegation.NamedHostAndPort;
import java.util.List;
import java.util.Map;
import java.util.Objects;
public class TargetExecutionDto {
public final String id;
public final String url;
public final Map properties;
public final String name;
public final List agents;
public TargetExecutionDto(String id, String url, Map properties, List agents) {
this.id = id;
this.name = id;
this.url = url;
this.properties = properties;
this.agents = agents;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TargetExecutionDto targetDto = (TargetExecutionDto) o;
return id.equals(targetDto.id) &&
url.equals(targetDto.url) &&
properties.equals(targetDto.properties) &&
agents.equals(targetDto.agents);
}
@Override
public int hashCode() {
return Objects.hash(id, url, properties, agents);
}
@Override
public String toString() {
return "TargetDto{" +
"id='" + id + '\'' +
", url='" + url + '\'' +
", properties=" + properties +
", agents=" + agents +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy