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

annotations.io.fabric8.kubernetes.api.model.PodStatusFluent Maven / Gradle / Ivy

There is a newer version: 0.0.54
Show newest version
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.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;

public class PodStatusFluent> extends BaseFluent implements Fluent{

     List Condition = new ArrayList();     List containerStatuses = new ArrayList();     String hostIP;     String message;     String phase;     String podIP;     Map additionalProperties = new HashMap();

    public T addToCondition( PodCondition item){
    if (item != null) {PodConditionBuilder builder = new PodConditionBuilder(item);_visitables.add(builder);this.Condition.add(builder);} return (T)this;
    }
    public List getCondition(){
    return build(Condition);
    }
    public T withCondition( List Condition){
    this.Condition.clear();if (Condition != null) {for (PodCondition item : Condition){this.addToCondition(item);}} return (T) this;
    }
    public ConditionNested addNewCondition(){
    return new ConditionNested();
    }
    public T addNewCondition( String status,  String type){
    return addToCondition(new PodCondition(status, type));
    }
    public T addToContainerStatuses( ContainerStatus item){
    if (item != null) {ContainerStatusBuilder builder = new ContainerStatusBuilder(item);_visitables.add(builder);this.containerStatuses.add(builder);} return (T)this;
    }
    public List getContainerStatuses(){
    return build(containerStatuses);
    }
    public T withContainerStatuses( List containerStatuses){
    this.containerStatuses.clear();if (containerStatuses != null) {for (ContainerStatus item : containerStatuses){this.addToContainerStatuses(item);}} return (T) this;
    }
    public ContainerStatusesNested addNewContainerStatuse(){
    return new ContainerStatusesNested();
    }
    public String getHostIP(){
    return this.hostIP;
    }
    public T withHostIP( String hostIP){
    this.hostIP=hostIP; return (T) this;
    }
    public String getMessage(){
    return this.message;
    }
    public T withMessage( String message){
    this.message=message; return (T) this;
    }
    public String getPhase(){
    return this.phase;
    }
    public T withPhase( String phase){
    this.phase=phase; return (T) this;
    }
    public String getPodIP(){
    return this.podIP;
    }
    public T withPodIP( String podIP){
    this.podIP=podIP; return (T) this;
    }
    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 ConditionNested extends PodConditionFluent> implements Nested{

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

        private final ContainerStatusBuilder builder = new ContainerStatusBuilder(this);
    
            public N endContainerStatuse(){
            return and();
        }
            public N and(){
            return (N) PodStatusFluent.this.addToContainerStatuses(builder.build());
        }
    
}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy