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

io.fabric8.openshift.api.model.DeploymentFluent Maven / Gradle / Ivy

package io.fabric8.openshift.api.model;

import io.fabric8.kubernetes.api.model.base.ReplicationControllerSpec;
import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.kubernetes.api.model.base.ReplicationControllerSpecBuilder;
import io.fabric8.kubernetes.api.model.base.ReplicationControllerSpecFluent;
import io.fabric8.common.Fluent;

public class DeploymentFluent> implements Fluent{

    private Map annotations  = new HashMap();
    private Deployment.ApiVersion apiVersion ;
    private ReplicationControllerSpec controllerTemplate ;
    private String creationTimestamp ;
    private String deletionTimestamp ;
    private DeploymentDetails details ;
    private String generateName ;
    private String kind ;
    private Map labels  = new HashMap();
    private String name ;
    private String namespace ;
    private String resourceVersion ;
    private String selfLink ;
    private String status ;
    private DeploymentStrategy strategy ;
    private String uid ;
    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 Deployment.ApiVersion getApiVersion(){
    return this.apiVersion;
    }
    public T withApiVersion(Deployment.ApiVersion apiVersion){
    this.apiVersion=apiVersion; return (T) this;
    }
    public ReplicationControllerSpec getControllerTemplate(){
    return this.controllerTemplate;
    }
    public T withControllerTemplate(ReplicationControllerSpec controllerTemplate){
    this.controllerTemplate=controllerTemplate; 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 DeploymentDetails getDetails(){
    return this.details;
    }
    public T withDetails(DeploymentDetails details){
    this.details=details; return (T) this;
    }
    public String getGenerateName(){
    return this.generateName;
    }
    public T withGenerateName(String generateName){
    this.generateName=generateName; 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 getName(){
    return this.name;
    }
    public T withName(String name){
    this.name=name; return (T) this;
    }
    public String getNamespace(){
    return this.namespace;
    }
    public T withNamespace(String namespace){
    this.namespace=namespace; return (T) this;
    }
    public String getResourceVersion(){
    return this.resourceVersion;
    }
    public T withResourceVersion(String resourceVersion){
    this.resourceVersion=resourceVersion; return (T) this;
    }
    public String getSelfLink(){
    return this.selfLink;
    }
    public T withSelfLink(String selfLink){
    this.selfLink=selfLink; return (T) this;
    }
    public String getStatus(){
    return this.status;
    }
    public T withStatus(String status){
    this.status=status; return (T) this;
    }
    public DeploymentStrategy getStrategy(){
    return this.strategy;
    }
    public T withStrategy(DeploymentStrategy strategy){
    this.strategy=strategy; return (T) this;
    }
    public String getUid(){
    return this.uid;
    }
    public T withUid(String uid){
    this.uid=uid; 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 ControllerTemplateNested withNewControllerTemplate(){
    return new ControllerTemplateNested();
    }
    public DetailsNested withNewDetail(){
    return new DetailsNested();
    }
    public T addToLabels(String key, String value){
    if(key != null && value != null) {this.labels.put(key, value);} return (T)this;
    }
    public StrategyNested withNewStrategy(){
    return new StrategyNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class ControllerTemplateNested extends ReplicationControllerSpecFluent> implements Nested{

        private final ReplicationControllerSpecBuilder builder = new ReplicationControllerSpecBuilder(this);
    
            public N endControllerTemplate(){
            return and();
        }
            public N and(){
            return (N) DeploymentFluent.this.withControllerTemplate(builder.build());
        }
    
}
    public class DetailsNested extends DeploymentDetailsFluent> implements Nested{

        private final DeploymentDetailsBuilder builder = new DeploymentDetailsBuilder(this);
    
            public N endDetail(){
            return and();
        }
            public N and(){
            return (N) DeploymentFluent.this.withDetails(builder.build());
        }
    
}
    public class StrategyNested extends DeploymentStrategyFluent> implements Nested{

        private final DeploymentStrategyBuilder builder = new DeploymentStrategyBuilder(this);
    
            public N endStrategy(){
            return and();
        }
            public N and(){
            return (N) DeploymentFluent.this.withStrategy(builder.build());
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy