All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.alauda.kubernetes.api.model.JenkinsStatusFluentImpl Maven / Gradle / Ivy

There is a newer version: 0.2.12
Show newest version
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 JenkinsStatusFluentImpl> extends io.alauda.kubernetes.api.builder.BaseFluent implements JenkinsStatusFluent{

    private ServiceStatusBuilder serviceStatus;

    public JenkinsStatusFluentImpl(){
    }
    public JenkinsStatusFluentImpl(JenkinsStatus 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 JenkinsStatusFluent.ServiceStatusNested withNewServiceStatus(){
            return new ServiceStatusNestedImpl();
    }

    public JenkinsStatusFluent.ServiceStatusNested withNewServiceStatusLike(ServiceStatus item){
            return new ServiceStatusNestedImpl(item);
    }

    public JenkinsStatusFluent.ServiceStatusNested editServiceStatus(){
            return withNewServiceStatusLike(getServiceStatus());
    }

    public JenkinsStatusFluent.ServiceStatusNested editOrNewServiceStatus(){
            return withNewServiceStatusLike(getServiceStatus() != null ? getServiceStatus(): new ServiceStatusBuilder().build());
    }

    public JenkinsStatusFluent.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;
            JenkinsStatusFluentImpl that = (JenkinsStatusFluentImpl) o;
            if (serviceStatus != null ? !serviceStatus.equals(that.serviceStatus) :that.serviceStatus != null) return false;
            return true;
    }


    public class ServiceStatusNestedImpl extends ServiceStatusFluentImpl> implements JenkinsStatusFluent.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) JenkinsStatusFluentImpl.this.withServiceStatus(builder.build());
    }
    public N endServiceStatus(){
            return and();
    }

}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy