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

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.Fluent;

public class EndpointAddressFluent> implements Fluent{

    private String IP ;
    private ObjectReference targetRef ;
    private 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;
    }
    public T withTargetRef(ObjectReference targetRef){
    this.targetRef=targetRef; 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 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 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 - 2025 Weber Informatics LLC | Privacy Policy