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

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

    private List Condition  = new ArrayList();
    private String host ;
    private String hostIP ;
    private Map info  = new HashMap();
    private ContainerManifest manifest ;
    private String message ;
    private String podIP ;
    private String status ;
    private Map additionalProperties  = new HashMap();

    public List getCondition(){
    return this.Condition;
    }
    public T withCondition(List Condition){
    this.Condition.clear();if (Condition != null) {this.Condition.addAll(Condition);} return (T) this;
    }
    public String getHost(){
    return this.host;
    }
    public T withHost(String host){
    this.host=host; return (T) this;
    }
    public String getHostIP(){
    return this.hostIP;
    }
    public T withHostIP(String hostIP){
    this.hostIP=hostIP; return (T) this;
    }
    public Map getInfo(){
    return this.info;
    }
    public T withInfo(Map info){
    this.info.clear();if (info != null) {this.info.putAll(info);} return (T) this;
    }
    public ContainerManifest getManifest(){
    return this.manifest;
    }
    public T withManifest(ContainerManifest manifest){
    this.manifest=manifest; return (T) this;
    }
    public String getMessage(){
    return this.message;
    }
    public T withMessage(String message){
    this.message=message; return (T) this;
    }
    public String getPodIP(){
    return this.podIP;
    }
    public T withPodIP(String podIP){
    this.podIP=podIP; return (T) this;
    }
    public String getStatus(){
    return this.status;
    }
    public T withStatus(String status){
    this.status=status; 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 addToCondition(PodCondition item){
    if (item != null) {this.Condition.add(item);} return (T)this;
    }
    public ConditionNested addNewCondition(){
    return new ConditionNested();
    }
    public T addToInfo(String key, ContainerStatus value){
    if(key != null && value != null) {this.info.put(key, value);} return (T)this;
    }
    public ManifestNested withNewManifest(){
    return new ManifestNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class ConditionNested extends PodConditionFluent> implements Nested{

        private final PodConditionBuilder builder = new PodConditionBuilder(this);
    
            public N endCondition(){
            return and();
        }
            public N and(){
            return (N) PodStateFluent.this.addToCondition(builder.build());
        }
    
}
    public class ManifestNested extends ContainerManifestFluent> implements Nested{

        private final ContainerManifestBuilder builder = new ContainerManifestBuilder(this);
    
            public N endManifest(){
            return and();
        }
            public N and(){
            return (N) PodStateFluent.this.withManifest(builder.build());
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy