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

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

    private Map annotations  = new HashMap();
    private Minion.ApiVersion apiVersion ;
    private String creationTimestamp ;
    private String deletionTimestamp ;
    private String externalID ;
    private String generateName ;
    private String hostIP ;
    private String id ;
    private String kind ;
    private Map labels  = new HashMap();
    private String namespace ;
    private String podCIDR ;
    private Integer resourceVersion ;
    private NodeResources resources ;
    private String selfLink ;
    private NodeStatus status ;
    private String uid ;
    private Boolean unschedulable ;
    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 Minion.ApiVersion getApiVersion(){
    return this.apiVersion;
    }
    public T withApiVersion(Minion.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 getExternalID(){
    return this.externalID;
    }
    public T withExternalID(String externalID){
    this.externalID=externalID; return (T) this;
    }
    public String getGenerateName(){
    return this.generateName;
    }
    public T withGenerateName(String generateName){
    this.generateName=generateName; return (T) this;
    }
    public String getHostIP(){
    return this.hostIP;
    }
    public T withHostIP(String hostIP){
    this.hostIP=hostIP; return (T) this;
    }
    public String getId(){
    return this.id;
    }
    public T withId(String id){
    this.id=id; return (T) this;
    }
    public String getKind(){
    return this.kind;
    }
    public T withKind(String kind){
    this.kind=kind; return (T) this;
    }
    public Map getLabels(){
    return this.labels;
    }
    public T withLabels(Map labels){
    this.labels.clear();if (labels != null) {this.labels.putAll(labels);} return (T) this;
    }
    public String getNamespace(){
    return this.namespace;
    }
    public T withNamespace(String namespace){
    this.namespace=namespace; return (T) this;
    }
    public String getPodCIDR(){
    return this.podCIDR;
    }
    public T withPodCIDR(String podCIDR){
    this.podCIDR=podCIDR; return (T) this;
    }
    public Integer getResourceVersion(){
    return this.resourceVersion;
    }
    public T withResourceVersion(Integer resourceVersion){
    this.resourceVersion=resourceVersion; return (T) this;
    }
    public NodeResources getResources(){
    return this.resources;
    }
    public T withResources(NodeResources resources){
    this.resources=resources; return (T) this;
    }
    public String getSelfLink(){
    return this.selfLink;
    }
    public T withSelfLink(String selfLink){
    this.selfLink=selfLink; return (T) this;
    }
    public NodeStatus getStatus(){
    return this.status;
    }
    public T withStatus(NodeStatus status){
    this.status=status; return (T) this;
    }
    public String getUid(){
    return this.uid;
    }
    public T withUid(String uid){
    this.uid=uid; return (T) this;
    }
    public Boolean isUnschedulable(){
    return this.unschedulable;
    }
    public T withUnschedulable(Boolean unschedulable){
    this.unschedulable=unschedulable; 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 addToLabels(String key, String value){
    if(key != null && value != null) {this.labels.put(key, value);} return (T)this;
    }
    public ResourcesNested withNewResource(){
    return new ResourcesNested();
    }
    public StatusNested withNewStatu(){
    return new StatusNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class ResourcesNested extends NodeResourcesFluent> implements Nested{

        private final NodeResourcesBuilder builder = new NodeResourcesBuilder(this);
    
            public N and(){
            return (N) MinionFluent.this.withResources(builder.build());
        }
            public N endResource(){
            return and();
        }
    
}
    public class StatusNested extends NodeStatusFluent> implements Nested{

        private final NodeStatusBuilder builder = new NodeStatusBuilder(this);
    
            public N and(){
            return (N) MinionFluent.this.withStatus(builder.build());
        }
            public N endStatu(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy