annotations.io.fabric8.kubernetes.api.model.PodTemplateSpecFluent 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 PodTemplateSpecFluent> implements Fluent{
private ObjectMeta metadata ;
private PodSpec spec ;
private Map additionalProperties = new HashMap();
public ObjectMeta getMetadata(){
return this.metadata;
}
public T withMetadata(ObjectMeta metadata){
this.metadata=metadata; return (T) this;
}
public PodSpec getSpec(){
return this.spec;
}
public T withSpec(PodSpec spec){
this.spec=spec; 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 endMetadata(){
return and();
}
public N and(){
return (N) PodTemplateSpecFluent.this.withMetadata(builder.build());
}
}
public class SpecNested extends PodSpecFluent> implements Nested{
private final PodSpecBuilder builder = new PodSpecBuilder(this);
public N and(){
return (N) PodTemplateSpecFluent.this.withSpec(builder.build());
}
public N endSpec(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy