All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.openshift.api.model.ImageStreamStatusFluent Maven / Gradle / Ivy

There is a newer version: 0.0.54
Show newest version
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 ImageStreamStatusFluent> 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( NamedTagEventList item){
    if (item != null) {NamedTagEventListBuilder builder = new NamedTagEventListBuilder(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 (NamedTagEventList 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 NamedTagEventListFluent> implements Nested{

        private final NamedTagEventListBuilder builder = new NamedTagEventListBuilder(this);
    
            public N and(){
            return (N) ImageStreamStatusFluent.this.addToTags(builder.build());
        }
            public N endTag(){
            return and();
        }
    
}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy