annotations.io.alauda.kubernetes.api.model.MultiBranchBehavioursFluentImpl 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;
public class MultiBranchBehavioursFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements MultiBranchBehavioursFluent{
private String discoverBranches;
private String discoverPRFromForks;
private String discoverPRFromOrigin;
private Boolean discoverTags;
private String filterExpression;
private String forksTrust;
public MultiBranchBehavioursFluentImpl(){
}
public MultiBranchBehavioursFluentImpl(MultiBranchBehaviours instance){
this.withDiscoverBranches(instance.getDiscoverBranches());
this.withDiscoverPRFromForks(instance.getDiscoverPRFromForks());
this.withDiscoverPRFromOrigin(instance.getDiscoverPRFromOrigin());
this.withDiscoverTags(instance.getDiscoverTags());
this.withFilterExpression(instance.getFilterExpression());
this.withForksTrust(instance.getForksTrust());
}
public String getDiscoverBranches(){
return this.discoverBranches;
}
public A withDiscoverBranches(String discoverBranches){
this.discoverBranches=discoverBranches; return (A) this;
}
public Boolean hasDiscoverBranches(){
return this.discoverBranches!=null;
}
public String getDiscoverPRFromForks(){
return this.discoverPRFromForks;
}
public A withDiscoverPRFromForks(String discoverPRFromForks){
this.discoverPRFromForks=discoverPRFromForks; return (A) this;
}
public Boolean hasDiscoverPRFromForks(){
return this.discoverPRFromForks!=null;
}
public String getDiscoverPRFromOrigin(){
return this.discoverPRFromOrigin;
}
public A withDiscoverPRFromOrigin(String discoverPRFromOrigin){
this.discoverPRFromOrigin=discoverPRFromOrigin; return (A) this;
}
public Boolean hasDiscoverPRFromOrigin(){
return this.discoverPRFromOrigin!=null;
}
public Boolean isDiscoverTags(){
return this.discoverTags;
}
public A withDiscoverTags(Boolean discoverTags){
this.discoverTags=discoverTags; return (A) this;
}
public Boolean hasDiscoverTags(){
return this.discoverTags!=null;
}
public String getFilterExpression(){
return this.filterExpression;
}
public A withFilterExpression(String filterExpression){
this.filterExpression=filterExpression; return (A) this;
}
public Boolean hasFilterExpression(){
return this.filterExpression!=null;
}
public String getForksTrust(){
return this.forksTrust;
}
public A withForksTrust(String forksTrust){
this.forksTrust=forksTrust; return (A) this;
}
public Boolean hasForksTrust(){
return this.forksTrust!=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;
MultiBranchBehavioursFluentImpl that = (MultiBranchBehavioursFluentImpl) o;
if (discoverBranches != null ? !discoverBranches.equals(that.discoverBranches) :that.discoverBranches != null) return false;
if (discoverPRFromForks != null ? !discoverPRFromForks.equals(that.discoverPRFromForks) :that.discoverPRFromForks != null) return false;
if (discoverPRFromOrigin != null ? !discoverPRFromOrigin.equals(that.discoverPRFromOrigin) :that.discoverPRFromOrigin != null) return false;
if (discoverTags != null ? !discoverTags.equals(that.discoverTags) :that.discoverTags != null) return false;
if (filterExpression != null ? !filterExpression.equals(that.filterExpression) :that.filterExpression != null) return false;
if (forksTrust != null ? !forksTrust.equals(that.forksTrust) :that.forksTrust != null) return false;
return true;
}
}