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

io.fabric8.openshift.api.model.ImageStreamListFluent 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 io.fabric8.kubernetes.api.model.ListMeta;
import java.util.List;
import java.util.ArrayList;
import io.fabric8.common.Nested;
import io.fabric8.common.Builder;
import io.fabric8.kubernetes.api.model.ListMetaFluent;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
import io.fabric8.kubernetes.api.model.ListMetaBuilder;

public class ImageStreamListFluent> extends BaseFluent implements Fluent{

     ImageStreamList.ApiVersion apiVersion;     List items = new ArrayList();     String kind;     ListMetaBuilder metadata;     Map additionalProperties = new HashMap();

    public ImageStreamList.ApiVersion getApiVersion(){
    return this.apiVersion;
    }
    public T withApiVersion( ImageStreamList.ApiVersion apiVersion){
    this.apiVersion=apiVersion; return (T) this;
    }
    public T addToItems( ImageStream item){
    if (item != null) {ImageStreamBuilder builder = new ImageStreamBuilder(item);_visitables.add(builder);this.items.add(builder);} return (T)this;
    }
    public List getItems(){
    return build(items);
    }
    public T withItems( List items){
    this.items.clear();if (items != null) {for (ImageStream item : items){this.addToItems(item);}} return (T) this;
    }
    public ItemsNested addNewItem(){
    return new ItemsNested();
    }
    public String getKind(){
    return this.kind;
    }
    public T withKind( String kind){
    this.kind=kind; return (T) this;
    }
    public ListMeta getMetadata(){
    return this.metadata!=null?this.metadata.build():null;
    }
    public T withMetadata( ListMeta metadata){
    if (metadata!=null){ this.metadata= new ListMetaBuilder(metadata); _visitables.add(this.metadata);} return (T) this;
    }
    public MetadataNested withNewMetadata(){
    return new MetadataNested();
    }
    public T withNewMetadata( String resourceVersion,  String selfLink){
    return withMetadata(new ListMeta(resourceVersion, selfLink));
    }
    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 ItemsNested extends ImageStreamFluent> implements Nested{

        private final ImageStreamBuilder builder = new ImageStreamBuilder(this);
    
            public N endItem(){
            return and();
        }
            public N and(){
            return (N) ImageStreamListFluent.this.addToItems(builder.build());
        }
    
}
    public class MetadataNested extends ListMetaFluent> implements Nested{

        private final ListMetaBuilder builder = new ListMetaBuilder(this);
    
            public N endMetadata(){
            return and();
        }
            public N and(){
            return (N) ImageStreamListFluent.this.withMetadata(builder.build());
        }
    
}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy