Package io.fabric8.kubernetes.api.model
Class PortStatus
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.PortStatus
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PortStatusBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PortStatus extends Object implements io.fabric8.kubernetes.api.builder.Editable<PortStatusBuilder>, KubernetesResource
PortStatus represents the error condition of a service port- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PortStatus()No args constructor for use in serializationPortStatus(String error, Integer port, String protocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortStatusBuilderedit()Map<String,Object>getAdditionalProperties()StringgetError()Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall useIntegergetPort()Port is the port number of the service port of which status is recorded hereStringgetProtocol()Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetError(String error)Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall usevoidsetPort(Integer port)Port is the port number of the service port of which status is recorded herevoidsetProtocol(String protocol)Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"PortStatusBuildertoBuilder()
-
-
-
Method Detail
-
getError
public String getError()
Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall useCamelCase names
- cloud provider specific error values must have names that comply with the
format foo.example.com/CamelCase.
-
setError
public void setError(String error)
Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall useCamelCase names
- cloud provider specific error values must have names that comply with the
format foo.example.com/CamelCase.
-
getPort
public Integer getPort()
Port is the port number of the service port of which status is recorded here
-
setPort
public void setPort(Integer port)
Port is the port number of the service port of which status is recorded here
-
getProtocol
public String getProtocol()
Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"
-
setProtocol
public void setProtocol(String protocol)
Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"
-
edit
public PortStatusBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PortStatusBuilder>
-
toBuilder
public PortStatusBuilder toBuilder()
-
-