com.atlassian.bamboo.specs.api.builders.owner.PlanOwner Maven / Gradle / Ivy
The newest version!
package com.atlassian.bamboo.specs.api.builders.owner;
import com.atlassian.bamboo.specs.api.builders.plan.configuration.PluginConfiguration;
import com.atlassian.bamboo.specs.api.model.owner.PlanOwnerProperties;
import java.util.Objects;
/**
* Define owner of the plan in question.
* @author mkleint
*/
public class PlanOwner extends PluginConfiguration {
private String owner;
public PlanOwner() {}
public PlanOwner(String owner) {
this.owner = owner;
}
public PlanOwner owner(String owner) {
this.owner = owner;
return this;
}
@Override
protected PlanOwnerProperties build() {
return new PlanOwnerProperties(owner);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof PlanOwner)) {
return false;
}
PlanOwner that = (PlanOwner) o;
return Objects.equals(owner, that.owner);
}
@Override
public int hashCode() {
return Objects.hash(owner);
}
}