io.fabric8.docker.client.ProgressEventFluentImpl Maven / Gradle / Ivy
package io.fabric8.docker.client;
import java.io.Serializable;
import io.sundr.builder.Visitable;
import io.sundr.builder.Fluent;
import io.sundr.builder.BaseFluent;
public class ProgressEventFluentImpl> extends BaseFluent implements ProgressEventFluent{
String id; String status; String progressDetail; String stream; ProgressEvent.ErrorDetail errorDetail; String error;
public ProgressEventFluentImpl(){
}
public ProgressEventFluentImpl( ProgressEvent instance ){
this.withStream(instance.getStream()); this.withErrorDetail(instance.getErrorDetail()); this.withError(instance.getError());
}
public String getId(){
return this.id;
}
public T withId( String id){
this.id=id; return (T) this;
}
public String getStatus(){
return this.status;
}
public T withStatus( String status){
this.status=status; return (T) this;
}
public String getProgressDetail(){
return this.progressDetail;
}
public T withProgressDetail( String progressDetail){
this.progressDetail=progressDetail; return (T) this;
}
public String getStream(){
return this.stream;
}
public T withStream( String stream){
this.stream=stream; return (T) this;
}
public ProgressEvent.ErrorDetail getErrorDetail(){
return this.errorDetail;
}
public T withErrorDetail( ProgressEvent.ErrorDetail errorDetail){
this.errorDetail=errorDetail; return (T) this;
}
public String getError(){
return this.error;
}
public T withError( String error){
this.error=error; return (T) this;
}
public boolean equals( Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ProgressEventFluentImpl that = (ProgressEventFluentImpl) o;
if (id != null ? !id.equals(that.id) :that.id != null) return false;
if (status != null ? !status.equals(that.status) :that.status != null) return false;
if (progressDetail != null ? !progressDetail.equals(that.progressDetail) :that.progressDetail != null) return false;
if (stream != null ? !stream.equals(that.stream) :that.stream != null) return false;
if (errorDetail != null ? !errorDetail.equals(that.errorDetail) :that.errorDetail != null) return false;
if (error != null ? !error.equals(that.error) :that.error != null) return false;
return true;
}
}