io.fabric8.openshift.api.model.ImageStreamSpecFluent 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 ImageStreamSpecFluent> extends BaseFluent implements Fluent{
String dockerImageRepository; List tags = new ArrayList(); Map additionalProperties = new HashMap();
public String getDockerImageRepository(){
return this.dockerImageRepository;
}
public T withDockerImageRepository( String dockerImageRepository){
this.dockerImageRepository=dockerImageRepository; return (T) this;
}
public T addToTags( NamedTagReference item){
if (item != null) {NamedTagReferenceBuilder builder = new NamedTagReferenceBuilder(item);_visitables.add(builder);this.tags.add(builder);} return (T)this;
}
public List getTags(){
return build(tags);
}
public T withTags( List tags){
this.tags.clear();if (tags != null) {for (NamedTagReference item : tags){this.addToTags(item);}} return (T) this;
}
public TagsNested addNewTag(){
return new TagsNested();
}
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 TagsNested extends NamedTagReferenceFluent> implements Nested{
private final NamedTagReferenceBuilder builder = new NamedTagReferenceBuilder(this);
public N and(){
return (N) ImageStreamSpecFluent.this.addToTags(builder.build());
}
public N endTag(){
return and();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy