io.fabric8.openshift.api.model.DeploymentTriggerImageChangeParamsFluent 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 java.util.List;
import java.util.ArrayList;
import io.fabric8.common.Nested;
import io.fabric8.kubernetes.api.model.ObjectReferenceFluent;
import io.fabric8.common.Fluent;
import io.fabric8.kubernetes.api.model.ObjectReferenceBuilder;
public class DeploymentTriggerImageChangeParamsFluent> implements Fluent{
private Boolean automatic ;
private List containerNames = new ArrayList();
private ObjectReference from ;
private String lastTriggeredImage ;
private Map additionalProperties = new HashMap();
public Boolean isAutomatic(){
return this.automatic;
}
public T withAutomatic(Boolean automatic){
this.automatic=automatic; return (T) this;
}
public List getContainerNames(){
return this.containerNames;
}
public T withContainerNames(List containerNames){
this.containerNames.clear();if (containerNames != null) {this.containerNames.addAll(containerNames);} return (T) this;
}
public ObjectReference getFrom(){
return this.from;
}
public T withFrom(ObjectReference from){
this.from=from; return (T) this;
}
public String getLastTriggeredImage(){
return this.lastTriggeredImage;
}
public T withLastTriggeredImage(String lastTriggeredImage){
this.lastTriggeredImage=lastTriggeredImage; 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 T addToContainerNames(String item){
if (item != null) {this.containerNames.add(item);} return (T)this;
}
public FromNested withNewFrom(){
return new FromNested();
}
public T addToAdditionalProperties(String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
}
public class FromNested extends ObjectReferenceFluent> implements Nested{
private final ObjectReferenceBuilder builder = new ObjectReferenceBuilder(this);
public N endFrom(){
return and();
}
public N and(){
return (N) DeploymentTriggerImageChangeParamsFluent.this.withFrom(builder.build());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy