annotations.io.fabric8.openshift.api.model.DeploymentDetailsFluent Maven / Gradle / Ivy
package io.fabric8.openshift.api.model;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import io.fabric8.common.Nested;
import io.fabric8.common.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
public class DeploymentDetailsFluent> extends BaseFluent implements Fluent{
List causes = new ArrayList(); String message; Map additionalProperties = new HashMap();
public T addToCauses( DeploymentCause item){
if (item != null) {DeploymentCauseBuilder builder = new DeploymentCauseBuilder(item);_visitables.add(builder);this.causes.add(builder);} return (T)this;
}
public List getCauses(){
return build(causes);
}
public T withCauses( List causes){
this.causes.clear();if (causes != null) {for (DeploymentCause item : causes){this.addToCauses(item);}} return (T) this;
}
public CausesNested addNewCause(){
return new CausesNested();
}
public String getMessage(){
return this.message;
}
public T withMessage( String message){
this.message=message; 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 CausesNested extends DeploymentCauseFluent> implements Nested{
private final DeploymentCauseBuilder builder = new DeploymentCauseBuilder(this);
public N and(){
return (N) DeploymentDetailsFluent.this.addToCauses(builder.build());
}
public N endCause(){
return and();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy