annotations.io.alauda.kubernetes.api.model.JenkinsfilePreviewFluentImpl Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import javax.validation.constraints.NotNull;
public class JenkinsfilePreviewFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements JenkinsfilePreviewFluent{
private String apiVersion;
private String jenkinsfile;
private String kind;
public JenkinsfilePreviewFluentImpl(){
}
public JenkinsfilePreviewFluentImpl(JenkinsfilePreview instance){
this.withApiVersion(instance.getApiVersion());
this.withJenkinsfile(instance.getJenkinsfile());
this.withKind(instance.getKind());
}
public String getApiVersion(){
return this.apiVersion;
}
public A withApiVersion(String apiVersion){
this.apiVersion=apiVersion; return (A) this;
}
public Boolean hasApiVersion(){
return this.apiVersion!=null;
}
public String getJenkinsfile(){
return this.jenkinsfile;
}
public A withJenkinsfile(String jenkinsfile){
this.jenkinsfile=jenkinsfile; return (A) this;
}
public Boolean hasJenkinsfile(){
return this.jenkinsfile!=null;
}
public String getKind(){
return this.kind;
}
public A withKind(String kind){
this.kind=kind; return (A) this;
}
public Boolean hasKind(){
return this.kind!=null;
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
JenkinsfilePreviewFluentImpl that = (JenkinsfilePreviewFluentImpl) o;
if (apiVersion != null ? !apiVersion.equals(that.apiVersion) :that.apiVersion != null) return false;
if (jenkinsfile != null ? !jenkinsfile.equals(that.jenkinsfile) :that.jenkinsfile != null) return false;
if (kind != null ? !kind.equals(that.kind) :that.kind != null) return false;
return true;
}
}