io.fabric8.kubernetes.api.model.ServicePortFluent 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.Fluent;
public class ServicePortFluent> implements Fluent{
private String name ;
private Integer port ;
private String protocol ;
private IntOrString targetPort ;
private Map additionalProperties = new HashMap();
public String getName(){
return this.name;
}
public T withName(String name){
this.name=name; return (T) this;
}
public Integer getPort(){
return this.port;
}
public T withPort(Integer port){
this.port=port; return (T) this;
}
public String getProtocol(){
return this.protocol;
}
public T withProtocol(String protocol){
this.protocol=protocol; return (T) this;
}
public IntOrString getTargetPort(){
return this.targetPort;
}
public T withTargetPort(IntOrString targetPort){
this.targetPort=targetPort; 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 T addToAdditionalProperties(String key, Object value){
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy