annotations.io.fabric8.kubernetes.api.model.VolumeFluent 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 VolumeFluent> implements Fluent{
private String name ;
private VolumeSource source ;
private Map additionalProperties = new HashMap();
public String getName(){
return this.name;
}
public T withName(String name){
this.name=name; return (T) this;
}
public VolumeSource getSource(){
return this.source;
}
public T withSource(VolumeSource source){
this.source=source; 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 SourceNested withNewSource(){
return new SourceNested();
}
public T addToAdditionalProperties(String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
}
public class SourceNested extends VolumeSourceFluent> implements Nested{
private final VolumeSourceBuilder builder = new VolumeSourceBuilder(this);
public N endSource(){
return and();
}
public N and(){
return (N) VolumeFluent.this.withSource(builder.build());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy