cd.go.contrib.plugins.configrepo.groovy.dsl.Tab Maven / Gradle / Ivy
Show all versions of dsl Show documentation
// Generated by delombok at Sat Aug 03 22:05:14 PDT 2024
/*
* Copyright 2022 Thoughtworks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cd.go.contrib.plugins.configrepo.groovy.dsl;
import com.fasterxml.jackson.annotation.JsonProperty;
import groovy.lang.Closure;
import groovy.lang.DelegatesTo;
import groovy.transform.stc.ClosureParams;
import groovy.transform.stc.SimpleType;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import static groovy.lang.Closure.DELEGATE_ONLY;
/**
* A tab displayed on the job detail page.
*
* {@includeCode job-with-tabs.groovy}
*/
@Valid
public class Tab extends NamedNode {
@JsonProperty("path")
@NotEmpty
private String path;
public Tab() {
this(null, null);
}
public Tab(String name, @DelegatesTo(value = Tab.class, strategy = DELEGATE_ONLY) @ClosureParams(value = SimpleType.class, options = "cd.go.contrib.plugins.configrepo.groovy.dsl.Tab") Closure cl) {
this.name = name;
configure(cl);
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getPath() {
return this.path;
}
@JsonProperty("path")
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setPath(final String path) {
this.path = path;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof Tab)) return false;
final Tab other = (Tab) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$path = this.getPath();
final java.lang.Object other$path = other.getPath();
if (this$path == null ? other$path != null : !this$path.equals(other$path)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Tab;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $path = this.getPath();
result = result * PRIME + ($path == null ? 43 : $path.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "Tab(super=" + super.toString() + ", path=" + this.getPath() + ")";
}
}