annotations.io.fabric8.kubernetes.api.model.HTTPGetActionFluent Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import io.fabric8.kubernetes.api.model.util.IntOrString;
import java.util.HashMap;
import java.util.Map;
import io.fabric8.common.Nested;
import io.fabric8.kubernetes.api.model.util.IntOrStringBuilder;
import io.fabric8.kubernetes.api.model.util.IntOrStringFluent;
import io.fabric8.common.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
public class HTTPGetActionFluent> extends BaseFluent implements Fluent{
String host; String path; IntOrStringBuilder port; Map additionalProperties = new HashMap();
public String getHost(){
return this.host;
}
public T withHost( String host){
this.host=host; return (T) this;
}
public String getPath(){
return this.path;
}
public T withPath( String path){
this.path=path; return (T) this;
}
public IntOrString getPort(){
return this.port!=null?this.port.build():null;
}
public T withPort( IntOrString port){
if (port!=null){ this.port= new IntOrStringBuilder(port); _visitables.add(this.port);} return (T) this;
}
public PortNested withNewPort(){
return new PortNested();
}
public T withNewPort( Integer intVal){
return withPort(new IntOrString(intVal));
}
public T withNewPort( String strVal){
return withPort(new IntOrString(strVal));
}
public T addToAdditionalProperties( String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} 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 class PortNested extends IntOrStringFluent> implements Nested{
private final IntOrStringBuilder builder = new IntOrStringBuilder(this);
public N endPort(){
return and();
}
public N and(){
return (N) HTTPGetActionFluent.this.withPort(builder.build());
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy