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

io.fabric8.kubernetes.api.model.ContainerStatusFluent 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 ContainerStatusFluent> implements Fluent{

    private String containerID ;
    private String image ;
    private String imageID ;
    private ContainerState lastState ;
    private String name ;
    private Boolean ready ;
    private Integer restartCount ;
    private ContainerState state ;
    private Map additionalProperties  = new HashMap();

    public String getContainerID(){
    return this.containerID;
    }
    public T withContainerID(String containerID){
    this.containerID=containerID; return (T) this;
    }
    public String getImage(){
    return this.image;
    }
    public T withImage(String image){
    this.image=image; return (T) this;
    }
    public String getImageID(){
    return this.imageID;
    }
    public T withImageID(String imageID){
    this.imageID=imageID; return (T) this;
    }
    public ContainerState getLastState(){
    return this.lastState;
    }
    public T withLastState(ContainerState lastState){
    this.lastState=lastState; return (T) this;
    }
    public String getName(){
    return this.name;
    }
    public T withName(String name){
    this.name=name; return (T) this;
    }
    public Boolean isReady(){
    return this.ready;
    }
    public T withReady(Boolean ready){
    this.ready=ready; return (T) this;
    }
    public Integer getRestartCount(){
    return this.restartCount;
    }
    public T withRestartCount(Integer restartCount){
    this.restartCount=restartCount; return (T) this;
    }
    public ContainerState getState(){
    return this.state;
    }
    public T withState(ContainerState state){
    this.state=state; 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 LastStateNested withNewLastState(){
    return new LastStateNested();
    }
    public StateNested withNewState(){
    return new StateNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class LastStateNested extends ContainerStateFluent> implements Nested{

        private final ContainerStateBuilder builder = new ContainerStateBuilder(this);
    
            public N endLastState(){
            return and();
        }
            public N and(){
            return (N) ContainerStatusFluent.this.withLastState(builder.build());
        }
    
}
    public class StateNested extends ContainerStateFluent> implements Nested{

        private final ContainerStateBuilder builder = new ContainerStateBuilder(this);
    
            public N and(){
            return (N) ContainerStatusFluent.this.withState(builder.build());
        }
            public N endState(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy