Package io.fabric8.kubernetes.api.model
Class ServicePort
java.lang.Object
io.fabric8.kubernetes.api.model.ServicePort
- All Implemented Interfaces:
KubernetesResource,Serializable
@Generated("org.jsonschema2pojo") public class ServicePort extends Object implements KubernetesResource
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ServicePort()No args constructor for use in serializationServicePort(String appProtocol, String name, Integer nodePort, Integer port, String protocol, IntOrString targetPort) -
Method Summary
Modifier and Type Method Description Map<String,Object>getAdditionalProperties()StringgetAppProtocol()StringgetName()IntegergetNodePort()IntegergetPort()StringgetProtocol()IntOrStringgetTargetPort()voidsetAdditionalProperty(String name, Object value)voidsetAppProtocol(String appProtocol)voidsetName(String name)voidsetNodePort(Integer nodePort)voidsetPort(Integer port)voidsetProtocol(String protocol)voidsetTargetPort(IntOrString targetPort)
-
Constructor Details
-
ServicePort
public ServicePort()No args constructor for use in serialization -
ServicePort
public ServicePort(String appProtocol, String name, Integer nodePort, Integer port, String protocol, IntOrString targetPort)- Parameters:
protocol-port-appProtocol-name-nodePort-targetPort-
-
-
Method Details
-
getAppProtocol
- Returns:
- The appProtocol
-
setAppProtocol
- Parameters:
appProtocol- The appProtocol
-
getName
- Returns:
- The name
-
setName
- Parameters:
name- The name
-
getNodePort
- Returns:
- The nodePort
-
setNodePort
- Parameters:
nodePort- The nodePort
-
getPort
- Returns:
- The port
-
setPort
- Parameters:
port- The port
-
getProtocol
- Returns:
- The protocol
-
setProtocol
- Parameters:
protocol- The protocol
-
getTargetPort
- Returns:
- The targetPort
-
setTargetPort
- Parameters:
targetPort- The targetPort
-
getAdditionalProperties
-
setAdditionalProperty
-