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

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

package io.fabric8.kubernetes.api.model;

import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.common.Fluent;

public class ReplicationControllerStateFluent> implements Fluent{

    private PodTemplate podTemplate ;
    private Map replicaSelector  = new HashMap();
    private Integer replicas ;
    private Map additionalProperties  = new HashMap();

    public PodTemplate getPodTemplate(){
    return this.podTemplate;
    }
    public T withPodTemplate(PodTemplate podTemplate){
    this.podTemplate=podTemplate; return (T) this;
    }
    public Map getReplicaSelector(){
    return this.replicaSelector;
    }
    public T withReplicaSelector(Map replicaSelector){
    this.replicaSelector.clear();if (replicaSelector != null) {this.replicaSelector.putAll(replicaSelector);} return (T) this;
    }
    public Integer getReplicas(){
    return this.replicas;
    }
    public T withReplicas(Integer replicas){
    this.replicas=replicas; 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 PodTemplateNested withNewPodTemplate(){
    return new PodTemplateNested();
    }
    public T addToReplicaSelector(String key, String value){
    if(key != null && value != null) {this.replicaSelector.put(key, value);} return (T)this;
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class PodTemplateNested extends PodTemplateFluent> implements Nested{

        private final PodTemplateBuilder builder = new PodTemplateBuilder(this);
    
            public N and(){
            return (N) ReplicationControllerStateFluent.this.withPodTemplate(builder.build());
        }
            public N endPodTemplate(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy