annotations.io.fabric8.kubernetes.api.model.EndpointAddressFluent 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.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
public class EndpointAddressFluent> extends BaseFluent implements Fluent{
String IP; ObjectReferenceBuilder targetRef; Map additionalProperties = new HashMap();
public String getIP(){
return this.IP;
}
public T withIP( String IP){
this.IP=IP; return (T) this;
}
public ObjectReference getTargetRef(){
return this.targetRef!=null?this.targetRef.build():null;
}
public T withTargetRef( ObjectReference targetRef){
if (targetRef!=null){ this.targetRef= new ObjectReferenceBuilder(targetRef); _visitables.add(this.targetRef);} return (T) this;
}
public TargetRefNested withNewTargetRef(){
return new TargetRefNested();
}
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 TargetRefNested extends ObjectReferenceFluent> implements Nested{
private final ObjectReferenceBuilder builder = new ObjectReferenceBuilder(this);
public N and(){
return (N) EndpointAddressFluent.this.withTargetRef(builder.build());
}
public N endTargetRef(){
return and();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy