io.fabric8.openshift.api.model.BuildStatusFluent Maven / Gradle / Ivy
package io.fabric8.openshift.api.model;
import io.fabric8.kubernetes.api.model.ObjectReference;
import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.common.Builder;
import io.fabric8.kubernetes.api.model.ObjectReferenceFluent;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
import io.fabric8.kubernetes.api.model.ObjectReferenceBuilder;
public class BuildStatusFluent> extends BaseFluent implements Fluent{
Boolean cancelled; String completionTimestamp; ObjectReferenceBuilder config; Long duration; String message; String phase; String startTimestamp; Map additionalProperties = new HashMap();
public Boolean isCancelled(){
return this.cancelled;
}
public T withCancelled( Boolean cancelled){
this.cancelled=cancelled; return (T) this;
}
public String getCompletionTimestamp(){
return this.completionTimestamp;
}
public T withCompletionTimestamp( String completionTimestamp){
this.completionTimestamp=completionTimestamp; return (T) this;
}
public ObjectReference getConfig(){
return this.config!=null?this.config.build():null;
}
public T withConfig( ObjectReference config){
if (config!=null){ this.config= new ObjectReferenceBuilder(config); _visitables.add(this.config);} return (T) this;
}
public ConfigNested withNewConfig(){
return new ConfigNested();
}
public Long getDuration(){
return this.duration;
}
public T withDuration( Long duration){
this.duration=duration; return (T) this;
}
public String getMessage(){
return this.message;
}
public T withMessage( String message){
this.message=message; return (T) this;
}
public String getPhase(){
return this.phase;
}
public T withPhase( String phase){
this.phase=phase; return (T) this;
}
public String getStartTimestamp(){
return this.startTimestamp;
}
public T withStartTimestamp( String startTimestamp){
this.startTimestamp=startTimestamp; return (T) this;
}
public T addToAdditionalProperties( String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
}
public Map getAdditionalProperties(){
return this.additionalProperties;
}
public T withAdditionalProperties( Map additionalProperties){
this.additionalProperties.clear();if (additionalProperties != null) {this.additionalProperties.putAll(additionalProperties);} return (T) this;
}
public class ConfigNested extends ObjectReferenceFluent> implements Nested{
private final ObjectReferenceBuilder builder = new ObjectReferenceBuilder(this);
public N endConfig(){
return and();
}
public N and(){
return (N) BuildStatusFluent.this.withConfig(builder.build());
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy