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

io.fabric8.kubernetes.api.model.ReplicationControllerListFluent Maven / Gradle / Ivy

package io.fabric8.kubernetes.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.Fluent;

public class ReplicationControllerListFluent> implements Fluent{

    private Map annotations  = new HashMap();
    private ReplicationControllerList.ApiVersion apiVersion ;
    private String creationTimestamp ;
    private String deletionTimestamp ;
    private String generateName ;
    private String id ;
    private List items  = new ArrayList();
    private String kind ;
    private String namespace ;
    private Integer resourceVersion ;
    private String selfLink ;
    private String uid ;
    private Map additionalProperties  = new HashMap();

    public Map getAnnotations(){
    return this.annotations;
    }
    public T withAnnotations(Map annotations){
    this.annotations.clear();if (annotations != null) {this.annotations.putAll(annotations);} return (T) this;
    }
    public ReplicationControllerList.ApiVersion getApiVersion(){
    return this.apiVersion;
    }
    public T withApiVersion(ReplicationControllerList.ApiVersion apiVersion){
    this.apiVersion=apiVersion; return (T) this;
    }
    public String getCreationTimestamp(){
    return this.creationTimestamp;
    }
    public T withCreationTimestamp(String creationTimestamp){
    this.creationTimestamp=creationTimestamp; return (T) this;
    }
    public String getDeletionTimestamp(){
    return this.deletionTimestamp;
    }
    public T withDeletionTimestamp(String deletionTimestamp){
    this.deletionTimestamp=deletionTimestamp; return (T) this;
    }
    public String getGenerateName(){
    return this.generateName;
    }
    public T withGenerateName(String generateName){
    this.generateName=generateName; return (T) this;
    }
    public String getId(){
    return this.id;
    }
    public T withId(String id){
    this.id=id; return (T) this;
    }
    public List getItems(){
    return this.items;
    }
    public T withItems(List items){
    this.items.clear();if (items != null) {this.items.addAll(items);} return (T) this;
    }
    public String getKind(){
    return this.kind;
    }
    public T withKind(String kind){
    this.kind=kind; return (T) this;
    }
    public String getNamespace(){
    return this.namespace;
    }
    public T withNamespace(String namespace){
    this.namespace=namespace; return (T) this;
    }
    public Integer getResourceVersion(){
    return this.resourceVersion;
    }
    public T withResourceVersion(Integer resourceVersion){
    this.resourceVersion=resourceVersion; return (T) this;
    }
    public String getSelfLink(){
    return this.selfLink;
    }
    public T withSelfLink(String selfLink){
    this.selfLink=selfLink; return (T) this;
    }
    public String getUid(){
    return this.uid;
    }
    public T withUid(String uid){
    this.uid=uid; 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 addToAnnotations(String key, String value){
    if(key != null && value != null) {this.annotations.put(key, value);} return (T)this;
    }
    public T addToItems(ReplicationController item){
    if (item != null) {this.items.add(item);} return (T)this;
    }
    public ItemsNested addNewItem(){
    return new ItemsNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class ItemsNested extends ReplicationControllerFluent> implements Nested{

        private final ReplicationControllerBuilder builder = new ReplicationControllerBuilder(this);
    
            public N and(){
            return (N) ReplicationControllerListFluent.this.addToItems(builder.build());
        }
            public N endItem(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy