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

annotations.io.fabric8.openshift.api.model.DeploymentConfigFluent Maven / Gradle / Ivy

package io.fabric8.openshift.api.model;

import io.fabric8.kubernetes.api.model.ObjectMeta;
import java.util.HashMap;
import java.util.Map;
import io.fabric8.kubernetes.api.model.ObjectMetaBuilder;
import io.fabric8.common.Nested;
import io.fabric8.common.Fluent;
import io.fabric8.kubernetes.api.model.ObjectMetaFluent;

public class DeploymentConfigFluent> implements Fluent{

    private DeploymentConfig.ApiVersion apiVersion ;
    private String kind ;
    private ObjectMeta metadata ;
    private DeploymentConfigSpec spec ;
    private DeploymentConfigStatus status ;
    private Map additionalProperties  = new HashMap();

    public DeploymentConfig.ApiVersion getApiVersion(){
    return this.apiVersion;
    }
    public T withApiVersion(DeploymentConfig.ApiVersion apiVersion){
    this.apiVersion=apiVersion; return (T) this;
    }
    public String getKind(){
    return this.kind;
    }
    public T withKind(String kind){
    this.kind=kind; return (T) this;
    }
    public ObjectMeta getMetadata(){
    return this.metadata;
    }
    public T withMetadata(ObjectMeta metadata){
    this.metadata=metadata; return (T) this;
    }
    public DeploymentConfigSpec getSpec(){
    return this.spec;
    }
    public T withSpec(DeploymentConfigSpec spec){
    this.spec=spec; return (T) this;
    }
    public DeploymentConfigStatus getStatus(){
    return this.status;
    }
    public T withStatus(DeploymentConfigStatus 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 MetadataNested withNewMetadata(){
    return new MetadataNested();
    }
    public SpecNested withNewSpec(){
    return new SpecNested();
    }
    public T addToAdditionalProperties(String key, Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }

    public class MetadataNested extends ObjectMetaFluent> implements Nested{

        private final ObjectMetaBuilder builder = new ObjectMetaBuilder(this);
    
            public N and(){
            return (N) DeploymentConfigFluent.this.withMetadata(builder.build());
        }
            public N endMetadata(){
            return and();
        }
    
}
    public class SpecNested extends DeploymentConfigSpecFluent> implements Nested{

        private final DeploymentConfigSpecBuilder builder = new DeploymentConfigSpecBuilder(this);
    
            public N and(){
            return (N) DeploymentConfigFluent.this.withSpec(builder.build());
        }
            public N endSpec(){
            return and();
        }
    
}


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy