annotations.io.alauda.kubernetes.api.model.JenkinsBindingStatusFluentImpl Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.alauda.kubernetes.api.builder.Nested;
import java.lang.Deprecated;
import javax.validation.Valid;
import io.alauda.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
public class JenkinsBindingStatusFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements JenkinsBindingStatusFluent{
private ServiceStatusBuilder serviceStatus;
public JenkinsBindingStatusFluentImpl(){
}
public JenkinsBindingStatusFluentImpl(JenkinsBindingStatus instance){
this.withServiceStatus(instance.getServiceStatus());
}
/**
* This method has been deprecated, please use method buildServiceStatus instead.
*/
@Deprecated public ServiceStatus getServiceStatus(){
return this.serviceStatus!=null?this.serviceStatus.build():null;
}
public ServiceStatus buildServiceStatus(){
return this.serviceStatus!=null?this.serviceStatus.build():null;
}
public A withServiceStatus(ServiceStatus serviceStatus){
_visitables.remove(this.serviceStatus);
if (serviceStatus!=null){ this.serviceStatus= new ServiceStatusBuilder(serviceStatus); _visitables.add(this.serviceStatus);} return (A) this;
}
public Boolean hasServiceStatus(){
return this.serviceStatus!=null;
}
public JenkinsBindingStatusFluent.ServiceStatusNested withNewServiceStatus(){
return new ServiceStatusNestedImpl();
}
public JenkinsBindingStatusFluent.ServiceStatusNested withNewServiceStatusLike(ServiceStatus item){
return new ServiceStatusNestedImpl(item);
}
public JenkinsBindingStatusFluent.ServiceStatusNested editServiceStatus(){
return withNewServiceStatusLike(getServiceStatus());
}
public JenkinsBindingStatusFluent.ServiceStatusNested editOrNewServiceStatus(){
return withNewServiceStatusLike(getServiceStatus() != null ? getServiceStatus(): new ServiceStatusBuilder().build());
}
public JenkinsBindingStatusFluent.ServiceStatusNested editOrNewServiceStatusLike(ServiceStatus item){
return withNewServiceStatusLike(getServiceStatus() != null ? getServiceStatus(): item);
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
JenkinsBindingStatusFluentImpl that = (JenkinsBindingStatusFluentImpl) o;
if (serviceStatus != null ? !serviceStatus.equals(that.serviceStatus) :that.serviceStatus != null) return false;
return true;
}
public class ServiceStatusNestedImpl extends ServiceStatusFluentImpl> implements JenkinsBindingStatusFluent.ServiceStatusNested,io.alauda.kubernetes.api.builder.Nested{
private final ServiceStatusBuilder builder;
ServiceStatusNestedImpl(ServiceStatus item){
this.builder = new ServiceStatusBuilder(this, item);
}
ServiceStatusNestedImpl(){
this.builder = new ServiceStatusBuilder(this);
}
public N and(){
return (N) JenkinsBindingStatusFluentImpl.this.withServiceStatus(builder.build());
}
public N endServiceStatus(){
return and();
}
}
}